Class PersistenceObjectManager.Default
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceObjectManager.Default
-
- All Implemented Interfaces:
PersistenceObjectIdHolder
,PersistenceObjectIdLookup
,PersistenceObjectLookup
,PersistenceObjectManager
,PersistenceSwizzlingLookup
,Cloneable<PersistenceObjectManager>
- Enclosing interface:
- PersistenceObjectManager
public static final class PersistenceObjectManager.Default extends Object implements PersistenceObjectManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceObjectManager
PersistenceObjectManager.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description PersistenceObjectManager.Default
Clone()
Useful forPersistenceContextDispatcher
.void
consolidate()
long
currentObjectId()
long
ensureObjectId(Object object)
long
ensureObjectId(Object object, PersistenceAcceptor newObjectIdCallback)
Object
lookupObject(long objectId)
long
lookupObjectId(Object object)
PersistenceObjectManager
updateCurrentObjectId(long currentObjectId)
-
-
-
Method Detail
-
Clone
public PersistenceObjectManager.Default Clone()
Description copied from interface:PersistenceObjectManager
Useful forPersistenceContextDispatcher
.- Specified by:
Clone
in interfaceCloneable<PersistenceObjectManager>
- Specified by:
Clone
in interfacePersistenceObjectManager
- Returns:
- A Clone of this instance as described in
Cloneable
.
-
consolidate
public void consolidate()
- Specified by:
consolidate
in interfacePersistenceObjectManager
-
lookupObjectId
public long lookupObjectId(Object object)
- Specified by:
lookupObjectId
in interfacePersistenceObjectIdLookup
-
lookupObject
public Object lookupObject(long objectId)
- Specified by:
lookupObject
in interfacePersistenceObjectLookup
-
ensureObjectId
public long ensureObjectId(Object object)
- Specified by:
ensureObjectId
in interfacePersistenceObjectManager
-
ensureObjectId
public long ensureObjectId(Object object, PersistenceAcceptor newObjectIdCallback)
- Specified by:
ensureObjectId
in interfacePersistenceObjectManager
-
currentObjectId
public final long currentObjectId()
- Specified by:
currentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
currentObjectId
in interfacePersistenceObjectManager
-
updateCurrentObjectId
public PersistenceObjectManager updateCurrentObjectId(long currentObjectId)
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectIdHolder
- Specified by:
updateCurrentObjectId
in interfacePersistenceObjectManager
-
-