Module org.eclipse.persistence.core
Class NoServerPlatform
java.lang.Object
org.eclipse.persistence.platform.server.ServerPlatformBase
org.eclipse.persistence.platform.server.NoServerPlatform
- All Implemented Interfaces:
ServerPlatform
PUBLIC:
This platform is used when EclipseLink is not within any server (Oc4j, WebLogic, ...)
This is also the default platform for all newly created DatabaseSessions.
This platform has:
- No external transaction controller class
- No runtime services (JMX/MBean)
- No launching of container Threads
-
Field Summary
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, threadPool, threadPoolSize
-
Constructor Summary
ConstructorsConstructorDescriptionNoServerPlatform
(DatabaseSession newDatabaseSession) INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled. -
Method Summary
Modifier and TypeMethodDescriptionvoid
TriggerDatabaseSession
's external transaction controller class to be populated with transaction controller class at runtime.Class
<? extends ExternalTransactionController> INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the basePUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.void
INTERNAL: initializeExternalTransactionController(): Populate the DatabaseSession's external transaction controller with an instance of my transaction controller class.void
launchContainerThread
(Thread thread) INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platformunwrapConnection
(Connection connection) INTERNAL: When there is no server, the original connection will be returnedMethods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getJNDIConnectorLookupType, getModuleName, getNewTempClassLoader, getPartitionID, getThreadPool, getThreadPoolSize, initializeServerNameAndVersion, isCMP, isJTA11, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, setJTAEnabled, setThreadPool, setThreadPoolSize, shouldUseDriverManager, shutdown, unregisterMBean, usesPartitions, wasFailureCommunicationBased
-
Constructor Details
-
NoServerPlatform
INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.
-
-
Method Details
-
getServerNameAndVersion
PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.- Specified by:
getServerNameAndVersion
in interfaceServerPlatform
- Overrides:
getServerNameAndVersion
in classServerPlatformBase
- Returns:
- String serverNameAndVersion
-
getExternalTransactionControllerClass
INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.- Specified by:
getExternalTransactionControllerClass
in interfaceServerPlatform
- Specified by:
getExternalTransactionControllerClass
in classServerPlatformBase
- Returns:
- Class externalTransactionControllerClass
- See Also:
-
launchContainerThread
INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform- Parameters:
thread
- the instance of Thread
-
getServerLog
INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base- Specified by:
getServerLog
in interfaceServerPlatform
- Overrides:
getServerLog
in classServerPlatformBase
- Returns:
- org.eclipse.persistence.logging.SessionLog
-
enableJTA
public void enableJTA()Description copied from class:ServerPlatformBase
TriggerDatabaseSession
's external transaction controller class to be populated with transaction controller class at runtime. Does nothing by default. Child class may override this method to enable the trigger.- Overrides:
enableJTA
in classServerPlatformBase
-
initializeExternalTransactionController
public void initializeExternalTransactionController()Description copied from class:ServerPlatformBase
INTERNAL: initializeExternalTransactionController(): Populate the DatabaseSession's external transaction controller with an instance of my transaction controller class. To change the external transaction controller class, we recommend creating a subclass of ServerPlatformBase, and overriding getExternalTransactionControllerClass().- Specified by:
initializeExternalTransactionController
in interfaceServerPlatform
- Overrides:
initializeExternalTransactionController
in classServerPlatformBase
- See Also:
-
unwrapConnection
INTERNAL: When there is no server, the original connection will be returned- Specified by:
unwrapConnection
in interfaceServerPlatform
- Overrides:
unwrapConnection
in classServerPlatformBase
-