Interface Sequencing
-
- All Known Subinterfaces:
SequencingServer
public interface Sequencing
Purpose: Define interface to use sequencing.
Description: This interface accessed through Session.getSequencing() method. Used by EclipseLink internals to obtain sequencing values.
Responsibilities:
- Provides sequencing objects and supporting APIs.
-
-
Field Summary
Fields Modifier and Type Field Description static int
AFTER_INSERT
static int
BEFORE_INSERT
static int
UNDEFINED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getNextValue(Class cls)
INTERNAL: Return the newly-generated sequencing value.int
whenShouldAcquireValueForAll()
INTERNAL: Indicates when sequencing value should be acquired for all classes.
-
-
-
Field Detail
-
BEFORE_INSERT
static final int BEFORE_INSERT
- See Also:
- Constant Field Values
-
UNDEFINED
static final int UNDEFINED
- See Also:
- Constant Field Values
-
AFTER_INSERT
static final int AFTER_INSERT
- See Also:
- Constant Field Values
-
-
Method Detail
-
whenShouldAcquireValueForAll
int 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
-
-