Class BinaryStorer.Creator.Default
java.lang.Object
one.microstream.persistence.binary.types.BinaryStorer.Creator.Abstract
one.microstream.persistence.binary.types.BinaryStorer.Creator.Default
- All Implemented Interfaces:
BinaryStorer.Creator
,PersistenceStorer.Creator<Binary>
- Enclosing interface:
- BinaryStorer.Creator
public static final class BinaryStorer.Creator.Default extends BinaryStorer.Creator.Abstract
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryStorer.Creator
BinaryStorer.Creator.Abstract, BinaryStorer.Creator.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description BinaryStorer
createEagerStorer(PersistenceTypeHandlerManager<Binary> typeManager, PersistenceObjectManager<Binary> objectManager, ObjectSwizzling objectRetriever, PersistenceTarget<Binary> target, BufferSizeProviderIncremental bufferSizeProvider)
Creates aPersistenceStorer
instance with a storing logic that stores every instance that is encountered during the traversal of the entity graph once.
Warning: This means that every (persistable) reference is traversed and every reachable instance is stored.BinaryStorer
createLazyStorer(PersistenceTypeHandlerManager<Binary> typeManager, PersistenceObjectManager<Binary> objectManager, ObjectSwizzling objectRetriever, PersistenceTarget<Binary> target, BufferSizeProviderIncremental bufferSizeProvider)
Creates aPersistenceStorer
instance with a storing logic that stores instances that are encountered during the traversal of the entity graph that "require" to be stored.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.binary.types.BinaryStorer.Creator
createStorer
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
createLazyStorer
public final BinaryStorer createLazyStorer(PersistenceTypeHandlerManager<Binary> typeManager, PersistenceObjectManager<Binary> objectManager, ObjectSwizzling objectRetriever, PersistenceTarget<Binary> target, BufferSizeProviderIncremental bufferSizeProvider)Description copied from interface:PersistenceStorer.Creator
Creates aPersistenceStorer
instance with a storing logic that stores instances that are encountered during the traversal of the entity graph that "require" to be stored. The actual meaning of being "required" depends on the implementation. An example for being "required" is not having an instance registered in the global object registry and associated an biunique OID. -
createEagerStorer
public BinaryStorer createEagerStorer(PersistenceTypeHandlerManager<Binary> typeManager, PersistenceObjectManager<Binary> objectManager, ObjectSwizzling objectRetriever, PersistenceTarget<Binary> target, BufferSizeProviderIncremental bufferSizeProvider)Description copied from interface:PersistenceStorer.Creator
Creates aPersistenceStorer
instance with a storing logic that stores every instance that is encountered during the traversal of the entity graph once.
Warning: This means that every (persistable) reference is traversed and every reachable instance is stored. Depending on the used data model, this can mean that the whole entity graph of an application is traversed and stored. This MIGHT be reasonable for very tiny applications, where storing simply means to start at the root entity and indiscriminately store every entity there is. Apart from this (rather academic) case, a storer with this logic should only be used for a confined entity sub-graph that has no reference "escaping" to the remaning entities.
-