org.objectweb.cjdbc.scenario.raidb1.driver
Class CompiledPreparedStatementScenario

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.templates.Template
              extended byorg.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate
                  extended byorg.objectweb.cjdbc.scenario.raidb1.driver.CompiledPreparedStatementScenario

public class CompiledPreparedStatementScenario
extends Raidb1RecoveryTemplate

This class defines a CompiledPreparedStatementScenario

Version:
1.0
Author:
Nicolas Modrzyk
See Also:
Serialized Form

Field Summary
(package private) static java.lang.String CJDBC_NO_PREPARED
           
(package private) static java.lang.String CJDBC_PREPARED_NO_OPTIMIZED
           
(package private) static java.lang.String CJDBC_PREPARED_OPTIMIZED
           
(package private) static java.lang.String DATABASE_NO_PREPARED
           
(package private) static java.lang.String DATABASE_PREPARED
           
(package private) static int NUMBER_OF_EXECUTIONS
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate
cm, controller, hm, hm1, hm2, hm3, mainVdb
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
CompiledPreparedStatementScenario()
           
 
Method Summary
private  void dotest(java.lang.String name, java.sql.Connection con, boolean usePreparedStatement)
           
 void testComparePreparedStatementOptimization()
          Test prepared statements with/without jaco's optimization
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate
setUp, tearDown
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.Template
getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getHypersonicConnection
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
getTextPath, getUserDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CJDBC_PREPARED_OPTIMIZED

static final java.lang.String CJDBC_PREPARED_OPTIMIZED
See Also:
Constant Field Values

CJDBC_PREPARED_NO_OPTIMIZED

static final java.lang.String CJDBC_PREPARED_NO_OPTIMIZED
See Also:
Constant Field Values

CJDBC_NO_PREPARED

static final java.lang.String CJDBC_NO_PREPARED
See Also:
Constant Field Values

DATABASE_PREPARED

static final java.lang.String DATABASE_PREPARED
See Also:
Constant Field Values

DATABASE_NO_PREPARED

static final java.lang.String DATABASE_NO_PREPARED
See Also:
Constant Field Values

NUMBER_OF_EXECUTIONS

static final int NUMBER_OF_EXECUTIONS
See Also:
Constant Field Values
Constructor Detail

CompiledPreparedStatementScenario

public CompiledPreparedStatementScenario()
Method Detail

testComparePreparedStatementOptimization

public void testComparePreparedStatementOptimization()
                                              throws java.lang.Exception
Test prepared statements with/without jaco's optimization

Throws:
java.lang.Exception - if fails

dotest

private void dotest(java.lang.String name,
                    java.sql.Connection con,
                    boolean usePreparedStatement)
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.