Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.platform.server
Class NoServerPlatform

java.lang.Object
  extended by org.eclipse.persistence.platform.server.ServerPlatformBase
      extended by 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

 

Constructor Summary
NoServerPlatform(DatabaseSession newDatabaseSession)
          INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.

 

Method Summary
 java.lang.Class getExternalTransactionControllerClass()
          INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.
 SessionLog getServerLog()
          INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base
 java.lang.String getServerNameAndVersion()
          PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.
 void launchContainerThread(java.lang.Thread thread)
          INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform
 java.sql.Connection unwrapConnection(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, getModuleName, getNewTempClassLoader, initializeExternalTransactionController, initializeServerNameAndVersion, isCMP, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, shouldUseDriverManager, unregisterMBean, wasFailureCommunicationBased

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

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:
getServerNameAndVersion in interface ServerPlatform
Overrides:
getServerNameAndVersion in class ServerPlatformBase
Returns:
String serverNameAndVersion

getExternalTransactionControllerClass

public java.lang.Class getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.
Specified by:
getExternalTransactionControllerClass in interface ServerPlatform
Specified by:
getExternalTransactionControllerClass in class ServerPlatformBase
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 - 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:
getServerLog in interface ServerPlatform
Overrides:
getServerLog in class ServerPlatformBase
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:
unwrapConnection in interface ServerPlatform
Overrides:
unwrapConnection in class ServerPlatformBase

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.