Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

oracle.apps.fnd.appltest.diagfwk.engine.provider.connection
Class PSRConnectionProvider

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.common.DiagBaseFactory
      extended by oracle.apps.fnd.appltest.diagfwk.engine.provider.connection.ConnectionProvider
          extended by oracle.apps.fnd.appltest.diagfwk.engine.provider.connection.PSRConnectionProvider
All Implemented Interfaces:
DiagConstants

public class PSRConnectionProvider
extends ConnectionProvider

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.

Since:
release specific (what release of product did this appear in)
Version:
$Header:
Author:
Lily Wong

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
           
 
Fields inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants
APPS_MSG_ID_TAG_NAME, CFG_ADR_PROVIDER_CLASS, CFG_CACHE_PROVIDER_CLASS, CFG_CRED_PROVIDER_CLASS, CFG_DAO_FACTORY_CLASS, CFG_DB_CONN_INFO_PROVIDER_CLASS, CFG_DB_CONN_PROVIDER_CLASS, CFG_NLS_PROVIDER_CLASS, CFG_PLSQL_PROVIDER_CLASS, CFG_PROFILE_PROVIDER_CLASS, CFG_SECURITY_PROVIDER_CLASS, CFG_SESSION_INFO_PROVIDER_CLASS, CFG_URL_PROVIDER_FACTORY_CLASS, CFG_WLS_MBEANSRV_CONNINFO_PROVIDER_CLASS, DATA_SECURITY_PERMISSION_ALLOWED, DATA_SECURITY_PERMISSION_NOT_ALLOWED, DELIM_URL, EXEC_MODE_CLI, EXEC_MODE_ESS, EXEC_MODE_INCIDENT, EXEC_MODE_JAVA, EXEC_MODE_UI, EXECUTABLE_TYPE_JAVA, EXECUTABLE_TYPE_PLSQL, EXECUTABLE_TYPE_TESTREF, FORMAT_HTML, FORMAT_XML, GUID_ORACLE_MINUS1, GUID_ORACLE_ZERO, INPUTS_STATUS_ALL_OPT_INPUTS, INPUTS_STATUS_NO_INPUTS, INPUTS_STATUS_REQ_INPUTS_NO_DEFAULTS, INPUTS_STATUS_REQ_INPUTS_W_DEFAULTS, IO_FLAG_I, IO_FLAG_O, JMX_API_BASE_OBJECT_NAME, LINK_EXTERNAL, LINK_INTERNAL, LINK_METALINK, N, NLS_BUNDLE_JAVA_RES, NLS_BUNDLE_MSG_SVC, NLS_BUNDLE_RES_REF, NLS_BUNDLE_XLIFF, NO, NULL, ODF_MBEAN_DOMAIN_NAME, PARAM_MON_INTERVAL, PLSQL_DEBUG_ENABLED_SYSTEM_PROP, PREREQ_TYPE_TAG_VALUE, PREREQ_TYPE_TEST, SECONDS_IN_ONE_DAY, SECONDS_IN_ONE_HOUR, STATUS_CANCELED, STATUS_EXECERROR, STATUS_FAILURE, STATUS_RUNNING, STATUS_SUCCESS, STATUS_WARNING, SYS_PROP_MAX_MONITOR_INTERNVAL, SYS_PROP_MAX_NUM_THREADS, SYSPROP_APPCONNFILE, SYSPROP_DIAG_CONFIG_FILE, TAG_TYPE_DIAG, TAG_TYPE_TAXONOMY, TEST_TYPE_DECL, TEST_TYPE_JAVA, USER_NAME, WEB_APP_NAME_TAG_NAME, Y, YES
 
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

SYSPROP_PSR_POOLSIZE

public static java.lang.String SYSPROP_PSR_POOLSIZE

SYSPROP_PSR_CONNPROVIDER

public static java.lang.String SYSPROP_PSR_CONNPROVIDER
Constructor Detail

PSRConnectionProvider

public PSRConnectionProvider()
Method Detail

getDBConnection

public java.sql.Connection getDBConnection()
Description copied from class: ConnectionProvider
Returns a JDBC Connection object

Specified by:
getDBConnection in class ConnectionProvider

returnDBConnection

public void returnDBConnection(java.sql.Connection pCon)
Description copied from class: ConnectionProvider
Returns the JDBC Connection object previously borrowed from the provider.

Specified by:
returnDBConnection in class ConnectionProvider
Parameters:
pCon - JDBC Connection object to be returned to the provider

clean

protected void clean()
Description copied from class: ConnectionProvider
Performs any cleanup on the Connection Provider

Specified by:
clean in class ConnectionProvider

cleanDBConnectionPool

public void cleanDBConnectionPool()

Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

Copyright © 2011 Oracle. All Rights Reserved.