Class PersistenceTypeHandlerManager.Default<M>
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceTypeHandlerManager.Default<M>
-
- All Implemented Interfaces:
PersistenceTypeHandlerIterable<M>
,PersistenceTypeHandlerLookup<M>
,PersistenceTypeHandlerManager<M>
,PersistenceTypeHandlerRegistry<M>
,PersistenceTypeIdLookup
,PersistenceTypeLookup
,PersistenceTypeManager
,PersistenceTypeRegistry
- Enclosing interface:
- PersistenceTypeHandlerManager<M>
public static final class PersistenceTypeHandlerManager.Default<M> extends Object implements PersistenceTypeHandlerManager<M>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerManager
PersistenceTypeHandlerManager.Default<M>
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
-
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.PersistenceTypeHandlerIterable
iterateAllTypeHandlers
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerManager
collectEnumConstants, deriveEnumRootIdentifier, isEnumRootIdentifier, parseEnumRootIdentifierTypeId, update, validateTypeHandlers
-
-
-
-
Method Detail
-
validateTypeHandler
public final void validateTypeHandler(PersistenceTypeHandler<M,?> typeHandler)
- Specified by:
validateTypeHandler
in interfacePersistenceTypeHandlerManager<M>
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<M,T> ensureTypeHandler(T instance)
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<M>
-
typeDictionary
public PersistenceTypeDictionary typeDictionary()
- Specified by:
typeDictionary
in interfacePersistenceTypeHandlerManager<M>
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<M,T> ensureTypeHandler(Class<T> type)
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<M>
-
ensureTypeHandler
public <T> PersistenceTypeHandler<M,T> ensureTypeHandler(PersistenceTypeDefinition typeDefinition)
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<M>
-
ensureTypeHandlersByTypeIds
public void ensureTypeHandlersByTypeIds(XGettingEnum<Long> typeIds)
- Specified by:
ensureTypeHandlersByTypeIds
in interfacePersistenceTypeHandlerManager<M>
-
ensureTypeHandlers
public void ensureTypeHandlers(XGettingEnum<PersistenceTypeDefinition> typeDefinitions)
- Specified by:
ensureTypeHandlers
in interfacePersistenceTypeHandlerManager<M>
-
lookupTypeHandler
public final <T> PersistenceTypeHandler<M,T> lookupTypeHandler(Class<T> type)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<M>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<M>
-
lookupTypeHandler
public final PersistenceTypeHandler<M,?> lookupTypeHandler(long typeId)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<M>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<M>
-
lookupTypeHandler
public final <T> PersistenceTypeHandler<M,T> lookupTypeHandler(T instance)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<M>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<M>
-
lookupTypeId
public final long lookupTypeId(Class<?> type)
- Specified by:
lookupTypeId
in interfacePersistenceTypeIdLookup
- Specified by:
lookupTypeId
in interfacePersistenceTypeLookup
-
lookupType
public final <T> Class<T> lookupType(long typeId)
- Specified by:
lookupType
in interfacePersistenceTypeLookup
-
validateTypeMapping
public boolean validateTypeMapping(long typeId, Class<?> type) throws PersistenceExceptionConsistency
- Specified by:
validateTypeMapping
in interfacePersistenceTypeLookup
- Throws:
PersistenceExceptionConsistency
-
validateTypeMappings
public boolean validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings) throws PersistenceExceptionConsistency
- Specified by:
validateTypeMappings
in interfacePersistenceTypeLookup
- Throws:
PersistenceExceptionConsistency
-
registerTypes
public boolean registerTypes(Iterable<? extends PersistenceTypeLink> types) throws PersistenceExceptionConsistency
- Specified by:
registerTypes
in interfacePersistenceTypeRegistry
- Throws:
PersistenceExceptionConsistency
-
registerTypeHandler
public final boolean registerTypeHandler(PersistenceTypeHandler<M,?> typeHandler)
- Specified by:
registerTypeHandler
in interfacePersistenceTypeHandlerRegistry<M>
-
checkForPendingRootInstances
public void checkForPendingRootInstances()
- Specified by:
checkForPendingRootInstances
in interfacePersistenceTypeHandlerManager<M>
-
checkForPendingRootsStoring
public void checkForPendingRootsStoring(PersistenceStoring storingCallback)
- Specified by:
checkForPendingRootsStoring
in interfacePersistenceTypeHandlerManager<M>
-
clearStorePendingRoots
public void clearStorePendingRoots()
- Specified by:
clearStorePendingRoots
in interfacePersistenceTypeHandlerManager<M>
-
registerLegacyTypeHandler
public final boolean registerLegacyTypeHandler(PersistenceLegacyTypeHandler<M,?> legacyTypeHandler)
- Specified by:
registerLegacyTypeHandler
in interfacePersistenceTypeHandlerRegistry<M>
-
ensureTypeId
public final long ensureTypeId(Class<?> type)
- Specified by:
ensureTypeId
in interfacePersistenceTypeHandlerManager<M>
- Specified by:
ensureTypeId
in interfacePersistenceTypeManager
-
currentTypeId
public final long currentTypeId()
- Specified by:
currentTypeId
in interfacePersistenceTypeManager
-
ensureType
public final Class<?> ensureType(long typeId)
- Specified by:
ensureType
in interfacePersistenceTypeHandlerManager<M>
- Specified by:
ensureType
in interfacePersistenceTypeManager
-
registerType
public final boolean registerType(long tid, Class<?> type) throws PersistenceExceptionConsistency
- Specified by:
registerType
in interfacePersistenceTypeRegistry
- Throws:
PersistenceExceptionConsistency
-
iterateTypeHandlers
public <C extends Consumer<? super PersistenceTypeHandler<M,?>>> C iterateTypeHandlers(C iterator)
- Specified by:
iterateTypeHandlers
in interfacePersistenceTypeHandlerIterable<M>
-
iterateLegacyTypeHandlers
public <C extends Consumer<? super PersistenceLegacyTypeHandler<M,?>>> C iterateLegacyTypeHandlers(C iterator)
- Specified by:
iterateLegacyTypeHandlers
in interfacePersistenceTypeHandlerIterable<M>
-
initialize
public final PersistenceTypeHandlerManager<M> initialize()
- Specified by:
initialize
in interfacePersistenceTypeHandlerManager<M>
-
updateCurrentHighestTypeId
public void updateCurrentHighestTypeId(long highestTypeId)
- Specified by:
updateCurrentHighestTypeId
in interfacePersistenceTypeManager
-
update
public void update(PersistenceTypeDictionary typeDictionary, long highestTypeId)
- Specified by:
update
in interfacePersistenceTypeHandlerManager<M>
-
-