Class CompositeIdProvider
- java.lang.Object
-
- one.microstream.persistence.internal.CompositeIdProvider
-
- All Implemented Interfaces:
PersistenceObjectIdHolder
,PersistenceObjectIdProvider
,PersistenceTypeIdHolder
,PersistenceTypeIdProvider
,Cloneable<PersistenceObjectIdProvider>
public final class CompositeIdProvider extends Object implements PersistenceObjectIdProvider, PersistenceTypeIdProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceObjectIdProvider
PersistenceObjectIdProvider.Failing, PersistenceObjectIdProvider.Transient
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeIdProvider
PersistenceTypeIdProvider.Failing, PersistenceTypeIdProvider.Transient
-
-
Constructor Summary
Constructors Constructor Description CompositeIdProvider()
-
Method Summary
Modifier and Type Method Description long
currentObjectId()
long
currentTypeId()
CompositeIdProvider
initialize()
CompositeIdProvider
initializeObjectId()
CompositeIdProvider
initializeTypeId()
static CompositeIdProvider
New(PersistenceTypeIdProvider typeIdProvider, PersistenceObjectIdProvider objectIdProvider)
long
provideNextObjectId()
long
provideNextTypeId()
CompositeIdProvider
updateCurrentObjectId(long currentObjectId)
CompositeIdProvider
updateCurrentTypeId(long currentTypeId)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceObjectIdProvider
Clone
-
-
-
-
Method Detail
-
New
public static CompositeIdProvider New(PersistenceTypeIdProvider typeIdProvider, PersistenceObjectIdProvider objectIdProvider)
-
initialize
public final CompositeIdProvider initialize()
-
initializeTypeId
public final CompositeIdProvider initializeTypeId()
- Specified by:
initializeTypeId
in interfacePersistenceTypeIdProvider
-
initializeObjectId
public final CompositeIdProvider initializeObjectId()
- Specified by:
initializeObjectId
in interfacePersistenceObjectIdProvider
-
currentObjectId
public final long currentObjectId()
- Specified by:
currentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
currentObjectId
in interfacePersistenceObjectIdProvider
-
currentTypeId
public final long currentTypeId()
- Specified by:
currentTypeId
in interfacePersistenceTypeIdHolder
-
provideNextTypeId
public final long provideNextTypeId()
- Specified by:
provideNextTypeId
in interfacePersistenceTypeIdProvider
-
provideNextObjectId
public final long provideNextObjectId()
- Specified by:
provideNextObjectId
in interfacePersistenceObjectIdProvider
-
updateCurrentObjectId
public final CompositeIdProvider updateCurrentObjectId(long currentObjectId)
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdProvider
-
updateCurrentTypeId
public final CompositeIdProvider updateCurrentTypeId(long currentTypeId)
- Specified by:
updateCurrentTypeId
in interfacePersistenceTypeIdProvider
-
-