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>
,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.PersistenceTypeDefinition
PersistenceTypeDefinition.Default
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
PersistenceTypeHandler.Abstract<M,T>
-
-
Constructor Summary
Constructors Constructor Description BinaryHandlerPersistenceRootsDefault()
-
Method Summary
-
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustom
allMembers, bytes, chars, complete, Complex, CustomField, CustomField, CustomFields, defineValueType, instanceMembers, isPrimitiveType, iterateMemberTypes, keyValuesFields, membersPersistedLengthMaximum, membersPersistedLengthMinimum, SimpleArrayFields, SizedArrayFields
-
Methods inherited from class one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract
declaredField, declaredField
-
Methods inherited from class one.microstream.persistence.types.PersistenceTypeHandler.Abstract
declaredField, declaredFields, initialize, toString, type, typeId, typeName, validateAndImmure
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeName
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
toTypeIdentifier
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, membersInDeclaredOrder, settingMembers, storingMembers, type
-
-
-
-
Method Detail
-
New
public static BinaryHandlerPersistenceRootsDefault New(PersistenceRootResolverProvider rootResolverProvider, PersistenceObjectRegistry globalRegistry)
-
store
public final void store(Binary bytes, PersistenceRoots.Default instance, long objectId, PersistenceStoreHandler handler)
- Specified by:
store
in interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>
- Specified by:
store
in classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
create
public final PersistenceRoots.Default create(Binary bytes, PersistenceObjectIdResolver idResolver)
- Specified by:
create
in interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>
- Specified by:
create
in classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
update
public final void update(Binary bytes, PersistenceRoots.Default instance, PersistenceObjectIdResolver handler)
- Specified by:
update
in interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>
- Overrides:
update
in classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
iterateInstanceReferences
public final void iterateInstanceReferences(PersistenceRoots.Default instance, PersistenceFunction iterator)
- Specified by:
iterateInstanceReferences
in interfacePersistenceTypeHandler<Binary,PersistenceRoots.Default>
- Overrides:
iterateInstanceReferences
in classAbstractBinaryHandlerCustom<PersistenceRoots.Default>
-
hasInstanceReferences
public final boolean hasInstanceReferences()
-
iterateLoadableReferences
public final void iterateLoadableReferences(Binary bytes, PersistenceObjectIdAcceptor iterator)
-
hasVaryingPersistedLengthInstances
public final boolean hasVaryingPersistedLengthInstances()
Description copied from interface:PersistenceTypeDefinition
Provides 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:PersistenceTypeDefinition
Provides 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)
-
-