Class Oc4jPlatform
- java.lang.Object
-
- org.eclipse.persistence.platform.server.ServerPlatformBase
-
- org.eclipse.persistence.platform.server.oc4j.Oc4jPlatform
-
- All Implemented Interfaces:
ServerPlatform
public class Oc4jPlatform extends ServerPlatformBase
PUBLIC: This is the concrete subclass responsible for representing Oc4j-specific server behavior. This platform overrides: getExternalTransactionControllerClass(): to use an Oc4j-specific controller class initializeServerNameAndVersion(): to call an Oc4j library for this information
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
DEFAULT_SERVER_NAME_AND_VERSION, externalTransactionControllerClass, JMX_REGISTER_DEV_MBEAN_PROPERTY, JMX_REGISTER_RUN_MBEAN_PROPERTY, serverNameAndVersion, shouldRegisterDevelopmentBean, shouldRegisterRuntimeBean, threadPool, threadPoolSize
-
-
Constructor Summary
Constructors Constructor Description Oc4jPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: All behavior for the default constructor is inherited
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearStatementCache(java.sql.Connection connection)
INTERNAL: Clears statement cache of the wrapper connection.java.lang.Class
getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for Oc4j.java.sql.Connection
unwrapConnection(java.sql.Connection connection)
INTERNAL: This method is used to unwrap the oracle connection wrapped by the application server.-
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getJNDIConnectorLookupType, getModuleName, getNewTempClassLoader, getPartitionID, getServerLog, getServerNameAndVersion, getThreadPool, getThreadPoolSize, initializeExternalTransactionController, initializeServerNameAndVersion, isCMP, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, setThreadPool, setThreadPoolSize, shouldUseDriverManager, shutdown, unregisterMBean, usesPartitions, wasFailureCommunicationBased
-
-
-
-
Constructor Detail
-
Oc4jPlatform
public Oc4jPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: All behavior for the default constructor is inherited
-
-
Method Detail
-
getExternalTransactionControllerClass
public java.lang.Class getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for Oc4j. This is read-only.- Specified by:
getExternalTransactionControllerClass
in interfaceServerPlatform
- Specified by:
getExternalTransactionControllerClass
in classServerPlatformBase
- Returns:
- Class externalTransactionControllerClass
- See Also:
JTATransactionController
,ServerPlatformBase.isJTAEnabled()
,ServerPlatformBase.disableJTA()
,ServerPlatformBase.initializeExternalTransactionController()
-
unwrapConnection
public java.sql.Connection unwrapConnection(java.sql.Connection connection)
INTERNAL: This method is used to unwrap the oracle connection wrapped by the application server. TopLink needs this unwrapped connection for certain Oracle Specific support. (ie TIMESTAMPTZ)- Specified by:
unwrapConnection
in interfaceServerPlatform
- Overrides:
unwrapConnection
in classServerPlatformBase
-
clearStatementCache
public void clearStatementCache(java.sql.Connection connection)
INTERNAL: Clears statement cache of the wrapper connection. Required by Oracle proxy authentication: currently connection statement cache becomes invalid on switching to/from proxy session. This method is called by OracleJDBC_10_1_0_2ProxyConnectionCustomizer before opening proxy session and before closing it.- Specified by:
clearStatementCache
in interfaceServerPlatform
- Overrides:
clearStatementCache
in classServerPlatformBase
-
-