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

public final Class NoServerPlatform

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

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

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

INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.

Method Summary

Modifier and TypeMethod and Description
public Class<? extends ExternalTransactionController>
public SessionLog

Returns:

org.eclipse.persistence.logging.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 String

Returns:

String serverNameAndVersion
getServerNameAndVersion
()

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

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

PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.
public void
launchContainerThread(Thread
the instance of Thread
thread
)

INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform

public Connection
Inherited from org.eclipse.persistence.platform.server.ServerPlatformBase:
clearStatementCacheconfigureProfilerdisableJTAdisableRuntimeServicesenableRuntimeServicesensureNotLoggedInexternalTransactionControllerNotNullWarninggetDatabaseSessiongetJNDIConnectorLookupTypegetModuleNamegetNewTempClassLoadergetPartitionIDgetThreadPoolgetThreadPoolSizeinitializeExternalTransactionControllerinitializeServerNameAndVersionisCMPisJTA11isJTAEnabledisRuntimeServicesEnabledisRuntimeServicesEnabledDefaultlaunchContainerRunnableregisterMBeanserverSpecificRegisterMBeanserverSpecificUnregisterMBeansetExternalTransactionControllerClasssetIsCMPsetThreadPoolsetThreadPoolSizeshouldUseDriverManagershutdownunregisterMBeanusesPartitionswasFailureCommunicationBased

Constructor Detail

NoServerPlatformback to summary
public NoServerPlatform(DatabaseSession newDatabaseSession)

INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.

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 null because this does not apply.

Returns:Class<? extends ExternalTransactionController>

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

Class externalTransactionControllerClass

Annotations
@Override
See Also
isJTAEnabled(), disableJTA(), initializeExternalTransactionController()
getServerLogback to summary
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

Returns:SessionLog

org.eclipse.persistence.logging.SessionLog

Annotations
@Override
getServerNameAndVersionback to summary
public String getServerNameAndVersion()

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

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

PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.

Returns:String

String serverNameAndVersion

Annotations
@Override
launchContainerThreadback to summary
public void launchContainerThread(Thread thread)

INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform

Parameters
thread:Thread

the instance of Thread

unwrapConnectionback to summary
public Connection unwrapConnection(Connection connection)

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

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

INTERNAL: When there is no server, the original connection will be returned

Annotations
@Override