Purpose: Define interface to use sequencing.
Description: This interface accessed through Session.getSequencing() method. Used by EclipseLink internals to obtain sequencing values.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getNextValue(Class<?>
Class for which the sequencing value is generated. cls)INTERNAL: Return the newly-generated sequencing value. |
| public int | whenShouldAcquireValueForAll()
INTERNAL: Indicates when sequencing value should be acquired for all classes. |
| AFTER_INSERT | back to summary |
|---|---|
| public static final int AFTER_INSERT | |
| BEFORE_INSERT | back to summary |
|---|---|
| public static final int BEFORE_INSERT | |
| UNDEFINED | back to summary |
|---|---|
| public static final int UNDEFINED | |
| getNextValue | back to summary |
|---|---|
| public Object getNextValue(Class<?> cls) INTERNAL: Return the newly-generated sequencing value.
| |
| whenShouldAcquireValueForAll | back to summary |
|---|---|
| public 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 | |