Class PersistenceLegacyTypeHandler.Abstract<D,T>
java.lang.Object
one.microstream.persistence.types.PersistenceLegacyTypeHandler.Abstract<D,T>
- All Implemented Interfaces:
PersistenceDataTypeHolder<D>,PersistenceLegacyTypeHandler<D,T>,PersistenceTypeDefinition,PersistenceTypeDescription,PersistenceTypeHandler<D,T>,PersistenceTypeIdentity,PersistenceTypeIdOwner,PersistenceTypeLink
- Direct Known Subclasses:
BinaryLegacyTypeHandler.Abstract,PersistenceLegacyTypeHandlerWrapper,PersistenceUnreachableTypeHandler.Default
- Enclosing interface:
- PersistenceLegacyTypeHandler<D,T>
public abstract static class PersistenceLegacyTypeHandler.Abstract<D,T> extends Object implements PersistenceLegacyTypeHandler<D,T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
PersistenceDataTypeHolder.Default<D>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceLegacyTypeHandler
PersistenceLegacyTypeHandler.Abstract<D,T>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
PersistenceTypeDefinition.DefaultNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstract(PersistenceTypeDefinition typeDefinition) -
Method Summary
Modifier and Type Method Description XGettingEnum<? extends PersistenceTypeDefinitionMember>allMembers()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.XGettingEnum<? extends PersistenceTypeDefinitionMember>instanceMembers()Enum (unique elements with order), usingPersistenceTypeDescriptionMember.identityHashEqualator().booleanisPrimitiveType()PersistenceTypeDefinitionlegacyTypeDefinition()longmembersPersistedLengthMaximum()longmembersPersistedLengthMinimum()StringruntimeTypeName()The name of the corresponding runtime type.longtypeId()The biuniquely associated id value identifying a type description.StringtypeName()The name of the type as defined in the type dictionary.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceLegacyTypeHandler
collectEnumConstants, initialize, storeMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
toRuntimeTypeIdentifierMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifierMethods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
complete, create, dataType, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initializeState, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, iterateInstanceReferences, iterateLoadableReferences, iterateMemberTypes, membersInDeclaredOrder, settingMembers, storingMembers, type, updateState, validateEntityType
-
Constructor Details
-
Method Details
-
typeId
public final long typeId()Description copied from interface:PersistenceTypeDefinitionThe biuniquely associated id value identifying a type description.- Specified by:
typeIdin interfacePersistenceTypeDefinition- Specified by:
typeIdin interfacePersistenceTypeIdentity- Specified by:
typeIdin interfacePersistenceTypeIdOwner- Specified by:
typeIdin interfacePersistenceTypeLink
-
runtimeTypeName
Description copied from interface:PersistenceTypeDefinitionThe name of the corresponding runtime type. If not implemented otherwise (e.g. to cache the name), this method simply callsClass.getName()of a non-nullPersistenceTypeDefinition.type()reference.- Specified by:
runtimeTypeNamein interfacePersistenceTypeDefinition
-
typeName
Description copied from interface:PersistenceTypeDefinitionThe name of the type as defined in the type dictionary. This name may never change for a given typeId, even if the runtimePersistenceTypeDefinition.runtimeTypeName()did to reflect a design-level type renaming.- Specified by:
typeNamein interfacePersistenceTypeDefinition- Specified by:
typeNamein interfacePersistenceTypeDescription- Specified by:
typeNamein interfacePersistenceTypeIdentity
-
isPrimitiveType
public final boolean isPrimitiveType()- Specified by:
isPrimitiveTypein interfacePersistenceTypeDefinition
-
legacyTypeDefinition
-
allMembers
- Specified by:
allMembersin interfacePersistenceTypeDefinition- Specified by:
allMembersin interfacePersistenceTypeDescription- Specified by:
allMembersin interfacePersistenceTypeHandler<D,T>
-
instanceMembers
Description copied from interface:PersistenceTypeDefinitionEnum (unique elements with order), usingPersistenceTypeDescriptionMember.identityHashEqualator(). Contains all persistent members (similar, but not identical to fields) in persistent order, which can differ from the declaration order.- Specified by:
instanceMembersin interfacePersistenceTypeDefinition- Specified by:
instanceMembersin interfacePersistenceTypeDescription- Specified by:
instanceMembersin interfacePersistenceTypeHandler<D,T>
-
membersPersistedLengthMinimum
public final long membersPersistedLengthMinimum()- Specified by:
membersPersistedLengthMinimumin interfacePersistenceTypeDefinition
-
membersPersistedLengthMaximum
public final long membersPersistedLengthMaximum()- Specified by:
membersPersistedLengthMaximumin interfacePersistenceTypeDefinition
-
hasPersistedReferences
public final boolean hasPersistedReferences()- Specified by:
hasPersistedReferencesin interfacePersistenceTypeDefinition
-
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.Stringjava.util.ArrayListjava.math.BigDecimal
Examples for fixed length types:
- primitive value wrapper types
java.lang.Objectjava.util.Date- typical entity types (without unshared inlined variable length component instances)
- Specified by:
hasPersistedVariableLengthin interfacePersistenceTypeDefinition
-
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()
- Specified by:
hasVaryingPersistedLengthInstancesin interfacePersistenceTypeDefinition
-