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

public final Class CustomServerPlatform

extends ServerPlatformBase
Class Inheritance
Imports
org.eclipse.persistence.sessions.DatabaseSession, .ExternalTransactionController

INTERNAL: This is the concrete subclass responsible for handling backward compatibility for 9.0.4. This platform overrides: getExternalTransactionControllerClass(): to use a user-specified controller class This platform adds: setExternalTransactionControllerClass(Class newClass): to allow the user to define the external transaction controller when the 904 sessions.xml defines an external-transaction-controller-class.

Field Summary

Inherited from org.eclipse.persistence.platform.server.ServerPlatformBase:
DEFAULT_SERVER_NAME_AND_VERSIONexternalTransactionControllerClassJMX_REGISTER_DEV_MBEAN_PROPERTYJMX_REGISTER_RUN_MBEAN_PROPERTYserverNameAndVersionshouldRegisterDevelopmentBeanshouldRegisterRuntimeBeanthreadPoolthreadPoolSize

Constructor Summary

AccessConstructor and Description
public
CustomServerPlatform(DatabaseSession newDatabaseSession)

INTERNAL: Default Constructor: JTA is disabled until a transaction controller class is set.

Method Summary

Modifier and TypeMethod and Description
protected void
externalTransactionControllerNotNullWarning()

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

INTERNAL: externalTransactionControllerNotNullWarning(): When the external transaction controller is being initialized, we warn the developer if they have already defined the external transaction controller in some way other than subclassing ServerPlatformBase.
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 in the DatabaseSession This is defined by the user via the 904 sessions.xml.
Inherited from org.eclipse.persistence.platform.server.ServerPlatformBase:
clearStatementCacheconfigureProfilerdisableJTAdisableRuntimeServicesenableRuntimeServicesensureNotLoggedIngetDatabaseSessiongetJNDIConnectorLookupTypegetModuleNamegetNewTempClassLoadergetPartitionIDgetServerLoggetServerNameAndVersiongetThreadPoolgetThreadPoolSizeinitializeExternalTransactionControllerinitializeServerNameAndVersionisCMPisJTA11isJTAEnabledisRuntimeServicesEnabledisRuntimeServicesEnabledDefaultlaunchContainerRunnableregisterMBeanserverSpecificRegisterMBeanserverSpecificUnregisterMBeansetExternalTransactionControllerClasssetIsCMPsetThreadPoolsetThreadPoolSizeshouldUseDriverManagershutdownunregisterMBeanunwrapConnectionusesPartitionswasFailureCommunicationBased

Constructor Detail

CustomServerPlatformback to summary
public CustomServerPlatform(DatabaseSession newDatabaseSession)

INTERNAL: Default Constructor: JTA is disabled until a transaction controller class is set. Runtime services are disabled.

Method Detail

externalTransactionControllerNotNullWarningback to summary
protected void externalTransactionControllerNotNullWarning()

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

INTERNAL: externalTransactionControllerNotNullWarning(): When the external transaction controller is being initialized, we warn the developer if they have already defined the external transaction controller in some way other than subclassing ServerPlatformBase. This warning is omitted in 9.0.4.

Annotations
@Override
See Also
ServerPlatformBase
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 in the DatabaseSession This is defined by the user via the 904 sessions.xml.

Returns:Class<? extends ExternalTransactionController>

Class externalTransactionControllerClass

Annotations
@Override
See Also
org.eclipse.persistence.transaction.JTATransactionController, isJTAEnabled(), disableJTA(), initializeExternalTransactionController()