Class BinaryHandlerSingletonStatelessEnum<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.AbstractBinaryHandlerTrivial<T>
-
- one.microstream.persistence.binary.internal.BinaryHandlerSingletonStatelessEnum<T>
-
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
public final class BinaryHandlerSingletonStatelessEnum<T> extends AbstractBinaryHandlerTrivial<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.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 BinaryHandlerSingletonStatelessEnum()
-
Method Summary
Modifier and Type Method Description XGettingEnum<? extends PersistenceTypeDefinitionMember>
allMembers()
Object[]
collectEnumConstants()
T
create(Binary medium, PersistenceObjectIdResolver idResolver)
PersistenceTypeHandler<Binary,T>
initialize(long typeId)
static boolean
isSingletonEnumType(Class<?> type)
static <T extends Enum<T>>
BinaryHandlerSingletonStatelessEnum<T>New(Class<?> type)
void
store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
static <T> Class<T>
validateIsSingletonEnumType(Class<T> type)
-
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerTrivial
complete, hasInstanceReferences, hasPersistedReferences, hasVaryingPersistedLengthInstances, instanceMembers, isPrimitiveType, iterateInstanceReferences, iterateLoadableReferences, iterateMemberTypes, membersPersistedLengthMaximum, membersPersistedLengthMinimum, update
-
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, 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
hasPersistedVariableLength, 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, isSpecificInstanceViable, isSubTypeInstanceViable, membersInDeclaredOrder, settingMembers, storingMembers, type
-
-
-
-
Method Detail
-
isSingletonEnumType
public static boolean isSingletonEnumType(Class<?> type)
-
New
public static <T extends Enum<T>> BinaryHandlerSingletonStatelessEnum<T> New(Class<?> type)
-
collectEnumConstants
public final Object[] collectEnumConstants()
-
allMembers
public final XGettingEnum<? extends PersistenceTypeDefinitionMember> allMembers()
- Specified by:
allMembers
in interfacePersistenceTypeDefinition
- Specified by:
allMembers
in interfacePersistenceTypeDescription
- Specified by:
allMembers
in interfacePersistenceTypeHandler<Binary,T>
- Overrides:
allMembers
in classAbstractBinaryHandlerTrivial<T>
-
store
public final void store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
-
create
public final T create(Binary medium, PersistenceObjectIdResolver idResolver)
-
initialize
public final PersistenceTypeHandler<Binary,T> initialize(long typeId)
- Specified by:
initialize
in interfacePersistenceTypeHandler<Binary,T>
- Overrides:
initialize
in classPersistenceTypeHandler.Abstract<Binary,T>
-
-