public interface Sequencing
Purpose: Define interface to use sequencing.
Description: This interface accessed through Session.getSequencing() method. Used by TopLink internals to obtain sequencing values.
Responsibilities:
Modifier and Type | Field and Description |
---|---|
static int |
AFTER_INSERT |
static int |
BEFORE_INSERT |
static int |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
Object |
getNextValue(Class cls)
INTERNAL:
Return the newly-generated sequencing value.
|
boolean |
shouldAcquireValueAfterInsert(Class cls)
INTERNAL:
Indicates whether sequencing value should be acqiured
before or after INSERT
|
boolean |
shouldOverrideExistingValue(Class cls,
Object existingValue)
INTERNAL:
Indicates whether existing attribute value should be overridden.
|
int |
whenShouldAcquireValueForAll()
INTERNAL:
Indicates when sequencing value should be acqiured for all classes.
|
static final int BEFORE_INSERT
static final int UNDEFINED
static final int AFTER_INSERT
int whenShouldAcquireValueForAll()
boolean shouldAcquireValueAfterInsert(Class cls)
boolean shouldOverrideExistingValue(Class cls, Object existingValue)
seqName
- String is sequencing number field nameexistingValue
- Object is a non-null value of PK-mapped attribute.Copyright © 2023. All rights reserved.