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

ClientSessionSequencing

public class ClientSessionSequencing extends Object implements Sequencing
ClientSessionSequencing is private to TopLink. It provides sequencing for ClientSession. It contains a reference to SequencingServer object owned by ClientSession's parent ServerSession.
see
SequencingServer
see
oracle.toplink.essentials.threetier.ClientSession

Fields Summary
protected ClientSession
clientSession
protected SequencingServer
sequencingServer
Constructors Summary
public ClientSessionSequencing(ClientSession clientSession)
INTERNAL: Takes an owner - ClientSession as an argument.

        this.clientSession = clientSession;
        sequencingServer = clientSession.getParent().getSequencingServer();
    
Methods Summary
public java.lang.ObjectgetNextValue(java.lang.Class cls)
INTERNAL: This method is the reason for this class to exist: SequencingServer.getNextValue takes two arguments the first argument being a session which owns write connection (either DatabaseSession or ClientSession).

        return sequencingServer.getNextValue(clientSession, cls);
    
public static booleansequencingServerExists(oracle.toplink.essentials.threetier.ClientSession cs)
INTERNAL: Takes a potential owner - ClientSession as an argument. This static method is called before an instance of this class is created. The goal is to verify whether the instance of ClientSessionSequencing should be created.

        return cs.getParent().getSequencingServer() != null;
    
public booleanshouldAcquireValueAfterInsert(java.lang.Class cls)
INTERNAL: Simply calls the same method on SequencingServer

        return sequencingServer.shouldAcquireValueAfterInsert(cls);
    
public booleanshouldOverrideExistingValue(java.lang.Class cls, java.lang.Object existingValue)
INTERNAL: Simply calls the same method on SequencingServer

        return sequencingServer.shouldOverrideExistingValue(cls, existingValue);
    
public intwhenShouldAcquireValueForAll()
INTERNAL: Simply calls the same method on SequencingServer

        return sequencingServer.whenShouldAcquireValueForAll();