Class BinaryHandlerPrimitive<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.BinaryHandlerPrimitive<T>
-
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
public final class BinaryHandlerPrimitive<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 BinaryHandlerPrimitive()
-
Method Summary
Modifier and Type Method Description XGettingEnum<? extends PersistenceTypeDefinitionMember>
allMembers()
T
create(Binary bytes, PersistenceObjectIdResolver idResolver)
XGettingEnum<? extends PersistenceTypeDefinitionMemberPrimitiveDefinition>
instanceMembers()
Enum (unique elements with order), usingPersistenceTypeDescriptionMember.identityHashEqualator()
.boolean
isPrimitiveType()
long
membersPersistedLengthMaximum()
long
membersPersistedLengthMinimum()
static <T> BinaryHandlerPrimitive<T>
New(Class<T> type)
void
store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
void
update(Binary bytes, T instance, PersistenceObjectIdResolver idResolver)
-
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerTrivial
complete, hasInstanceReferences, hasPersistedReferences, hasVaryingPersistedLengthInstances, iterateInstanceReferences, iterateLoadableReferences, iterateMemberTypes
-
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
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, membersInDeclaredOrder, settingMembers, storingMembers, type
-
-
-
-
Method Detail
-
New
public static <T> BinaryHandlerPrimitive<T> New(Class<T> type)
-
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>
-
instanceMembers
public final XGettingEnum<? extends PersistenceTypeDefinitionMemberPrimitiveDefinition> instanceMembers()
Description copied from interface:PersistenceTypeDefinition
Enum (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:
instanceMembers
in interfacePersistenceTypeDefinition
- Specified by:
instanceMembers
in interfacePersistenceTypeDescription
- Specified by:
instanceMembers
in interfacePersistenceTypeHandler<Binary,T>
- Overrides:
instanceMembers
in classAbstractBinaryHandlerTrivial<T>
-
membersPersistedLengthMinimum
public final long membersPersistedLengthMinimum()
- Specified by:
membersPersistedLengthMinimum
in interfacePersistenceTypeDefinition
- Overrides:
membersPersistedLengthMinimum
in classAbstractBinaryHandlerTrivial<T>
-
membersPersistedLengthMaximum
public final long membersPersistedLengthMaximum()
- Specified by:
membersPersistedLengthMaximum
in interfacePersistenceTypeDefinition
- Overrides:
membersPersistedLengthMaximum
in classAbstractBinaryHandlerTrivial<T>
-
isPrimitiveType
public final boolean isPrimitiveType()
- Specified by:
isPrimitiveType
in interfacePersistenceTypeDefinition
- Overrides:
isPrimitiveType
in classAbstractBinaryHandlerTrivial<T>
-
store
public void store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
-
create
public T create(Binary bytes, PersistenceObjectIdResolver idResolver)
-
update
public void update(Binary bytes, T instance, PersistenceObjectIdResolver idResolver)
- Specified by:
update
in interfacePersistenceTypeHandler<Binary,T>
- Overrides:
update
in classAbstractBinaryHandlerTrivial<T>
-
-