Class BinaryHandlerPersistenceRootsDefault
java.lang.Object
one.microstream.persistence.types.PersistenceTypeHandler.Abstract<Binary,T>
one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract<T>
one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustom<PersistenceRoots.Default>
one.microstream.persistence.types.BinaryHandlerPersistenceRootsDefault
- All Implemented Interfaces:
BinaryTypeHandler<PersistenceRoots.Default>,PersistenceDataTypeHolder<Binary>,PersistenceTypeDefinition,PersistenceTypeDescription,PersistenceTypeHandler<Binary,PersistenceRoots.Default>,PersistenceTypeIdentity,PersistenceTypeIdOwner,PersistenceTypeLink
public final class BinaryHandlerPersistenceRootsDefault extends AbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
BinaryTypeHandler.Abstract<T>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
PersistenceDataTypeHolder.Default<D>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
PersistenceTypeDefinition.DefaultNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.IdentityNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
PersistenceTypeHandler.Abstract<D,T> -
Constructor Summary
Constructors Constructor Description BinaryHandlerPersistenceRootsDefault() -
Method Summary
Modifier and Type Method Description voidcomplete(Binary data, PersistenceRoots.Default instance, PersistenceLoadHandler handler)Completes an initially built instance after all loaded instances have been built.PersistenceRoots.Defaultcreate(Binary data, PersistenceLoadHandler handler)booleanhasPersistedReferences()booleanhasPersistedVariableLength()Provides information if two instances of the handled type can have different length in persisted form.booleanhasVaryingPersistedLengthInstances()Provides information if one particular instance can have variing binary length from one store to another.voiditerateInstanceReferences(PersistenceRoots.Default instance, PersistenceFunction iterator)voiditerateLoadableReferences(Binary data, PersistenceReferenceLoader iterator)static BinaryHandlerPersistenceRootsDefaultNew(PersistenceRootResolverProvider rootResolverProvider, PersistenceObjectRegistry globalRegistry)voidstore(Binary data, PersistenceRoots.Default instance, long objectId, PersistenceStoreHandler<Binary> handler)voidupdateState(Binary data, PersistenceRoots.Default instance, PersistenceLoadHandler handler)Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustom
allMembers, bytes, chars, Complex, CustomField, CustomField, CustomFields, defineValueType, instanceMembers, isPrimitiveType, iterateMemberTypes, keyValuesFields, membersPersistedLengthMaximum, membersPersistedLengthMinimum, SimpleArrayFields, SizedArrayFieldsMethods inherited from class one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract
declaredField, declaredFieldMethods inherited from class one.microstream.persistence.types.PersistenceTypeHandler.Abstract
declaredField, declaredFields, initialize, toString, type, typeId, typeName, validateAndImmureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
dataTypeMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeNameMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifierMethods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, initializeState, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, membersInDeclaredOrder, settingMembers, storingMembers, type, validateEntityType
-
Constructor Details
-
BinaryHandlerPersistenceRootsDefault
public BinaryHandlerPersistenceRootsDefault()
-
-
Method Details
-
New
public static BinaryHandlerPersistenceRootsDefault New(PersistenceRootResolverProvider rootResolverProvider, PersistenceObjectRegistry globalRegistry) -
hasVaryingPersistedLengthInstances
public final boolean hasVaryingPersistedLengthInstances()Description copied from interface:PersistenceTypeDefinitionProvides information if one particular instance can have variing binary length from one store to another.Examples for variable length instances:
- variable size collection instances
- variable size pesudo collection instances like
java.util.StringBuilder - instances of custom defined types similar to collections
Examples for fixed length instances:
- arrays
- all immutable type instances (like
java.lang.String) - all fixed length types (see
PersistenceTypeDefinition.hasVaryingPersistedLengthInstances()
-
hasPersistedReferences
public final boolean hasPersistedReferences() -
hasPersistedVariableLength
public final boolean hasPersistedVariableLength()Description copied from interface:PersistenceTypeDefinitionProvides information if two instances of the handled type can have different length in persisted form.Examples for variable length types:
- arrays
-
java.lang.String -
java.util.ArrayList -
java.math.BigDecimal
Examples for fixed length types:
- primitive value wrapper types
-
java.lang.Object -
java.util.Date - typical entity types (without unshared inlined variable length component instances)
-
store
public final void store(Binary data, PersistenceRoots.Default instance, long objectId, PersistenceStoreHandler<Binary> handler)- Specified by:
storein interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>- Specified by:
storein classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
create
- Specified by:
createin interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>- Specified by:
createin classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
updateState
public final void updateState(Binary data, PersistenceRoots.Default instance, PersistenceLoadHandler handler) -
complete
public final void complete(Binary data, PersistenceRoots.Default instance, PersistenceLoadHandler handler)Description copied from interface:PersistenceTypeHandlerCompletes an initially built instance after all loaded instances have been built. E.g. can be used to cause a hash collection to hash all its initially collected entries after their instances have been built.- Specified by:
completein interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>- Overrides:
completein classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
iterateInstanceReferences
public final void iterateInstanceReferences(PersistenceRoots.Default instance, PersistenceFunction iterator)- Specified by:
iterateInstanceReferencesin interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>- Overrides:
iterateInstanceReferencesin classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
iterateLoadableReferences
-