org.prevayler.demos.scalability.jdbc
Class JDBCQuerySubject

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

public class JDBCQuerySubject
extends Object


Field Summary
protected  String connectionURL
           
protected  String password
           
protected  String user
           
 
Constructor Summary
JDBCQuerySubject(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

JDBCQuerySubject

public JDBCQuerySubject(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.