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

pack-priv Class SessionBrokerSequencing

extends Object
implements Sequencing
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.sequencing.Sequencing
Imports
java.util.Iterator, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.sessions.broker.SessionBroker

Field Summary

Modifier and TypeField and Description
protected SessionBroker
protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
protected Sequencing
get(Class<?> cls)

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.
protected void
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

brokerback to summary
protected SessionBroker broker
whenShouldAcquireValueForAllback to summary
protected int whenShouldAcquireValueForAll

Constructor Detail

SessionBrokerSequencingback to summary
public SessionBrokerSequencing(SessionBroker broker)

Method Detail

atLeastOneSessionHasSequencingback to summary
public static boolean atLeastOneSessionHasSequencing(SessionBroker br)
getback to summary
protected Sequencing get(Class<?> cls)
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
initializeback to summary
protected void initialize()
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