public interface PersistenceStoreHandler<D> extends PersistenceFunction
| Modifier and Type | Method and Description |
|---|---|
<T> long |
apply(T instance)
The "natural" way of handling an instance as defined by the implementation.
|
<T> long |
apply(T instance,
PersistenceTypeHandler<D,T> localTypeHandler) |
<T> long |
applyEager(T instance)
A way to signal to the implementation that the passed instance is supposed to be handled eagerly,
meaning it shall be handled even if the handling implementation does not deem it necessary.
This is needed, for example, to store composition pattern instances without breaking OOP encapsulation concepts. |
<T> long |
applyEager(T instance,
PersistenceTypeHandler<D,T> localTypeHandler) |
one.microstream.reference.ObjectSwizzling |
getObjectRetriever() |
<T> long apply(T instance)
apply in interface PersistenceFunctionT - the type of the instanceinstance - the instance to store<T> long applyEager(T instance)
T - the type of the instanceinstance - the instance to store<T> long apply(T instance,
PersistenceTypeHandler<D,T> localTypeHandler)
<T> long applyEager(T instance,
PersistenceTypeHandler<D,T> localTypeHandler)
one.microstream.reference.ObjectSwizzling getObjectRetriever()
Copyright © 2022 MicroStream Software. All rights reserved.