public class PersistenceLegacyTypeHandlerWrapper<D,T> extends PersistenceLegacyTypeHandler.Abstract<D,T>
PersistenceLegacyTypeHandler.Abstract<D,T>PersistenceTypeDefinition.DefaultPersistenceTypeDescription.IdentityPersistenceDataTypeHolder.Default<D>| Modifier and Type | Method and Description |
|---|---|
Object[] |
collectEnumConstants() |
void |
complete(D data,
T instance,
PersistenceLoadHandler handler)
Completes an initially built instance after all loaded instances have been built.
|
T |
create(D data,
PersistenceLoadHandler handler) |
Class<D> |
dataType() |
int |
getPersistedEnumOrdinal(D data) |
void |
guaranteeSpecificInstanceViablity()
Guarantees that the
PersistenceTypeHandler implementation is actually viably usable to handle instances. |
void |
guaranteeSubTypeInstanceViablity() |
boolean |
isSpecificInstanceViable() |
boolean |
isSubTypeInstanceViable() |
void |
iterateInstanceReferences(T instance,
PersistenceFunction iterator) |
void |
iterateLoadableReferences(D data,
PersistenceReferenceLoader iterator) |
<C extends Consumer<? super Class<?>>> |
iterateMemberTypes(C logic)
Iterates the types of persistent members (e.g.
|
one.microstream.collections.types.XGettingEnum<? extends PersistenceTypeDefinitionMember> |
membersInDeclaredOrder() |
static <D,T> PersistenceLegacyTypeHandler<D,T> |
New(PersistenceTypeDefinition legacyTypeDefinition,
PersistenceTypeHandler<D,T> currentTypeHandler) |
one.microstream.collections.types.XGettingEnum<? extends PersistenceTypeDescriptionMember> |
settingMembers() |
one.microstream.collections.types.XGettingEnum<? extends PersistenceTypeDescriptionMember> |
storingMembers() |
Class<T> |
type() |
void |
updateState(D data,
T instance,
PersistenceLoadHandler handler) |
allMembers, hasPersistedReferences, hasPersistedVariableLength, hasVaryingPersistedLengthInstances, instanceMembers, isPrimitiveType, legacyTypeDefinition, membersPersistedLengthMaximum, membersPersistedLengthMinimum, runtimeTypeName, typeId, typeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, resolveEnumConstant, storeinitializeState, isValidEntityType, resolveEnumConstant, validateEntityTypedetermineIsPrimitive, determineVariableLength, New, toRuntimeTypeIdentifierbuildTypeIdentifier, buildTypeIdentifier, equalDescription, equalStructure, Identity, instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifier, typeIdentifierSeparatorequals, hashCodeorderAscending, sortByTypeIdAscendingpublic static <D,T> PersistenceLegacyTypeHandler<D,T> New(PersistenceTypeDefinition legacyTypeDefinition, PersistenceTypeHandler<D,T> currentTypeHandler)
public void iterateInstanceReferences(T instance, PersistenceFunction iterator)
public void iterateLoadableReferences(D data, PersistenceReferenceLoader iterator)
public T create(D data, PersistenceLoadHandler handler)
public void updateState(D data, T instance, PersistenceLoadHandler handler)
public void complete(D data, T instance, PersistenceLoadHandler handler)
PersistenceTypeHandlerdata - the data targetinstance - the source instancehandler - the appropriate handlerpublic <C extends Consumer<? super Class<?>>> C iterateMemberTypes(C logic)
PersistenceTypeHandlerFields).
The same type may occur more than once.
The order in which the types are provided is undefined, i.e. depending on the implementation.C - the logic typelogic - the iteration logicpublic one.microstream.collections.types.XGettingEnum<? extends PersistenceTypeDefinitionMember> membersInDeclaredOrder()
public one.microstream.collections.types.XGettingEnum<? extends PersistenceTypeDescriptionMember> storingMembers()
public one.microstream.collections.types.XGettingEnum<? extends PersistenceTypeDescriptionMember> settingMembers()
public void guaranteeSpecificInstanceViablity()
throws PersistenceExceptionTypeNotPersistable
PersistenceTypeHandlerPersistenceTypeHandler 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.
PersistenceExceptionTypeNotPersistable - if the handler's type is not persistablePersistenceExceptionTypeNotPersistablepublic boolean isSpecificInstanceViable()
public void guaranteeSubTypeInstanceViablity()
throws PersistenceExceptionTypeNotPersistable
public boolean isSubTypeInstanceViable()
public Object[] collectEnumConstants()
public int getPersistedEnumOrdinal(D data)
Copyright © 2022 MicroStream Software. All rights reserved.