|
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.StandAloneConnectionProvider
public class StandAloneConnectionProvider
Provides a standalone implementation of the ConnectionProvider class to be used during unit testing.
This implementation creates a connection based on the database properties and credentials specified in the file indicated by the APPCONNFILE system property. There is no security context in connection.
Additionally, this implementation uses a ThreadLocal in order to create a new Connection for each executing Thread. 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 | |
---|---|
protected static java.lang.String |
SQL_CREATE_APPLSESSION
|
protected static java.lang.String |
SQL_TERMINATE_APPLSESSION
|
Constructor Summary | |
---|---|
StandAloneConnectionProvider()
|
Method Summary | |
---|---|
void |
clean()
Closes the connection if one exists. |
protected static java.sql.Connection |
createConnection()
Makes a JDBC Connection based on a properties file specified by the APPCONNFILE system property. |
java.sql.Connection |
getDBConnection()
Returns a JDBC Connection object |
protected static void |
initializeConnection(java.sql.Connection conn)
Helper to createConnection to do that post-create initialize steps for Data Security |
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 |
---|
protected static final java.lang.String SQL_CREATE_APPLSESSION
protected static final java.lang.String SQL_TERMINATE_APPLSESSION
Constructor Detail |
---|
public StandAloneConnectionProvider()
Method Detail |
---|
public java.sql.Connection getDBConnection()
ConnectionProvider
getDBConnection
in class ConnectionProvider
public void clean()
clean
in class ConnectionProvider
protected static void initializeConnection(java.sql.Connection conn)
conn
- protected static java.sql.Connection createConnection() throws java.sql.SQLException
java.sql.SQLException
public void returnDBConnection(java.sql.Connection pCon)
ConnectionProvider
returnDBConnection
in class ConnectionProvider
pCon
- JDBC Connection object to be returned
to the provider
|
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 |