org.eclipse.persistence.platform.server.oc4j
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
Constructor Summary |
Oc4jPlatform(DatabaseSession newDatabaseSession)
INTERNAL:
Default Constructor: All behavior for the default constructor is inherited |
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase |
configureProfiler, disableJTA, disableRuntimeServices, getDatabaseSession, getModuleName, getNewTempClassLoader, getServerLog, getServerNameAndVersion, initializeExternalTransactionController, isCMP, isJTAEnabled, isRuntimeServicesEnabled, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, shouldUseDriverManager, unregisterMBean, wasFailureCommunicationBased |
Oc4jPlatform
public Oc4jPlatform(DatabaseSession newDatabaseSession)
- INTERNAL:
Default Constructor: All behavior for the default constructor is inherited
getExternalTransactionControllerClass
public Class getExternalTransactionControllerClass()
- INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use
for Oc4j. This is read-only.
- Specified by:
getExternalTransactionControllerClass
in interface ServerPlatform
- Specified by:
getExternalTransactionControllerClass
in class ServerPlatformBase
- Returns:
- Class externalTransactionControllerClass
- See Also:
JTATransactionController
,
ServerPlatformBase.isJTAEnabled()
,
ServerPlatformBase.disableJTA()
,
ServerPlatformBase.initializeExternalTransactionController()
unwrapConnection
public Connection unwrapConnection(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 interface ServerPlatform
- Overrides:
unwrapConnection
in class ServerPlatformBase
clearStatementCache
public void clearStatementCache(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 interface ServerPlatform
- Overrides:
clearStatementCache
in class ServerPlatformBase