Represents a statement.
| Methods |
| static Command |
getConnect(TestSynth config)
Create a connect command.
|
| static Command |
getConnect(TestSynth config)
Create a connect command.
Parameters:
config - the configuration
Returns:
the command
|
| static Command |
getCreateIndex(TestSynth config, Index index)
Create a create index command.
|
| static Command |
getCreateIndex(TestSynth config, Index index)
Create a create index command.
Parameters:
config - the configuration
index - the index
Returns:
the command
|
| static Command |
getCreateTable(TestSynth config, Table table)
Create a create table command.
|
| static Command |
getCreateTable(TestSynth config, Table table)
Create a create table command.
Parameters:
config - the configuration
table - the table
Returns:
the command
|
| static Command |
getDisconnect(TestSynth config)
Create a disconnect command.
|
| static Command |
getDisconnect(TestSynth config)
Create a disconnect command.
Parameters:
config - the configuration
Returns:
the command
|
| static Command |
getEnd(TestSynth config)
Create an end command.
|
| static Command |
getEnd(TestSynth config)
Create an end command.
Parameters:
config - the configuration
Returns:
the command
|
| static Command |
getRandomDelete(TestSynth config, Table table)
Create a random delete command.
|
| static Command |
getRandomDelete(TestSynth config, Table table)
Create a random delete command.
Parameters:
config - the configuration
table - the table
Returns:
the command
|
| static Command |
getRandomInsert(TestSynth config, Table table)
Create a random insert command.
|
| static Command |
getRandomInsert(TestSynth config, Table table)
Create a random insert command.
Parameters:
config - the configuration
table - the table
Returns:
the command
|
| static Command |
getRandomSelect(TestSynth config, Table table)
Create a random select command.
|
| static Command |
getRandomSelect(TestSynth config, Table table)
Create a random select command.
Parameters:
config - the configuration
table - the table
Returns:
the command
|
| static Command |
getRandomUpdate(TestSynth config, Table table)
Create a random update command.
|
| static Command |
getRandomUpdate(TestSynth config, Table table)
Create a random update command.
Parameters:
config - the configuration
table - the table
Returns:
the command
|
| static Command |
getReset(TestSynth config)
Create a reset command.
|
| static Command |
getReset(TestSynth config)
Create a reset command.
Parameters:
config - the configuration
Returns:
the command
|
| void |
addSubqueryTable(String alias, Table t)
Add a subquery table to the command.
|
| void |
addSubqueryTable(String alias, Table t)
Add a subquery table to the command.
Parameters:
alias - the table alias
t - the table
|
| String |
getRandomTableAlias()
Get a random table alias name.
|
| String |
getRandomTableAlias()
Get a random table alias name.
Returns:
the alias name
|
| Table |
getTable(String alias)
Get the table with the specified alias.
|
| Table |
getTable(String alias)
Get the table with the specified alias.
Parameters:
alias - the alias or null if there is only one table
Returns:
the table
|
| Result |
run(DbInterface db)
Run the command against the specified database.
|
| Result |
run(DbInterface db) throws Exception
Run the command against the specified database.
Parameters:
db - the database
Returns:
the result
|
The select list.