Class BinaryHandlerUnpersistable<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.BinaryHandlerUnpersistable<T>
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceDataTypeHolder<Binary>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
public final class BinaryHandlerUnpersistable<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>
-
Constructor Summary
Constructors Constructor Description BinaryHandlerUnpersistable()
-
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.void
guaranteeSubTypeInstanceViablity()
boolean
isSpecificInstanceViable()
boolean
isSubTypeInstanceViable()
static <T> BinaryHandlerUnpersistable<T>
New(Class<T> type)
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, 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.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, initialize, initializeState, isValidEntityType, membersInDeclaredOrder, settingMembers, storingMembers, type, validateEntityType
-
Constructor Details
-
BinaryHandlerUnpersistable
public BinaryHandlerUnpersistable()
-
-
Method Details
-
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() -
guaranteeSubTypeInstanceViablity
-
isSubTypeInstanceViable
public final boolean isSubTypeInstanceViable()
-