Class PersistenceLegacyTypeHandlerWrapper<M,T>
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceLegacyTypeHandler.Abstract<M,T>
-
- one.microstream.persistence.types.PersistenceLegacyTypeHandlerWrapper<M,T>
-
- All Implemented Interfaces:
PersistenceLegacyTypeHandler<M,T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<M,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
- Direct Known Subclasses:
PersistenceLegacyTypeHandlerWrapperEnum
public class PersistenceLegacyTypeHandlerWrapper<M,T> extends PersistenceLegacyTypeHandler.Abstract<M,T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceLegacyTypeHandler
PersistenceLegacyTypeHandler.Abstract<M,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
-
-
Constructor Summary
Constructors Constructor Description PersistenceLegacyTypeHandlerWrapper()
-
Method Summary
-
Methods inherited from class one.microstream.persistence.types.PersistenceLegacyTypeHandler.Abstract
allMembers, hasPersistedReferences, hasPersistedVariableLength, hasVaryingPersistedLengthInstances, instanceMembers, isPrimitiveType, legacyTypeDefinition, membersPersistedLengthMaximum, membersPersistedLengthMinimum, runtimeTypeName, typeId, typeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceLegacyTypeHandler
initialize, store
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
toRuntimeTypeIdentifier
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
toTypeIdentifier
-
-
-
-
Method Detail
-
New
public static <M,T> PersistenceLegacyTypeHandler<M,T> New(PersistenceTypeDefinition legacyTypeDefinition, PersistenceTypeHandler<M,T> currentTypeHandler)
-
hasInstanceReferences
public boolean hasInstanceReferences()
-
iterateInstanceReferences
public void iterateInstanceReferences(T instance, PersistenceFunction iterator)
-
iterateLoadableReferences
public void iterateLoadableReferences(M medium, PersistenceObjectIdAcceptor iterator)
-
create
public T create(M medium, PersistenceObjectIdResolver idResolver)
-
update
public void update(M medium, T instance, PersistenceObjectIdResolver idResolver)
-
complete
public void complete(M medium, T instance, PersistenceObjectIdResolver idResolver)
Description copied from interface:PersistenceTypeHandler
Completes an initially built instance after all loaded instances have been built. E.g. can be used to cause a hash collection to hash all its initially collected entries after their instances have been built.
-
iterateMemberTypes
public <C extends Consumer<? super Class<?>>> C iterateMemberTypes(C logic)
Description copied from interface:PersistenceTypeHandler
Iterates the types of persistent members (e.g. non-transientField
s). The same type may occur more than once. The order in which the types are provided is undefined, i.e. depending on the implementation.
-
membersInDeclaredOrder
public XGettingEnum<? extends PersistenceTypeDefinitionMember> membersInDeclaredOrder()
-
storingMembers
public XGettingEnum<? extends PersistenceTypeDescriptionMember> storingMembers()
-
settingMembers
public XGettingEnum<? extends PersistenceTypeDescriptionMember> settingMembers()
-
guaranteeSpecificInstanceViablity
public void guaranteeSpecificInstanceViablity() throws PersistenceExceptionTypeNotPersistable
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 boolean isSpecificInstanceViable()
-
guaranteeSubTypeInstanceViablity
public void guaranteeSubTypeInstanceViablity() throws PersistenceExceptionTypeNotPersistable
-
isSubTypeInstanceViable
public boolean isSubTypeInstanceViable()
-
collectEnumConstants
public Object[] collectEnumConstants()
-
getPersistedEnumOrdinal
public int getPersistedEnumOrdinal(M medium)
-
-