Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sequencing

pack-priv Class ClientSessionSequencing

extends Object
implements Sequencing
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.sequencing.Sequencing
Imports
org.eclipse.persistence.sessions.server.ClientSession

ClientSessionSequencing is private to EclipseLink. It provides sequencing for ClientSession. It contains a reference to SequencingServer object owned by ClientSession's parent ServerSession.
See Also
SequencingServer, org.eclipse.persistence.sessions.server.ClientSession

Field Summary

Modifier and TypeField and Description
protected ClientSession
protected SequencingServer

Constructor Summary

AccessConstructor and Description
public
ClientSessionSequencing(ClientSession clientSession)

INTERNAL: Takes an owner - ClientSession as an argument.

Method Summary

Modifier and TypeMethod and Description
public Object
getNextValue(Class<?>
Class for which the sequencing value is generated.
cls
)

Implements org.eclipse.persistence.internal.sequencing.Sequencing.getNextValue.

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).
public static boolean
sequencingServerExists(ClientSession cs)

INTERNAL: Takes a potential owner - ClientSession as an argument.

public int
whenShouldAcquireValueForAll()

Implements org.eclipse.persistence.internal.sequencing.Sequencing.whenShouldAcquireValueForAll.

INTERNAL: Simply calls the same method on SequencingServer
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientSessionback to summary
protected ClientSession clientSession
sequencingServerback to summary
protected SequencingServer sequencingServer

Constructor Detail

ClientSessionSequencingback to summary
public ClientSessionSequencing(ClientSession clientSession)

INTERNAL: Takes an owner - ClientSession as an argument.

Method Detail

getNextValueback to summary
public Object getNextValue(Class<?> cls)

Implements org.eclipse.persistence.internal.sequencing.Sequencing.getNextValue.

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).

Parameters
cls:Class<?>

Doc from org.eclipse.persistence.internal.sequencing.Sequencing.getNextValue.

Class for which the sequencing value is generated.

Annotations
@Override
sequencingServerExistsback to summary
public static boolean sequencingServerExists(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.

whenShouldAcquireValueForAllback to summary
public int whenShouldAcquireValueForAll()

Implements org.eclipse.persistence.internal.sequencing.Sequencing.whenShouldAcquireValueForAll.

INTERNAL: Simply calls the same method on SequencingServer

Annotations
@Override