org.eigenbase.test.concurrent
Class ConcurrentTestCommandGenerator.InsertCommand

java.lang.Object
  extended by org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
      extended by org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.CommandWithTimeout
          extended by org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.InsertCommand
All Implemented Interfaces:
ConcurrentTestCommand
Enclosing class:
ConcurrentTestCommandGenerator

private static class ConcurrentTestCommandGenerator.InsertCommand
extends ConcurrentTestCommandGenerator.CommandWithTimeout

InsertCommand exeutes an insert, update or delete SQL statement. Uses Statement.executeUpdate(String).


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eigenbase.test.concurrent.ConcurrentTestCommand
ConcurrentTestCommand.ShouldHaveFailedException
 
Field Summary
private  String sql
           
 
Constructor Summary
private ConcurrentTestCommandGenerator.InsertCommand(int timeout, String sql)
           
 
Method Summary
protected  void doExecute(ConcurrentTestCommandExecutor executor)
           
 
Methods inherited from class org.eigenbase.test.concurrent.ConcurrentTestCommandGenerator.CommandWithTimeout
setTimeout
 
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

ConcurrentTestCommandGenerator.InsertCommand

private ConcurrentTestCommandGenerator.InsertCommand(int timeout,
                                                     String sql)
Method Detail

doExecute

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