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

pack-priv Class RemoteConnectionSequencing

extends Object
implements Sequencing
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.sequencing.Sequencing
Annotations
@SuppressWarnings:rawtypes
Imports
java.util.Hashtable, org.eclipse.persistence.internal.sessions.remote.RemoteConnection, .RemoteFunctionCall, .SequencingFunctionCall

Field Summary

Modifier and TypeField and Description
protected Hashtable<K, V>
protected RemoteConnection
protected int

Constructor Summary

AccessConstructor and Description
public

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: Return the newly-generated sequencing value.
public static boolean
protected Object
public int
whenShouldAcquireValueForAll()

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

INTERNAL: Indicates when sequencing value should be acquired for all classes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classToShouldAcquireValueAfterInsertback to summary
protected Hashtable<K, V> classToShouldAcquireValueAfterInsert
remoteConnectionback to summary
protected RemoteConnection remoteConnection
whenShouldAcquireValueForAllback to summary
protected int whenShouldAcquireValueForAll

Constructor Detail

RemoteConnectionSequencingback to summary
public RemoteConnectionSequencing(RemoteConnection remoteConnection)

Method Detail

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

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

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

INTERNAL: Return the newly-generated sequencing value.

Parameters
cls:Class<?>

Class for which the sequencing value is generated.

Annotations
@Override
masterSequencingExistsback to summary
public static boolean masterSequencingExists(RemoteConnection con)
processFunctionCallback to summary
protected Object processFunctionCall(RemoteFunctionCall call)
whenShouldAcquireValueForAllback to summary
public int whenShouldAcquireValueForAll()

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

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

INTERNAL: Indicates when sequencing value should be acquired for all classes. There are just three possible return values: BEFORE_INSERT, UNDEFINED, AFTER_INSERT. Used as a shortcut to avoid individual checks for each class: shouldAcquireValueAfterInsert(Class cls). Currently UNDEFINED only happens in a case of a SessionBroker: session1 - BEFORE_INSERT, session2 - AFTER_INSERT

Annotations
@Override