Expression

Represents an expression.

Methods
static Expression getRandomCondition(TestSynth config, Command command)
Generate a random condition.
static Expression getRandomCondition(TestSynth config, Command command)
Generate a random condition.
Parameters:
config - the configuration
command - the command
Returns:
the random condition expression
static Expression getRandomJoinOn(TestSynth config, Command command, String alias)
Generate a random join condition.
static Expression getRandomJoinOn(TestSynth config, Command command, String alias)
Generate a random join condition.
Parameters:
config - the configuration
command - the command
alias - the alias name
Returns:
the join condition
static String getRandomOrder(TestSynth config, Command command)
Generate a random sort order list.
static String getRandomOrder(TestSynth config, Command command)
Generate a random sort order list.
Parameters:
config - the configuration
command - the command
Returns:
the ORDER BY list
static String[] getRandomSelectList(TestSynth config, Command command)
Create a random select list.
static String[] getRandomSelectList(TestSynth config, Command command)
Create a random select list.
Parameters:
config - the configuration
command - the command
Returns:
the select list
String getSQL()
Get the SQL snippet of this expression.
String getSQL()
Get the SQL snippet of this expression.
Returns:
the SQL snippet
String toString()
String toString()