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 Details
-
provideNextObjectId
long provideNextObjectId() -
initializeObjectId
PersistenceObjectIdProvider initializeObjectId() -
currentObjectId
long currentObjectId()- Specified by:
currentObjectId
in interfacePersistenceObjectIdHolder
-
updateCurrentObjectId
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdHolder
-
Clone
Useful forPersistenceContextDispatcher
.- Specified by:
Clone
in interfaceCloneable<PersistenceObjectIdProvider>
- Returns:
- A Clone of this instance as described in
Cloneable
.
-
Transient
-
Transient
-
Failing
-