Package one.microstream.entity
Class BinaryHandlerEntityLayerVersioning
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<EntityLayerVersioning<?>>
one.microstream.entity.BinaryHandlerEntityLayerVersioning
- All Implemented Interfaces:
BinaryHandlerEntityLoading<EntityLayerVersioning<?>>
,BinaryTypeHandler<EntityLayerVersioning<?>>
,PersistenceDataTypeHolder<Binary>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,EntityLayerVersioning<?>>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
public class BinaryHandlerEntityLayerVersioning extends AbstractBinaryHandlerCustom<EntityLayerVersioning<?>> implements BinaryHandlerEntityLoading<EntityLayerVersioning<?>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.entity.BinaryHandlerEntityLoading
BinaryHandlerEntityLoading.Default<T>
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.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<D,T>
-
Constructor Summary
Constructors Constructor Description BinaryHandlerEntityLayerVersioning()
-
Method Summary
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, 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.binary.types.BinaryTypeHandler
dataType
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
hasPersistedVariableLength, isPrimitiveType, membersPersistedLengthMaximum, membersPersistedLengthMinimum, runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeName
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifier
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
allMembers, collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, initializeState, instanceMembers, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, iterateMemberTypes, membersInDeclaredOrder, settingMembers, storingMembers, type, validateEntityType
-
Constructor Details
-
BinaryHandlerEntityLayerVersioning
public BinaryHandlerEntityLayerVersioning()
-
-
Method Details
-
New
public static BinaryHandlerEntityLayerVersioning New(EntityTypeHandlerManager entityTypeHandlerManager) -
create
- Specified by:
create
in interfacePersistenceTypeHandler<Binary,EntityLayerVersioning<?>>
- Specified by:
create
in classAbstractBinaryHandlerCustom<EntityLayerVersioning<?>>
-
updateState
public final void updateState(Binary data, EntityLayerVersioning<?> instance, PersistenceLoadHandler handler)- Specified by:
updateState
in interfacePersistenceTypeHandler<Binary,EntityLayerVersioning<?>>
-
complete
Description copied from interface:PersistenceTypeHandler
Completes 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:
complete
in interfacePersistenceTypeHandler<Binary,EntityLayerVersioning<?>>
- Overrides:
complete
in classAbstractBinaryHandlerCustom<EntityLayerVersioning<?>>
-
iterateInstanceReferences
public void iterateInstanceReferences(EntityLayerVersioning<?> instance, PersistenceFunction iterator)- Specified by:
iterateInstanceReferences
in interfacePersistenceTypeHandler<Binary,EntityLayerVersioning<?>>
- Overrides:
iterateInstanceReferences
in classAbstractBinaryHandlerCustom<EntityLayerVersioning<?>>
-
iterateLoadableReferences
- Specified by:
iterateLoadableReferences
in interfacePersistenceTypeHandler<Binary,EntityLayerVersioning<?>>
-
hasPersistedReferences
public final boolean hasPersistedReferences()- Specified by:
hasPersistedReferences
in interfacePersistenceTypeDefinition
-
hasVaryingPersistedLengthInstances
public 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()
- Specified by:
hasVaryingPersistedLengthInstances
in interfacePersistenceTypeDefinition
-
store
public void store(Binary data, EntityLayerVersioning<?> instance, long objectId, PersistenceStoreHandler<Binary> handler)- Specified by:
store
in interfaceBinaryHandlerEntityLoading<EntityLayerVersioning<?>>
- Specified by:
store
in interfacePersistenceTypeHandler<Binary,EntityLayerVersioning<?>>
- Specified by:
store
in classAbstractBinaryHandlerCustom<EntityLayerVersioning<?>>
-
createStoringEntityHandler
- Specified by:
createStoringEntityHandler
in interfaceBinaryHandlerEntityLoading<EntityLayerVersioning<?>>
-