EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference

org.eclipse.persistence.platform.server.wls
Class WebLogicPlatform

java.lang.Object
  extended by org.eclipse.persistence.platform.server.ServerPlatformBase
      extended by org.eclipse.persistence.platform.server.wls.WebLogicPlatform
All Implemented Interfaces:
ServerPlatform
Direct Known Subclasses:
WebLogic_9_Platform

public class WebLogicPlatform
extends ServerPlatformBase

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

This platform overrides:


Field Summary
protected  java.lang.reflect.Method clearStatementCacheMethod
          Cached WLConnection.clearStatementCache() Method used for clearing statement cache.
protected  java.lang.reflect.Method vendorConnectionMethod
          Cached WLConnection.getVendorConnection() Method used for unwrapping connections.
protected  java.lang.Class weblogicConnectionClass
          Cached WLS connection class used to reflectively check connections and unwrap them.
 
Fields inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
DEFAULT_SERVER_NAME_AND_VERSION, externalTransactionControllerClass, serverNameAndVersion
 
Constructor Summary
WebLogicPlatform(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 WebLogic connection using the WebLogic API reflectively.
 java.lang.String getApplicationName()
          INTERNAL: getApplicationName(): Answer the name of the module (EAR name) that this session is associated with.
protected  java.lang.reflect.Method getClearStatementCacheMethod()
          Return the method for the WebLogic connection clearStatementCache method.
 java.lang.Class getExternalTransactionControllerClass()
          INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for WebLogic.
protected  java.lang.reflect.Method getVendorConnectionMethod()
          Return the method for the WebLogic JDBC connection wrapper vendorConnection.
protected  java.lang.Class getWebLogicConnectionClass()
          Return the class (interface) for the WebLogic JDBC connection wrapper.
 void initializeServerNameAndVersion()
          INTERNAL: Set the WLS version number through reflection.
 java.sql.Connection unwrapConnection(java.sql.Connection connection)
          Unwraps the WebLogic JDBC connection wrapping using the WebLogic API reflectively.
 
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
configureProfiler, disableJTA, disableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getModuleName, getNewTempClassLoader, getServerLog, getServerNameAndVersion, initializeExternalTransactionController, isCMP, isJTAEnabled, isRuntimeServicesEnabled, 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
 

Field Detail

weblogicConnectionClass

protected java.lang.Class weblogicConnectionClass
Cached WLS connection class used to reflectively check connections and unwrap them.


vendorConnectionMethod

protected java.lang.reflect.Method vendorConnectionMethod
Cached WLConnection.getVendorConnection() Method used for unwrapping connections.


clearStatementCacheMethod

protected java.lang.reflect.Method clearStatementCacheMethod
Cached WLConnection.clearStatementCache() Method used for clearing statement cache.

Constructor Detail

WebLogicPlatform

public WebLogicPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: All behavior for the default constructor is inherited.

Method Detail

initializeServerNameAndVersion

public void initializeServerNameAndVersion()
INTERNAL: Set the WLS version number through reflection.

Overrides:
initializeServerNameAndVersion in class ServerPlatformBase

getApplicationName

public java.lang.String getApplicationName()
INTERNAL: getApplicationName(): Answer the name of the module (EAR name) that this session is associated with. Answer "unknown" if there is no application name available. Default behavior is to return "unknown" - we override this behavior here for WebLogic. There are 4 levels of implementation. 1) use the property override weblogic.applicationName, or 2) perform a reflective weblogic.work.executeThreadRuntime.getApplicationName() call (build 10.3.3.1), or 3) extract the moduleName:persistence_unit from the weblogic classloader string representation (build 10.3), or 3) defer to superclass - usually return "unknown"

Returns:
String applicationName

getExternalTransactionControllerClass

public java.lang.Class getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for WebLogic. 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()

getWebLogicConnectionClass

protected java.lang.Class getWebLogicConnectionClass()
Return the class (interface) for the WebLogic JDBC connection wrapper.


getVendorConnectionMethod

protected java.lang.reflect.Method getVendorConnectionMethod()
Return the method for the WebLogic JDBC connection wrapper vendorConnection.


unwrapConnection

public java.sql.Connection unwrapConnection(java.sql.Connection connection)
Unwraps the WebLogic JDBC connection wrapping using the WebLogic API reflectively.

Specified by:
unwrapConnection in interface ServerPlatform
Overrides:
unwrapConnection in class ServerPlatformBase

getClearStatementCacheMethod

protected java.lang.reflect.Method getClearStatementCacheMethod()
Return the method for the WebLogic connection clearStatementCache method.


clearStatementCache

public void clearStatementCache(java.sql.Connection connection)
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.

Specified by:
clearStatementCache in interface ServerPlatform
Overrides:
clearStatementCache in class ServerPlatformBase

EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference