|
Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.appltest.diagfwk.common.DiagBaseFactory oracle.apps.fnd.appltest.diagfwk.engine.provider.connection.ConnectionProvider oracle.apps.fnd.appltest.diagfwk.engine.provider.connection.PSRConnectionProvider
public class PSRConnectionProvider
Provides a pool implementation of the ConnectionProvider class to be used for performance profiling junit tests.
This implementation creates a connection based on the settings specified in the APPCONNFILE file. Each connection is created based on the database properties and credentials specified in the file indicated by the APPCONNFILE system property. There is no security context in connection. The default pool size is 10 and it can be set by the system property PSR_POOLSIZE.
Hence, this implementation is not really meant for production usage and should only be used during unit testing.
Connections created by this provider will always have auto commit set to false.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants |
---|
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status |
Field Summary | |
---|---|
static java.lang.String |
SYSPROP_PSR_CONNPROVIDER
|
static java.lang.String |
SYSPROP_PSR_POOLSIZE
|
Constructor Summary | |
---|---|
PSRConnectionProvider()
|
Method Summary | |
---|---|
protected void |
clean()
Performs any cleanup on the Connection Provider |
void |
cleanDBConnectionPool()
|
java.sql.Connection |
getDBConnection()
Returns a JDBC Connection object |
void |
returnDBConnection(java.sql.Connection pCon)
Returns the JDBC Connection object previously borrowed from the provider. |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.provider.connection.ConnectionProvider |
---|
cleanup, closeDBConnection, getConnection, getInstance, reset, returnConnection |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.common.DiagBaseFactory |
---|
createClassLoader, loadClassFor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String SYSPROP_PSR_POOLSIZE
public static java.lang.String SYSPROP_PSR_CONNPROVIDER
Constructor Detail |
---|
public PSRConnectionProvider()
Method Detail |
---|
public java.sql.Connection getDBConnection()
ConnectionProvider
getDBConnection
in class ConnectionProvider
public void returnDBConnection(java.sql.Connection pCon)
ConnectionProvider
returnDBConnection
in class ConnectionProvider
pCon
- JDBC Connection object to be returned
to the providerprotected void clean()
ConnectionProvider
clean
in class ConnectionProvider
public void cleanDBConnectionPool()
|
Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |