EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.platform.server.was
Class WebSpherePlatform

java.lang.Object
  extended by org.eclipse.persistence.platform.server.ServerPlatformBase
      extended by org.eclipse.persistence.platform.server.JMXServerPlatformBase
          extended by org.eclipse.persistence.platform.server.was.WebSpherePlatform
All Implemented Interfaces:
ServerPlatform
Direct Known Subclasses:
WebSphere_6_1_Platform

public class WebSpherePlatform
extends JMXServerPlatformBase

PUBLIC: This is the concrete subclass responsible for representing WebSphere-specific server behavior. This platform has:


Field Summary
protected  java.lang.reflect.Method vendorConnectionMethod
          Cached WAS util method used for unwrapping connections.
protected  java.lang.Class websphereConnectionClass
          Cached WAS connection class used to reflectively check connections and unwrap them.
protected  java.lang.Class websphereUtilClass
          Cached WAS util class used to reflectively check connections and unwrap them.
 
Fields inherited from class org.eclipse.persistence.platform.server.JMXServerPlatformBase
APP_SERVER_CLASSLOADER_APPLICATION_PU_SEARCH_STRING_POSTFIX, APP_SERVER_CLASSLOADER_APPLICATION_PU_SEARCH_STRING_PREFIX, APP_SERVER_CLASSLOADER_MODULE_EJB_SEARCH_STRING_PREFIX, APP_SERVER_CLASSLOADER_MODULE_EJB_WAR_SEARCH_STRING_POSTFIX, APP_SERVER_CLASSLOADER_MODULE_WAR_SEARCH_STRING_PREFIX, JMX_MBEANSERVER_INDEX_DEFAULT_FOR_MULTIPLE_SERVERS, JMX_REGISTRATION_PREFIX, mBeanServer, OVERRIDE_JMX_APPLICATIONNAME_PROPERTY, OVERRIDE_JMX_MODULENAME_PROPERTY
 
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
WebSpherePlatform(DatabaseSession newDatabaseSession)
          INTERNAL: Default Constructor: All behavior for the default constructor is inherited
 
Method Summary
 java.lang.Class getExternalTransactionControllerClass()
          INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for WebSphere.
protected  java.lang.reflect.Method getVendorConnectionMethod()
          Return the method for the WebSphere JDBC connection wrapper vendorConnection.
protected  java.lang.Class getWebsphereConnectionClass()
          Return the class (interface) for the WebSphere JDBC connection wrapper.
protected  java.lang.Class getWebsphereUtilClass()
          Return the class (interface) for the WebSphere JDBC connection wrapper.
 java.sql.Connection unwrapConnection(java.sql.Connection connection)
          Unwraps the WebSphere JDBC connection wrapping using the WebLogic API reflectively.
 
Methods inherited from class org.eclipse.persistence.platform.server.JMXServerPlatformBase
getAbstractSession, getApplicationName, getApplicationName, getMBeanServer, getMBeanSessionName, getModuleName, getModuleName, getRuntimeServicesMBean, initializeApplicationNameAndModuleName, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setApplicationName, setModuleName, setRuntimeServicesMBean
 
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getNewTempClassLoader, getServerLog, getServerNameAndVersion, initializeExternalTransactionController, initializeServerNameAndVersion, isCMP, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, 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

websphereConnectionClass

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


websphereUtilClass

protected java.lang.Class websphereUtilClass
Cached WAS util class used to reflectively check connections and unwrap them.


vendorConnectionMethod

protected java.lang.reflect.Method vendorConnectionMethod
Cached WAS util method used for unwrapping connections.

Constructor Detail

WebSpherePlatform

public WebSpherePlatform(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 WebSphere. 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()

getWebsphereUtilClass

protected java.lang.Class getWebsphereUtilClass()
Return the class (interface) for the WebSphere JDBC connection wrapper.


getWebsphereConnectionClass

protected java.lang.Class getWebsphereConnectionClass()
Return the class (interface) for the WebSphere JDBC connection wrapper.


getVendorConnectionMethod

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


unwrapConnection

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

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

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference