Class BinaryHandlerAbstractType<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.BinaryHandlerAbstractType<T>
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceDataTypeHolder<Binary>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
public final class BinaryHandlerAbstractType<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.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>
-
Method Summary
Modifier and Type Method Description T
create(Binary data, PersistenceLoadHandler handler)
void
guaranteeSpecificInstanceViablity()
Guarantees that thePersistenceTypeHandler
implementation is actually viably usable to handle instances.boolean
isSpecificInstanceViable()
static <T> BinaryHandlerAbstractType<T>
New(Class<T> type)
static <T> BinaryHandlerAbstractType<T>
New(Class<T> type, String typeName)
void
store(Binary data, T instance, long objectId, PersistenceStoreHandler<Binary> handler)
void
updateState(Binary data, T instance, PersistenceLoadHandler handler)
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerTrivial
allMembers, complete, hasPersistedReferences, hasVaryingPersistedLengthInstances, instanceMembers, isPrimitiveType, iterateInstanceReferences, iterateLoadableReferences, iterateMemberTypes, membersPersistedLengthMaximum, membersPersistedLengthMinimum
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
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
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSubTypeInstanceViablity, initialize, initializeState, isSubTypeInstanceViable, isValidEntityType, membersInDeclaredOrder, settingMembers, storingMembers, type, validateEntityType
-
Method Details
-
New
-
New
-
store
public final void store(Binary data, T instance, long objectId, PersistenceStoreHandler<Binary> handler) -
create
-
updateState
- Specified by:
updateState
in interfacePersistenceTypeHandler<Binary,T>
- Overrides:
updateState
in classAbstractBinaryHandlerTrivial<T>
-
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 final boolean isSpecificInstanceViable()
-