|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet
org.objectweb.cjdbc.scenario.tools.testlet.AbstractVdbTestLet
This class defines a AbstractVdbTestLet
Field Summary | |
protected VirtualDatabase |
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 |
Constructor Summary | |
AbstractVdbTestLet(VirtualDatabase vdb)
Creates a new AbstractVdbTestLet object |
Method Summary | |
DatabaseBackend |
getBackend(int index)
Get a backend object |
java.sql.Connection |
getBackendConnection(int index)
Return a connection on the backend of the virtual database at given index |
java.sql.Connection |
getCJDBCConnection(java.util.Properties props)
Retrieve a connection on C-JDBC with the given properties |
java.sql.Connection |
getDatabaseConnection(java.lang.String url)
Get a sql connection |
Methods inherited from class org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet |
checkMemoryUsage, configure, execute, executeBatch, executeBatch, getConfig, getConfigBoolean, getInitialMemoryUsage, getTotalMemoryUsage, getTotalTimeUsage, ignoreCase, set, setConfig, useCJDBCClass, usePreparedStatement, useTransaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected VirtualDatabase vdb
Constructor Detail |
public AbstractVdbTestLet(VirtualDatabase vdb)
AbstractVdbTestLet
object
vdb
- virtual databaseMethod Detail |
public java.sql.Connection getDatabaseConnection(java.lang.String url) throws java.sql.SQLException
url
- of the backend to get a connection from
Connection
java.sql.SQLException
- if failspublic java.sql.Connection getCJDBCConnection(java.util.Properties props) throws java.lang.Exception
props
- additionnal properties for the connection
java.sql.Connection
object to C-JDBC
java.lang.Exception
- if failspublic java.sql.Connection getBackendConnection(int index) throws java.lang.Exception
index
- of the backend in the arraylist of backends of the vdb
Connection
java.lang.Exception
- if failspublic DatabaseBackend getBackend(int index) throws java.lang.Exception
index
- of the backend in the array list of backends of the virtual database
DatabaseBackend
java.lang.Exception
- if fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |