|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet
org.objectweb.cjdbc.scenario.tools.testlet.AbstractVdbTestLet
org.objectweb.cjdbc.scenario.tools.testlet.PreparedStatementRecoveryTestLet
This class defines a PreparedStatementRecoveryTestLet
Field Summary | |
(package private) int |
numberOfUpdates
|
(package private) java.security.SecureRandom |
rand
|
Fields inherited from class org.objectweb.cjdbc.scenario.tools.testlet.AbstractVdbTestLet |
vdb |
Fields inherited from class org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet |
COLUMN_NAME, config, FILE_NAME, IGNORE_CASE, ITERATION, LIST_FAILOVER_BACKENDS, MACRO_NAME, NUMBER_OF_UPDATES, PROCEDURE_NAME, SELECTED_COLUMNS, TABLE_METADATA_COLUMNS, TABLE_NAME, UPDATED_COLUMN_VALUE, USE_CJDBC_CLASS, USE_OPTIMIZED_STATEMENT, USE_PREPARED_STATEMENT, USE_TRANSACTIONS, USE_UPDATE_STATEMENT, VIRTUAL_DATABASE |
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
PreparedStatementRecoveryTestLet(VirtualDatabase vdb)
Creates a new PreparedStatementRecoveryTestLet object |
Method Summary | |
private void |
doExecuteRandomPStatement(java.sql.PreparedStatement ps,
int size)
|
private void |
doSetRandomParameter(int index,
java.sql.PreparedStatement ps)
|
void |
execute()
Execute the content of the test. |
Methods inherited from class org.objectweb.cjdbc.scenario.tools.testlet.AbstractVdbTestLet |
getBackend, getBackendConnection, getCJDBCConnection, getDatabaseConnection |
Methods inherited from class org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet |
checkMemoryUsage, configure, executeBatch, executeBatch, getConfig, getConfigBoolean, getInitialMemoryUsage, getTotalMemoryUsage, getTotalTimeUsage, ignoreCase, set, setConfig, useCJDBCClass, usePreparedStatement, useTransaction |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.security.SecureRandom rand
int numberOfUpdates
Constructor Detail |
public PreparedStatementRecoveryTestLet(VirtualDatabase vdb)
PreparedStatementRecoveryTestLet
object
vdb
- virtual database objectMethod Detail |
public void execute() throws java.lang.Exception
AbstractTestLet
execute
in class AbstractTestLet
java.lang.Exception
- if failsAbstractTestLet.execute()
private void doExecuteRandomPStatement(java.sql.PreparedStatement ps, int size) throws java.sql.SQLException
java.sql.SQLException
private void doSetRandomParameter(int index, java.sql.PreparedStatement ps) throws java.sql.SQLException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |