Class BinaryHandlerCustomEnumTrivial<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>
-
- one.microstream.persistence.binary.internal.BinaryHandlerCustomEnumTrivial<T>
-
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
public class BinaryHandlerCustomEnumTrivial<T extends Enum<T>> extends AbstractBinaryHandlerCustomEnum<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 BinaryHandlerCustomEnumTrivial()
-
Method Summary
Modifier and Type Method Description boolean
hasInstanceReferences()
boolean
hasPersistedReferences()
boolean
hasVaryingPersistedLengthInstances()
Provides information if one particular instance can have variing binary length from one store to another.void
iterateLoadableReferences(Binary bytes, PersistenceObjectIdAcceptor iterator)
void
store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
-
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustomEnum
allMembers, collectEnumConstants, create, update, validateIsEnum
-
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustom
bytes, chars, complete, Complex, CustomField, CustomField, CustomFields, defineValueType, instanceMembers, isPrimitiveType, iterateInstanceReferences, 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.types.PersistenceTypeDefinition
hasPersistedVariableLength, runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeName
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
toTypeIdentifier
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, membersInDeclaredOrder, settingMembers, storingMembers, type
-
-
-
-
Method Detail
-
hasInstanceReferences
public boolean hasInstanceReferences()
-
iterateLoadableReferences
public void iterateLoadableReferences(Binary bytes, PersistenceObjectIdAcceptor iterator)
-
hasPersistedReferences
public boolean hasPersistedReferences()
-
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()
-
store
public void store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
-
-