org.prevayler.demos.scalability.jdbc
Class JDBCTransactionSubject

java.lang.Object
  extended by org.prevayler.demos.scalability.jdbc.JDBCTransactionSubject
All Implemented Interfaces:
ScalabilityTestSubject

public class JDBCTransactionSubject
extends Object


Field Summary
protected  String connectionURL
           
protected  String password
           
protected  String user
           
 
Constructor Summary
JDBCTransactionSubject(String jdbcDriverClassName, String connectionURL, String user, String password)
           
 
Method Summary
protected  Connection createConnection()
           
 Object createTestConnection()
           
 String name()
           
 void replaceAllRecords(int records)
           
 void reportResourcesUsed(PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionURL

protected final String connectionURL

user

protected final String user

password

protected final String password
Constructor Detail

JDBCTransactionSubject

public JDBCTransactionSubject(String jdbcDriverClassName,
                              String connectionURL,
                              String user,
                              String password)
Method Detail

createTestConnection

public Object createTestConnection()

name

public String name()
Specified by:
name in interface ScalabilityTestSubject

replaceAllRecords

public void replaceAllRecords(int records)
Specified by:
replaceAllRecords in interface ScalabilityTestSubject

createConnection

protected Connection createConnection()

reportResourcesUsed

public void reportResourcesUsed(PrintStream out)
Specified by:
reportResourcesUsed in interface ScalabilityTestSubject


Copyright © 2001-2013. All Rights Reserved.