Methods Summary |
---|
public java.lang.Object | getNextValue(java.lang.Class cls)INTERNAL:
Return the newly-generated sequencing value.
|
public boolean | shouldAcquireValueAfterInsert(java.lang.Class cls)INTERNAL:
Indicates whether sequencing value should be acqiured
before or after INSERT
|
public boolean | shouldOverrideExistingValue(java.lang.Class cls, java.lang.Object existingValue)INTERNAL:
Indicates whether existing attribute value should be overridden.
This method is called in case an attribute mapped to PK of sequencing-using
descriptor contains non-null value.
|
public int | whenShouldAcquireValueForAll()INTERNAL:
Indicates when sequencing value should be acqiured 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
|