Class PersistenceLegacyTypeHandlerWrapper<D,T>
java.lang.Object
one.microstream.persistence.types.PersistenceLegacyTypeHandler.Abstract<D,T>
one.microstream.persistence.types.PersistenceLegacyTypeHandlerWrapper<D,T>
- All Implemented Interfaces:
PersistenceDataTypeHolder<D>
,PersistenceLegacyTypeHandler<D,T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<D,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
- Direct Known Subclasses:
PersistenceLegacyTypeHandlerWrapperEnum
public class PersistenceLegacyTypeHandlerWrapper<D,T> extends PersistenceLegacyTypeHandler.Abstract<D,T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
PersistenceDataTypeHolder.Default<D>
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceLegacyTypeHandler
PersistenceLegacyTypeHandler.Abstract<D,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
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifier
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
initializeState, isValidEntityType, validateEntityType
-
Constructor Details
-
PersistenceLegacyTypeHandlerWrapper
public PersistenceLegacyTypeHandlerWrapper()
-
-
Method Details
-
New
public static <D, T> PersistenceLegacyTypeHandler<D,T> New(PersistenceTypeDefinition legacyTypeDefinition, PersistenceTypeHandler<D,T> currentTypeHandler) -
dataType
-
iterateInstanceReferences
-
iterateLoadableReferences
-
create
-
updateState
-
complete
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
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. -
type
-
membersInDeclaredOrder
-
storingMembers
-
settingMembers
-
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 boolean isSpecificInstanceViable() -
guaranteeSubTypeInstanceViablity
-
isSubTypeInstanceViable
public boolean isSubTypeInstanceViable() -
collectEnumConstants
-
getPersistedEnumOrdinal
-