Class AbstractBinaryLegacyTypeHandlerTranslating<T>
java.lang.Object
one.microstream.persistence.types.PersistenceLegacyTypeHandler.Abstract<Binary,T>
one.microstream.persistence.binary.types.BinaryLegacyTypeHandler.Abstract<T>
one.microstream.persistence.binary.internal.AbstractBinaryLegacyTypeHandlerTranslating<T>
- All Implemented Interfaces:
BinaryLegacyTypeHandler<T>
,BinaryTypeHandler<T>
,PersistenceDataTypeHolder<Binary>
,PersistenceLegacyTypeHandler<Binary,T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
- Direct Known Subclasses:
AbstractBinaryLegacyTypeHandlerReflective
,BinaryLegacyTypeHandlerRerouting
public abstract class AbstractBinaryLegacyTypeHandlerTranslating<T> extends BinaryLegacyTypeHandler.Abstract<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryLegacyTypeHandler
BinaryLegacyTypeHandler.Abstract<T>, BinaryLegacyTypeHandler.AbstractCustom<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.PersistenceLegacyTypeHandler
PersistenceLegacyTypeHandler.Abstract<D,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
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBinaryLegacyTypeHandlerTranslating(PersistenceTypeDefinition typeDefinition, PersistenceTypeHandler<Binary,T> typeHandler, BinaryValueSetter[] valueTranslators, long[] targetOffsets, PersistenceLegacyTypeHandlingListener<Binary> listener, boolean switchByteOrder)
-
Method Summary
Methods inherited from class one.microstream.persistence.types.PersistenceLegacyTypeHandler.Abstract
allMembers, hasPersistedReferences, hasPersistedVariableLength, hasVaryingPersistedLengthInstances, instanceMembers, isPrimitiveType, legacyTypeDefinition, membersPersistedLengthMaximum, membersPersistedLengthMinimum, runtimeTypeName, typeId, typeName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.persistence.binary.types.BinaryLegacyTypeHandler
initialize, store
Methods inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
dataType
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
hasPersistedReferences, hasPersistedVariableLength, hasVaryingPersistedLengthInstances, 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, complete, initializeState, instanceMembers, isValidEntityType, iterateLoadableReferences, updateState, validateEntityType
-
Constructor Details
-
AbstractBinaryLegacyTypeHandlerTranslating
protected AbstractBinaryLegacyTypeHandlerTranslating(PersistenceTypeDefinition typeDefinition, PersistenceTypeHandler<Binary,T> typeHandler, BinaryValueSetter[] valueTranslators, long[] targetOffsets, PersistenceLegacyTypeHandlingListener<Binary> listener, boolean switchByteOrder)
-
-
Method Details
-
toTranslators
public static BinaryValueSetter[] toTranslators(XGettingEnum<KeyValue<Long,BinaryValueSetter>> translatorsWithTargetOffsets) -
toTargetOffsets
public static long[] toTargetOffsets(XGettingEnum<KeyValue<Long,BinaryValueSetter>> translatorsWithTargetOffsets) -
deriveReferenceTraversers
public static final BinaryReferenceTraverser[] deriveReferenceTraversers(PersistenceTypeDefinition typeDefinition, boolean switchByteOrder) -
valueTranslators
-
targetOffsets
protected long[] targetOffsets() -
typeHandler
-
membersInDeclaredOrder
-
storingMembers
-
settingMembers
-
guaranteeSpecificInstanceViablity
Description copied from interface:PersistenceTypeHandler
Guarantees that thePersistenceTypeHandler
implementation is actually viably usable to handle instances. That is the natural purpose of type handlers, but there are exceptions, like type handlers created for abstract types or unpersistable types just to have a metadata representation that links a type and a type id.See occurances of
PersistenceExceptionTypeNotPersistable
.- Throws:
PersistenceExceptionTypeNotPersistable
- See Also:
PersistenceExceptionTypeNotPersistable
-
isSpecificInstanceViable
public boolean isSpecificInstanceViable() -
guaranteeSubTypeInstanceViablity
-
isSubTypeInstanceViable
public boolean isSubTypeInstanceViable() -
collectEnumConstants
-
getPersistedEnumOrdinal
-
type
-
iterateInstanceReferences
-
iterateMemberTypes
Description copied from interface:PersistenceTypeHandler
Iterates the types of persistent members (e.g. non-transientField
s). The same type may occur more than once. The order in which the types are provided is undefined, i.e. depending on the implementation. -
create
-
internalCreate
-