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

public Class GlassfishPlatform

extends JMXServerPlatformBase
implements JMXEnabledPlatform
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.platform.server.JMXEnabledPlatform
Imports
java.lang.reflect.Method, java.security.AccessController, .PrivilegedAction, java.sql.Connection, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, org.eclipse.persistence.logging.JavaLog, .SessionLog, org.eclipse.persistence.platform.server.JMXEnabledPlatform, .JMXServerPlatformBase, .ServerPlatformBase, org.eclipse.persistence.services.glassfish.MBeanGlassfishRuntimeServices, org.eclipse.persistence.sessions.DatabaseSession, .ExternalTransactionController, org.eclipse.persistence.transaction.glassfish.GlassfishTransactionController, .GlassfishTransactionController11

PUBLIC: This is the concrete subclass responsible for representing Glassfish server behavior. This platform overrides: getExternalTransactionControllerClass(): to use an Glassfish controller class

Field Summary

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
GlassfishPlatform(DatabaseSession newDatabaseSession)

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

Method Summary

Modifier and TypeMethod and Description
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 SUN AS9.
public SessionLog
getServerLog()

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

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

INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base
public boolean
isRuntimeServicesEnabledDefault()

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

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

INTERNAL: isRuntimeServicesEnabledDefault(): Answer true if the JMX/MBean providing runtime services for the receiver's DatabaseSession will be deployed at runtime.
public void
prepareServerSpecificServicesMBean()

Implements org.eclipse.persistence.platform.server.JMXEnabledPlatform.prepareServerSpecificServicesMBean.

INTERNAL: prepareServerSpecificServicesMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for the databaseSession.
public void
serverSpecificRegisterMBean()

Overrides org.eclipse.persistence.platform.server.JMXServerPlatformBase.serverSpecificRegisterMBean.

INTERNAL: serverSpecificRegisterMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for my databaseSession.
public Connection
unwrapConnection(final Connection connection)

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

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

INTERNAL: This method is used to unwrap the connection wrapped by the application server.
private Connection

Returns:

unwrapped GlassFish connection, null if connection can not be unwrapped.
unwrapGlassFishConnectionHelper
(Connection connection)

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

Constructor Detail

GlassfishPlatformback to summary
public GlassfishPlatform(DatabaseSession newDatabaseSession)

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

Method Detail

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 SUN AS9. This is read-only.

Returns:Class<? extends ExternalTransactionController>

Class externalTransactionControllerClass

Annotations
@Override
See Also
org.eclipse.persistence.transaction.JTATransactionController, ServerPlatformBase#isJTAEnabled(), ServerPlatformBase#disableJTA(), ServerPlatformBase#initializeExternalTransactionController()
getServerLogback to summary
public SessionLog getServerLog()

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

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

Doc from org.eclipse.persistence.platform.server.ServerPlatformBase.getServerLog.

INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base

Returns:SessionLog

org.eclipse.persistence.logging.SessionLog

Annotations
@Override
isRuntimeServicesEnabledDefaultback to summary
public boolean isRuntimeServicesEnabledDefault()

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

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

Doc from org.eclipse.persistence.platform.server.ServerPlatformBase.isRuntimeServicesEnabledDefault.

INTERNAL: isRuntimeServicesEnabledDefault(): Answer true if the JMX/MBean providing runtime services for the receiver's DatabaseSession will be deployed at runtime. Provide the default value for isRuntimeServicesEnabled() for a ServerPlatform. By default this is false but some platforms can choose to have MBeans deployed by default.

Annotations
@Override
prepareServerSpecificServicesMBeanback to summary
public void prepareServerSpecificServicesMBean()

Implements org.eclipse.persistence.platform.server.JMXEnabledPlatform.prepareServerSpecificServicesMBean.

INTERNAL: prepareServerSpecificServicesMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for the databaseSession. Default is to do nothing. Implementing platform classes must override this function and supply the server specific MBean instance for later registration by calling it in the constructor.

Annotations
@Override
See Also
isRuntimeServicesEnabled(), disableRuntimeServices(), registerMBean()
serverSpecificRegisterMBeanback to summary
public void serverSpecificRegisterMBean()

Overrides org.eclipse.persistence.platform.server.JMXServerPlatformBase.serverSpecificRegisterMBean.

INTERNAL: serverSpecificRegisterMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for my databaseSession.

Annotations
@Override
See Also
isRuntimeServicesEnabled(), disableRuntimeServices(), registerMBean()
unwrapConnectionback to summary
public Connection unwrapConnection(final Connection connection)

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

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

Doc from org.eclipse.persistence.platform.server.ServerPlatformBase.unwrapConnection.

INTERNAL: This method is used to unwrap the connection wrapped by the application server. TopLink needs this unwrapped connection for certain database vendor specific support. (i.e. TIMESTAMPTZ,NCHAR,XMLTYPE) Be default we will use the connection's metadata to try to get the connection

Annotations
@Override
unwrapGlassFishConnectionHelperback to summary
private Connection unwrapGlassFishConnectionHelper(Connection connection)
Returns:Connection

unwrapped GlassFish connection, null if connection can not be unwrapped.