org.eigenbase.test.concurrent
Class ConcurrentTestCommandScript.PrepareCommand
java.lang.Object
org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
org.eigenbase.test.concurrent.ConcurrentTestCommandScript.PrepareCommand
- All Implemented Interfaces:
- ConcurrentTestCommand
- Enclosing class:
- ConcurrentTestCommandScript
private class ConcurrentTestCommandScript.PrepareCommand
- extends ConcurrentTestCommandGenerator.AbstractCommand
PrepareCommand creates a PreparedStatement
, which is saved as the
current statement of its test thread. For a preparted query (a SELECT or
a CALL with results), a subsequent FetchAndPrintCommand executes the
statement and fetches its reults, until end-of-data or a timeout. A
PrintCommand attaches a listener, called for each rows, that selects rows
to save and print, and sets the format. By default, if no PrintCommand
appears before a FetchAndPrintCommand, all rows are printed. A
CloseCommand closes and discards the prepared statement.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sql
private String sql
ConcurrentTestCommandScript.PrepareCommand
private ConcurrentTestCommandScript.PrepareCommand(String sql)
doExecute
protected void doExecute(ConcurrentTestCommandExecutor executor)
throws SQLException
- Specified by:
doExecute
in class ConcurrentTestCommandGenerator.AbstractCommand
- Throws:
SQLException