public class DbState extends java.lang.Object implements DbInterface
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit a pending transaction.
|
void |
connect()
Connect to the database.
|
void |
createIndex(Index index)
Create an index.
|
void |
createTable(org.h2.test.synth.sql.Table table)
Create the specified table.
|
org.h2.test.synth.sql.Result |
delete(org.h2.test.synth.sql.Table table,
java.lang.String condition)
Delete a number of rows.
|
void |
disconnect()
Disconnect from the database.
|
void |
dropIndex(Index index)
Drop an index.
|
void |
dropTable(org.h2.test.synth.sql.Table table)
Drop the specified table.
|
void |
end()
Close the connection and the database.
|
org.h2.test.synth.sql.Result |
insert(org.h2.test.synth.sql.Table table,
org.h2.test.synth.sql.Column[] c,
Value[] v)
Insert a row into a table.
|
void |
reset()
Drop all objects in the database.
|
void |
rollback()
Roll back a pending transaction.
|
org.h2.test.synth.sql.Result |
select(java.lang.String sql)
Execute a query.
|
void |
setAutoCommit(boolean b)
Enable or disable autocommit.
|
java.lang.String |
toString() |
org.h2.test.synth.sql.Result |
update(org.h2.test.synth.sql.Table table,
org.h2.test.synth.sql.Column[] columns,
Value[] values,
java.lang.String condition)
Update the given table with the new values.
|
public void reset()
DbInterfacereset in interface DbInterfacepublic void connect()
DbInterfaceconnect in interface DbInterfacepublic void disconnect()
DbInterfacedisconnect in interface DbInterfacepublic void createTable(org.h2.test.synth.sql.Table table)
DbInterfacecreateTable in interface DbInterfacetable - the table to createpublic void dropTable(org.h2.test.synth.sql.Table table)
DbInterfacedropTable in interface DbInterfacetable - the table to droppublic void createIndex(Index index)
DbInterfacecreateIndex in interface DbInterfaceindex - the index to createpublic void dropIndex(Index index)
DbInterfacedropIndex in interface DbInterfaceindex - the index to droppublic org.h2.test.synth.sql.Result insert(org.h2.test.synth.sql.Table table,
org.h2.test.synth.sql.Column[] c,
Value[] v)
DbInterfaceinsert in interface DbInterfacetable - the tablec - the column listv - the valuespublic org.h2.test.synth.sql.Result select(java.lang.String sql)
DbInterfaceselect in interface DbInterfacesql - the SQL statementpublic org.h2.test.synth.sql.Result delete(org.h2.test.synth.sql.Table table,
java.lang.String condition)
DbInterfacedelete in interface DbInterfacetable - the tablecondition - the conditionpublic org.h2.test.synth.sql.Result update(org.h2.test.synth.sql.Table table,
org.h2.test.synth.sql.Column[] columns,
Value[] values,
java.lang.String condition)
DbInterfaceupdate in interface DbInterfacetable - the tablecolumns - the columns to updatevalues - the new valuescondition - the conditionpublic void setAutoCommit(boolean b)
DbInterfacesetAutoCommit in interface DbInterfaceb - the new valuepublic void commit()
DbInterfacecommit in interface DbInterfacepublic void rollback()
DbInterfacerollback in interface DbInterfacepublic void end()
DbInterfaceend in interface DbInterfacepublic java.lang.String toString()
toString in class java.lang.Object