Interface PersistenceObjectIdProvider
-
- All Superinterfaces:
Cloneable<PersistenceObjectIdProvider>
,PersistenceObjectIdHolder
- All Known Implementing Classes:
CompositeIdProvider
,FileObjectIdProvider
,PersistenceObjectIdProvider.Failing
,PersistenceObjectIdProvider.Transient
public interface PersistenceObjectIdProvider extends PersistenceObjectIdHolder, Cloneable<PersistenceObjectIdProvider>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistenceObjectIdProvider.Failing
static class
PersistenceObjectIdProvider.Transient
-
Method Summary
Modifier and Type Method Description default PersistenceObjectIdProvider
Clone()
Useful forPersistenceContextDispatcher
.long
currentObjectId()
static PersistenceObjectIdProvider.Failing
Failing()
PersistenceObjectIdProvider
initializeObjectId()
long
provideNextObjectId()
static PersistenceObjectIdProvider
Transient()
static PersistenceObjectIdProvider
Transient(long startingObjectId)
PersistenceObjectIdProvider
updateCurrentObjectId(long currentObjectId)
-
-
-
Method Detail
-
provideNextObjectId
long provideNextObjectId()
-
initializeObjectId
PersistenceObjectIdProvider initializeObjectId()
-
currentObjectId
long currentObjectId()
- Specified by:
currentObjectId
in interfacePersistenceObjectIdHolder
-
updateCurrentObjectId
PersistenceObjectIdProvider updateCurrentObjectId(long currentObjectId)
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdHolder
-
Clone
default PersistenceObjectIdProvider Clone()
Useful forPersistenceContextDispatcher
.- Specified by:
Clone
in interfaceCloneable<PersistenceObjectIdProvider>
- Returns:
- A Clone of this instance as described in
Cloneable
.
-
Transient
static PersistenceObjectIdProvider Transient()
-
Transient
static PersistenceObjectIdProvider Transient(long startingObjectId)
-
Failing
static PersistenceObjectIdProvider.Failing Failing()
-
-