Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

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

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.common.DiagBaseFactory
      extended by oracle.apps.fnd.appltest.diagfwk.engine.provider.connection.ConnectionInfoProvider
All Implemented Interfaces:
DiagConstants
Direct Known Subclasses:
JSEConnectionInfoProvider

public abstract class ConnectionInfoProvider
extends DiagBaseFactory

Provider that encapsulates the information required for creating a JDBC Connection.

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/src/oracle/apps/fnd/appltest/diagfwk/engine/provider/connection/ConnectionInfoProvider.java /main/2 2009/07/23 20:16:54 ilawler Exp $
Author:
ppradhan

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
 
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
ConnectionInfoProvider()
           
 
Method Summary
static void clean()
          Cleans out some of the state of the info provider
protected abstract  void cleanUp()
          Performs any cleanup of the connection info provider
 boolean hasConnectInfo()
          Checks to see if the provider has the connect information required for creating a JDBC Connection (such has db host, db port and db sid information)
 boolean hasDbPwd()
          Checks to see if the provider has the db password required for creating the JDBC Connection
 boolean hasDbUn()
          Checks to see if the provider has the db username required for creating the JDBC Connection
static ConnectionInfoProvider instance()
          Returns an instance of a Connection Info Provider based on the current configuration settings.
static void reset()
          Resets the provider class so it is loaded anew next time
abstract  void setConnectInfo(java.lang.String pConnectInfo)
          Sets the given database connect information into the provider.
abstract  void setDbPwd(java.lang.String pDbPwd)
          Sets the db user password
abstract  void setDbUn(java.lang.String pDbUn)
          Sets the database username
abstract  void validate()
          Validates that the database connection information exists.
 
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
 

Constructor Detail

ConnectionInfoProvider

public ConnectionInfoProvider()
Method Detail

instance

public static ConnectionInfoProvider instance()
Returns an instance of a Connection Info Provider based on the current configuration settings.

Returns:
an instance of a ConnectionInfoProvider class.

reset

public static void reset()
Resets the provider class so it is loaded anew next time


clean

public static void clean()
Cleans out some of the state of the info provider


hasConnectInfo

public boolean hasConnectInfo()
Checks to see if the provider has the connect information required for creating a JDBC Connection (such has db host, db port and db sid information)

Returns:
true if provider has the connect information required for creating JDBC Connection. false otherwise.

setConnectInfo

public abstract void setConnectInfo(java.lang.String pConnectInfo)
Sets the given database connect information into the provider. The connection information generally consists of information such as db host, port and sid.

Parameters:
pConnectInfo - the database connect information required for creating a JDBC Connection

hasDbUn

public boolean hasDbUn()
Checks to see if the provider has the db username required for creating the JDBC Connection

Returns:
true if provider has the db username required for creating JDBC Connection. false otherwise.

hasDbPwd

public boolean hasDbPwd()
Checks to see if the provider has the db password required for creating the JDBC Connection

Returns:
true if provider has the db password required for creating JDBC Connection. false otherwise.

setDbUn

public abstract void setDbUn(java.lang.String pDbUn)
Sets the database username

Parameters:
pDbUn - the database username

setDbPwd

public abstract void setDbPwd(java.lang.String pDbPwd)
Sets the db user password

Parameters:
pDbPwd - the db user password

validate

public abstract void validate()
Validates that the database connection information exists.


cleanUp

protected abstract void cleanUp()
Performs any cleanup of the connection info provider


Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.