FileDocCategorySizeDatePackage
NoServerPlatform.javaAPI DocGlassfish v2 API4338Tue May 22 16:54:48 BST 2007oracle.toplink.essentials.platform.server

NoServerPlatform

public final class NoServerPlatform extends ServerPlatformBase
PUBLIC: This platform is used when TopLink 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

Fields Summary
Constructors Summary
public NoServerPlatform(DatabaseSessionImpl newDatabaseSession)
INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.

        super(newDatabaseSession);
        this.disableRuntimeServices();
        ;
        this.disableJTA();
    
Methods Summary
public java.lang.ClassgetExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.

see
#isJTAEnabled()
see
#disableJTA()
see
#initializeExternalTransactionController()

        return null;
    
public oracle.toplink.essentials.logging.SessionLoggetServerLog()
INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base

return
oracle.toplink.essentials.logging.SessionLog

        return new DefaultSessionLog();
    
public java.lang.StringgetServerNameAndVersion()
PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.

return
String serverNameAndVersion

        return null;
    
public voidlaunchContainerThread(java.lang.Thread thread)
INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform

param
Thread thread : the instance of Thread
return
void

    
public java.sql.ConnectionunwrapOracleConnection(oracle.toplink.essentials.internal.databaseaccess.Platform platform, java.sql.Connection connection)
INTERNAL: When there is no server, the original connection will be returned

        return connection;