Column
A column of a table.
Methods
static Column
getRandomColumn
(TestSynth config)
Generate a random column.
static Column
getRandomColumn
(TestSynth config)
Generate a random column.
Parameters:
config - the configuration
Returns:
the column
static boolean
isConditionType
(TestSynth config, int type)
Check if this data type supports comparisons for this database.
static boolean
isConditionType
(TestSynth config, int type)
Check if this data type supports comparisons for this database.
Parameters:
config - the configuration
type - the SQL type
Returns:
true if the value can be used in conditions
String
getCreateSQL
()
String
getCreateSQL
()
String
getName
()
String
getName
()
boolean
getPrimaryKey
()
boolean
getPrimaryKey
()
Value
getRandomValue
()
Value
getRandomValue
()
int
getType
()
The the column type.
int
getType
()
The the column type.
Returns:
the type
void
setNullable
(boolean b)
void
setNullable
(boolean b)
void
setPrimaryKey
(boolean b)
void
setPrimaryKey
(boolean b)