FileDocCategorySizeDatePackage
ServerSessionConnectionHandler.javaAPI DocGlassfish v2 API2877Tue May 22 16:54:42 BST 2007oracle.toplink.essentials.internal.sequencing

ServerSessionConnectionHandler

public class ServerSessionConnectionHandler extends Object implements SequencingConnectionHandler

Fields Summary
ConnectionPool
pool
Constructors Summary
ServerSessionConnectionHandler(ConnectionPool pool)

        this.pool = pool;
    
Methods Summary
public oracle.toplink.essentials.internal.databaseaccess.AccessoracquireAccessor()

        return pool.acquireConnection();
    
protected voidfinalize()

        onDisconnect();
    
public booleanisConnected()

        return pool.isConnected();
    
public voidonConnect()

        if (!isConnected()) {
            pool.startUp();
        }
    
public voidonDisconnect()

        if (isConnected()) {
            pool.shutDown();
        }
    
public voidreleaseAccessor(oracle.toplink.essentials.internal.databaseaccess.Accessor accessor)

        pool.releaseConnection(accessor);