Top Description Fields Constructors Methods
org.eclipse.persistence.platform.server.wls

public Class WebLogicPlatform

extends JMXServerPlatformBase
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.platform.server.wls.WebLogic_9_Platform
Imports
java.lang.reflect.InvocationTargetException, .Method, java.sql.Connection, org.eclipse.persistence.internal.helper.Helper, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, org.eclipse.persistence.logging.SessionLog, org.eclipse.persistence.platform.server.JMXServerPlatformBase, org.eclipse.persistence.sessions.DatabaseSession, .ExternalTransactionController, org.eclipse.persistence.transaction.wls.WebLogicTransactionController

PUBLIC: This is the concrete subclass responsible for representing WebLogic-specific server behavior.

This platform overrides:

Field Summary

Modifier and TypeField and Description
protected Method
clearStatementCacheMethod

Cached WLConnection.clearStatementCache() Method used for clearing statement cache.

protected boolean
shouldClearStatementCache

Indicates whether WLConnection.clearStatementCache() should be called: there is no need to call it in WebLogic Server 10.3.4 or later.

protected Method
vendorConnectionMethod

Cached WLConnection.getVendorConnection() Method used for unwrapping connections.

protected Class<?>
weblogicConnectionClass

Cached WLS connection class used to reflectively check connections and unwrap them.

Inherited from org.eclipse.persistence.platform.server.JMXServerPlatformBase:
APP_SERVER_CLASSLOADER_APPLICATION_PU_SEARCH_STRING_POSTFIXAPP_SERVER_CLASSLOADER_APPLICATION_PU_SEARCH_STRING_PREFIXAPP_SERVER_CLASSLOADER_MODULE_EJB_SEARCH_STRING_PREFIXAPP_SERVER_CLASSLOADER_MODULE_EJB_WAR_SEARCH_STRING_POSTFIXAPP_SERVER_CLASSLOADER_MODULE_WAR_SEARCH_STRING_PREFIXJMX_MBEANSERVER_INDEX_DEFAULT_FOR_MULTIPLE_SERVERSJMX_REGISTRATION_PREFIXmBeanServerOVERRIDE_JMX_APPLICATIONNAME_PROPERTYOVERRIDE_JMX_MODULENAME_PROPERTY

Constructor Summary

AccessConstructor and Description
public
WebLogicPlatform(DatabaseSession newDatabaseSession)

INTERNAL: Default Constructor: All behavior for the default constructor is inherited.

Method Summary

Modifier and TypeMethod and Description
public void
clearStatementCache(Connection connection)

Overrides org.eclipse.persistence.platform.server.ServerPlatformBase.clearStatementCache.

Implements org.eclipse.persistence.platform.server.ServerPlatform.clearStatementCache.

INTERNAL: Clears statement cache of WebLogic connection using the WebLogic API reflectively.
protected Method
getClearStatementCacheMethod()

Return the method for the WebLogic connection clearStatementCache method.

public Class<? extends ExternalTransactionController>

Returns:

Class externalTransactionControllerClass
getExternalTransactionControllerClass
()

Implements abstract org.eclipse.persistence.platform.server.ServerPlatformBase.getExternalTransactionControllerClass.

Implements org.eclipse.persistence.platform.server.ServerPlatform.getExternalTransactionControllerClass.

INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for WebLogic.
protected Method
getVendorConnectionMethod()

Return the method for the WebLogic JDBC connection wrapper vendorConnection.

protected Class<?>
getWebLogicConnectionClass()

Return the class (interface) for the WebLogic JDBC connection wrapper.

public void
public boolean

Returns:

always returns false for WLS older than 10.0.
isJTA11
()

Overrides org.eclipse.persistence.platform.server.ServerPlatformBase.isJTA11.

INTERNAL: Check whether JTA 1.1 API is available.
public Connection
unwrapConnection(Connection connection)

Overrides org.eclipse.persistence.platform.server.ServerPlatformBase.unwrapConnection.

Implements org.eclipse.persistence.platform.server.ServerPlatform.unwrapConnection.

Unwraps the WebLogic JDBC connection wrapping using the WebLogic API reflectively.
Inherited from org.eclipse.persistence.platform.server.JMXServerPlatformBase:
getAbstractSessiongetApplicationNamegetApplicationNamegetMBeanServergetMBeanSessionNamegetModuleNamegetModuleNamegetRuntimeServicesMBeaninitializeApplicationNameAndModuleNameserverSpecificRegisterMBeanserverSpecificUnregisterMBeansetApplicationNamesetModuleNamesetRuntimeServicesMBean

Field Detail

clearStatementCacheMethodback to summary
protected Method clearStatementCacheMethod

Cached WLConnection.clearStatementCache() Method used for clearing statement cache.

shouldClearStatementCacheback to summary
protected boolean shouldClearStatementCache

Indicates whether WLConnection.clearStatementCache() should be called: there is no need to call it in WebLogic Server 10.3.4 or later.

vendorConnectionMethodback to summary
protected Method vendorConnectionMethod

Cached WLConnection.getVendorConnection() Method used for unwrapping connections.

weblogicConnectionClassback to summary
protected Class<?> weblogicConnectionClass

Cached WLS connection class used to reflectively check connections and unwrap them.

Constructor Detail

WebLogicPlatformback to summary
public WebLogicPlatform(DatabaseSession newDatabaseSession)

INTERNAL: Default Constructor: All behavior for the default constructor is inherited.

Method Detail

clearStatementCacheback to summary
public void clearStatementCache(Connection connection)

Overrides org.eclipse.persistence.platform.server.ServerPlatformBase.clearStatementCache.

Implements org.eclipse.persistence.platform.server.ServerPlatform.clearStatementCache.

INTERNAL: Clears statement cache of WebLogic connection using the WebLogic API reflectively. 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.

Annotations
@Override
getClearStatementCacheMethodback to summary
protected Method getClearStatementCacheMethod()

Return the method for the WebLogic connection clearStatementCache method.

getExternalTransactionControllerClassback to summary
public Class<? extends ExternalTransactionController> getExternalTransactionControllerClass()

Implements abstract org.eclipse.persistence.platform.server.ServerPlatformBase.getExternalTransactionControllerClass.

Implements org.eclipse.persistence.platform.server.ServerPlatform.getExternalTransactionControllerClass.

INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for WebLogic. This is read-only.

Returns:Class<? extends ExternalTransactionController>

Class externalTransactionControllerClass

Annotations
@Override
See Also
org.eclipse.persistence.transaction.JTATransactionController, org.eclipse.persistence.platform.server.ServerPlatformBase#isJTAEnabled(), org.eclipse.persistence.platform.server.ServerPlatformBase#disableJTA(), org.eclipse.persistence.platform.server.ServerPlatformBase#initializeExternalTransactionController()
getVendorConnectionMethodback to summary
protected Method getVendorConnectionMethod()

Return the method for the WebLogic JDBC connection wrapper vendorConnection.

getWebLogicConnectionClassback to summary
protected Class<?> getWebLogicConnectionClass()

Return the class (interface) for the WebLogic JDBC connection wrapper.

initializeServerNameAndVersionback to summary
public void initializeServerNameAndVersion()

Overrides org.eclipse.persistence.platform.server.ServerPlatformBase.initializeServerNameAndVersion.

INTERNAL: Set the WLS version number through reflection.

Annotations
@Override
isJTA11back to summary
public boolean isJTA11()

Overrides org.eclipse.persistence.platform.server.ServerPlatformBase.isJTA11.

INTERNAL: Check whether JTA 1.1 API is available. WLS older than 10.0 is not JTA 1.1 compliant.

Returns:boolean

always returns false for WLS older than 10.0.

Annotations
@Override
unwrapConnectionback to summary
public Connection unwrapConnection(Connection connection)

Overrides org.eclipse.persistence.platform.server.ServerPlatformBase.unwrapConnection.

Implements org.eclipse.persistence.platform.server.ServerPlatform.unwrapConnection.

Unwraps the WebLogic JDBC connection wrapping using the WebLogic API reflectively.

Annotations
@Override