Class BinaryStorer.Eager
- java.lang.Object
-
- org.eclipse.serializer.persistence.binary.types.BinaryStorer.Default
-
- org.eclipse.serializer.persistence.binary.types.BinaryStorer.Eager
-
- All Implemented Interfaces:
BinaryStorer,PersistenceFunction,PersistenceLocalObjectIdRegistry<Binary>,PersistenceObjectIdRequestor<Binary>,PersistenceStoreHandler<Binary>,PersistenceStorer,PersistenceStoring,Storer
- Enclosing interface:
- BinaryStorer
public static final class BinaryStorer.Eager extends BinaryStorer.Default
Identical toBinaryStorer.Default, but stores every referenced instance eagerly.
For a more differentiated solution between the two simple, but extreme strategies, seePersistenceEagerStoringFieldEvaluator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.binary.types.BinaryStorer
BinaryStorer.Creator, BinaryStorer.Default, BinaryStorer.Eager, BinaryStorer.Item
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.types.PersistenceObjectIdRequestor
PersistenceObjectIdRequestor.NoOp<D extends Object>
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.types.PersistenceStorer
PersistenceStorer.CreationObserver
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> longapply(T instance)<T> voidregisterEagerOptional(long objectId, T instance, PersistenceTypeHandler<Binary,T> optionalHandler)<T> voidregisterLazyOptional(long objectId, T instance, PersistenceTypeHandler<Binary,T> optionalHandler)-
Methods inherited from class org.eclipse.serializer.persistence.binary.types.BinaryStorer.Default
apply, applyEager, applyEager, clear, commit, currentCapacity, defaultSlotSize, ensureCapacity, getObjectRetriever, getPersister, internalInitialize, internalStore, iterateMergeableEntries, lookupObjectId, lookupOid, maximumCapacity, notifyCommitListeners, parentObjectManager, register, registerCommitListener, registerGuaranteed, registerGuaranteed, registerRegistrationListener, reinitialize, reinitialize, size, skip, skipMapped, skipNulled, store, storeAll, storeAll, storeItem, synchComplete, synchLookupChunk, synchRebuildStoreItems, synchRebuildStoreItems, synchRegisterObjectId
-
-
-
-
Method Detail
-
apply
public final <T> long apply(T instance)
- Specified by:
applyin interfacePersistenceFunction- Specified by:
applyin interfacePersistenceStoreHandler<Binary>- Overrides:
applyin classBinaryStorer.Default
-
registerLazyOptional
public <T> void registerLazyOptional(long objectId, T instance, PersistenceTypeHandler<Binary,T> optionalHandler)- Specified by:
registerLazyOptionalin interfacePersistenceObjectIdRequestor<Binary>- Overrides:
registerLazyOptionalin classBinaryStorer.Default
-
registerEagerOptional
public <T> void registerEagerOptional(long objectId, T instance, PersistenceTypeHandler<Binary,T> optionalHandler)- Specified by:
registerEagerOptionalin interfacePersistenceObjectIdRequestor<Binary>- Overrides:
registerEagerOptionalin classBinaryStorer.Default
-
-