Value

Represents a simple value.

Methods
static Value getRandom(TestSynth config, int type, int precision, int scale, boolean mayBeNull)
Generate a random value.
static Value getRandom(TestSynth config, int type, int precision, int scale, boolean mayBeNull)
Generate a random value.
Parameters:
config - the configuration
type - the value type
precision - the precision
scale - the scale
mayBeNull - if the value may be null or not
Returns:
the value
static Value read(TestSynth config, ResultSet rs, int index)
Read a value from a result set.
static Value read(TestSynth config, ResultSet rs, int index) throws SQLException
Read a value from a result set.
Parameters:
config - the configuration
rs - the result set
index - the column index
Returns:
the value
String getSQL()
Convert the value to a SQL string.
String getSQL()
Convert the value to a SQL string.
Returns:
the SQL string
String toString()
String toString()