Class PersistenceObjectManager.Default<D>
java.lang.Object
one.microstream.persistence.types.PersistenceObjectManager.Default<D>
- All Implemented Interfaces:
PersistenceObjectIdHolder
,PersistenceObjectIdLookup
,PersistenceObjectLookup
,PersistenceObjectManager<D>
,PersistenceSwizzlingLookup
,Cloneable<PersistenceObjectManager<D>>
- Enclosing interface:
- PersistenceObjectManager<D>
public static final class PersistenceObjectManager.Default<D> extends Object implements PersistenceObjectManager<D>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceObjectManager
PersistenceObjectManager.Default<D>
-
Method Summary
Modifier and Type Method Description PersistenceObjectManager.Default<D>
Clone()
Useful forPersistenceContextDispatcher
.void
consolidate()
long
currentObjectId()
long
ensureObjectId(Object object)
<T> long
ensureObjectId(T object, PersistenceObjectIdRequestor<D> objectIdRequestor, PersistenceTypeHandler<D,T> optionalHandler)
<T> long
ensureObjectIdGuaranteedRegister(T object, PersistenceObjectIdRequestor<D> objectIdRequestor, PersistenceTypeHandler<D,T> optionalHandler)
Variant ofensureObjectId(Object)
with guaranteed registering (effectively override-eager-logic)Object
lookupObject(long objectId)
long
lookupObjectId(Object object)
void
mergeEntries(PersistenceLocalObjectIdRegistry<D> localRegistry)
boolean
registerLocalRegistry(PersistenceLocalObjectIdRegistry<D> localRegistry)
PersistenceObjectManager<D>
updateCurrentObjectId(long currentObjectId)
-
Method Details
-
Clone
Description copied from interface:PersistenceObjectManager
Useful forPersistenceContextDispatcher
. -
consolidate
public void consolidate()- Specified by:
consolidate
in interfacePersistenceObjectManager<D>
-
lookupObjectId
- Specified by:
lookupObjectId
in interfacePersistenceObjectIdLookup
-
lookupObject
- Specified by:
lookupObject
in interfacePersistenceObjectLookup
-
ensureObjectId
- Specified by:
ensureObjectId
in interfacePersistenceObjectManager<D>
-
ensureObjectId
public <T> long ensureObjectId(T object, PersistenceObjectIdRequestor<D> objectIdRequestor, PersistenceTypeHandler<D,T> optionalHandler)- Specified by:
ensureObjectId
in interfacePersistenceObjectManager<D>
-
ensureObjectIdGuaranteedRegister
public <T> long ensureObjectIdGuaranteedRegister(T object, PersistenceObjectIdRequestor<D> objectIdRequestor, PersistenceTypeHandler<D,T> optionalHandler)Variant ofensureObjectId(Object)
with guaranteed registering (effectively override-eager-logic)- Specified by:
ensureObjectIdGuaranteedRegister
in interfacePersistenceObjectManager<D>
-
registerLocalRegistry
- Specified by:
registerLocalRegistry
in interfacePersistenceObjectManager<D>
-
mergeEntries
- Specified by:
mergeEntries
in interfacePersistenceObjectManager<D>
-
currentObjectId
public final long currentObjectId()- Specified by:
currentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
currentObjectId
in interfacePersistenceObjectManager<D>
-
updateCurrentObjectId
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectManager<D>
-