EclipseLink 2.1.2, build 'v20101206-r8635' API Reference

org.eclipse.persistence.platform.server.oc4j
Class Oc4jPlatform

java.lang.Object
  extended by org.eclipse.persistence.platform.server.ServerPlatformBase
      extended by 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
 
Constructor Summary
Oc4jPlatform(DatabaseSession newDatabaseSession)
          INTERNAL: Default Constructor: All behavior for the default constructor is inherited
 
Method Summary
 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, getModuleName, getNewTempClassLoader, getServerLog, getServerNameAndVersion, initializeExternalTransactionController, initializeServerNameAndVersion, isCMP, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, shouldUseDriverManager, unregisterMBean, wasFailureCommunicationBased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ServerPlatform
Specified by:
getExternalTransactionControllerClass in class ServerPlatformBase
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 interface ServerPlatform
Overrides:
unwrapConnection in class ServerPlatformBase

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 interface ServerPlatform
Overrides:
clearStatementCache in class ServerPlatformBase

EclipseLink 2.1.2, build 'v20101206-r8635' API Reference