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

SequencingFactory

public class SequencingFactory extends Object
SequencingFactory is private to TopLink. It instantiates sequencing classes for sessions. It allows sequencing classes to be incupsulated in this package.
see
ClientSessionSequencing
see
RemoteConnectionSequencing
see
SessionBrokerSequencing
see
SequencingManager

Fields Summary
Constructors Summary
Methods Summary
public static oracle.toplink.essentials.internal.sequencing.SequencingcreateSequencing(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERNAL: Takes a potential owner - a Session, returns Sequencing object. Note that before creating a Sequencing object there is a check performed to determine whether the object could be created.

        Sequencing sequencing = null;
        if (session.isClientSession()) {
            ClientSession cs = (ClientSession)session;
            if (ClientSessionSequencing.sequencingServerExists(cs)) {
                sequencing = new ClientSessionSequencing(cs);
            }
        }
        return sequencing;
    
public static oracle.toplink.essentials.internal.sequencing.SequencingHomecreateSequencingHome(oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl ownerSession)
INTERNAL: Takes a potential owner - a DatabaseSession, returns SequencingHome object. Only DatabaseSession and ServerSession should be passed (not SessionBroker).

        SequencingHome home = null;
        if (!ownerSession.isBroker()) {
            home = new SequencingManager(ownerSession);
        }
        return home;