org.eigenbase.test.concurrent
Class ConcurrentTestCommandScript.PrepareCommand

java.lang.Object
  extended by org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eigenbase.test.concurrent.ConcurrentTestCommand
ConcurrentTestCommand.ShouldHaveFailedException
 
Field Summary
private  String sql
           
 
Constructor Summary
private ConcurrentTestCommandScript.PrepareCommand(String sql)
           
 
Method Summary
protected  void doExecute(ConcurrentTestCommandExecutor executor)
           
 
Methods inherited from class org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
execute, isFailureExpected, markToFail, markToFail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sql

private String sql
Constructor Detail

ConcurrentTestCommandScript.PrepareCommand

private ConcurrentTestCommandScript.PrepareCommand(String sql)
Method Detail

doExecute

protected void doExecute(ConcurrentTestCommandExecutor executor)
                  throws SQLException
Specified by:
doExecute in class ConcurrentTestCommandGenerator.AbstractCommand
Throws:
SQLException