Class AbstractBinaryHandlerCustomEnum<T extends Enum<T>>
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<T>
one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustomEnum<T>
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceDataTypeHolder<Binary>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
- Direct Known Subclasses:
BinaryHandlerCustomEnumTrivial
public abstract class AbstractBinaryHandlerCustomEnum<T extends Enum<T>> extends AbstractBinaryHandlerCustom<T>
-
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.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 Modifier Constructor Description protected
AbstractBinaryHandlerCustomEnum(Class<T> type, String typeName, XGettingSequence<? extends PersistenceTypeDefinitionMemberEnumConstant> constantMembers, XGettingSequence<? extends PersistenceTypeDefinitionMember> instanceMembers)
protected
AbstractBinaryHandlerCustomEnum(Class<T> type, XGettingSequence<? extends PersistenceTypeDefinitionMemberEnumConstant> constantMembers, XGettingSequence<? extends PersistenceTypeDefinitionMember> instanceMembers)
-
Method Summary
Modifier and Type Method Description XGettingEnum<? extends PersistenceTypeDefinitionMember>
allMembers()
Object[]
collectEnumConstants()
T
create(Binary data, PersistenceLoadHandler handler)
protected abstract String
getName(Binary data, PersistenceLoadHandler handler)
protected abstract int
getOrdinal(Binary data)
void
updateState(Binary data, T instance, PersistenceLoadHandler handler)
protected void
validate(Binary data, T instance, PersistenceLoadHandler handler)
static <T> Class<T>
validateIsEnum(Class<T> type)
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustom
bytes, calculcateBinaryLengths, chars, complete, Complex, CustomField, CustomField, CustomFields, defineValueType, ensureInitializeInstanceMembers, getInstanceFieldOfType, initializeInstanceMembers, instanceMembers, isPrimitiveType, iterateInstanceReferences, iterateMemberTypes, keyValuesFields, membersPersistedLengthMaximum, membersPersistedLengthMinimum, SimpleArrayFields, SizedArrayFields, store
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, deriveTypeName, initialize, internalInitialize, toString, type, typeId, typeName, validateAndImmure, validateInstance
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
hasPersistedReferences, hasPersistedVariableLength, hasVaryingPersistedLengthInstances, 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
getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, initializeState, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, iterateLoadableReferences, membersInDeclaredOrder, settingMembers, storingMembers, type, validateEntityType
-
Constructor Details
-
AbstractBinaryHandlerCustomEnum
protected AbstractBinaryHandlerCustomEnum(Class<T> type, XGettingSequence<? extends PersistenceTypeDefinitionMemberEnumConstant> constantMembers, XGettingSequence<? extends PersistenceTypeDefinitionMember> instanceMembers) -
AbstractBinaryHandlerCustomEnum
protected AbstractBinaryHandlerCustomEnum(Class<T> type, String typeName, XGettingSequence<? extends PersistenceTypeDefinitionMemberEnumConstant> constantMembers, XGettingSequence<? extends PersistenceTypeDefinitionMember> instanceMembers)
-
-
Method Details
-
validateIsEnum
-
collectEnumConstants
-
allMembers
- Specified by:
allMembers
in interfacePersistenceTypeDefinition
- Specified by:
allMembers
in interfacePersistenceTypeDescription
- Specified by:
allMembers
in interfacePersistenceTypeHandler<Binary,T extends Enum<T>>
- Overrides:
allMembers
in classAbstractBinaryHandlerCustom<T extends Enum<T>>
-
getOrdinal
-
getName
-
create
-
validate
-
updateState
-