Class NoServerPlatform
- java.lang.Object
-
- org.eclipse.persistence.platform.server.ServerPlatformBase
-
- org.eclipse.persistence.platform.server.NoServerPlatform
-
- All Implemented Interfaces:
ServerPlatform
public final class NoServerPlatform extends ServerPlatformBase
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
Constructors Constructor Description NoServerPlatform(DatabaseSession newDatabaseSession)INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassgetExternalTransactionControllerClass()INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.SessionLoggetServerLog()INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the basejava.lang.StringgetServerNameAndVersion()PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.voidlaunchContainerThread(java.lang.Thread thread)INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platformjava.sql.ConnectionunwrapConnection(java.sql.Connection connection)INTERNAL: When there is no server, the original connection will be returned-
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getJNDIConnectorLookupType, getModuleName, getNewTempClassLoader, getPartitionID, getThreadPool, getThreadPoolSize, initializeExternalTransactionController, initializeServerNameAndVersion, isCMP, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, setThreadPool, setThreadPoolSize, shouldUseDriverManager, shutdown, unregisterMBean, usesPartitions, wasFailureCommunicationBased
-
-
-
-
Constructor Detail
-
NoServerPlatform
public NoServerPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.
-
-
Method Detail
-
getServerNameAndVersion
public java.lang.String getServerNameAndVersion()
PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.- Specified by:
getServerNameAndVersionin interfaceServerPlatform- Overrides:
getServerNameAndVersionin classServerPlatformBase- Returns:
- String serverNameAndVersion
-
getExternalTransactionControllerClass
public java.lang.Class getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.- Specified by:
getExternalTransactionControllerClassin interfaceServerPlatform- Specified by:
getExternalTransactionControllerClassin classServerPlatformBase- Returns:
- Class externalTransactionControllerClass
- See Also:
ServerPlatformBase.isJTAEnabled(),ServerPlatformBase.disableJTA(),ServerPlatformBase.initializeExternalTransactionController()
-
launchContainerThread
public void launchContainerThread(java.lang.Thread thread)
INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform- Parameters:
thread- the instance of Thread
-
getServerLog
public SessionLog getServerLog()
INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base- Specified by:
getServerLogin interfaceServerPlatform- Overrides:
getServerLogin classServerPlatformBase- Returns:
- org.eclipse.persistence.logging.SessionLog
-
unwrapConnection
public java.sql.Connection unwrapConnection(java.sql.Connection connection)
INTERNAL: When there is no server, the original connection will be returned- Specified by:
unwrapConnectionin interfaceServerPlatform- Overrides:
unwrapConnectionin classServerPlatformBase
-
-