Class PersistenceTypeHandlerManager.Default<D>
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceTypeHandlerManager.Default<D>
-
- All Implemented Interfaces:
PersistenceTypeHandlerIterable<D>
,PersistenceTypeHandlerLookup<D>
,PersistenceTypeHandlerManager<D>
,PersistenceTypeHandlerRegistry<D>
,PersistenceTypeIdLookup
,PersistenceTypeLookup
,PersistenceTypeManager
,PersistenceTypeRegistry
- Enclosing interface:
- PersistenceTypeHandlerManager<D>
public static final class PersistenceTypeHandlerManager.Default<D> extends Object implements PersistenceTypeHandlerManager<D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerManager
PersistenceTypeHandlerManager.Default<D>
-
-
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<D,?> typeHandler)
- Specified by:
validateTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<D,T> ensureTypeHandler(T instance)
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
typeDictionary
public PersistenceTypeDictionary typeDictionary()
- Specified by:
typeDictionary
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<D,T> ensureTypeHandler(Class<T> type)
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
public <T> PersistenceTypeHandler<D,T> ensureTypeHandler(PersistenceTypeDefinition typeDefinition)
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandlersByTypeIds
public void ensureTypeHandlersByTypeIds(XGettingEnum<Long> typeIds)
- Specified by:
ensureTypeHandlersByTypeIds
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandlers
public void ensureTypeHandlers(XGettingEnum<PersistenceTypeDefinition> typeDefinitions)
- Specified by:
ensureTypeHandlers
in interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
public final <T> PersistenceTypeHandler<D,T> lookupTypeHandler(Class<T> type)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
public final PersistenceTypeHandler<D,?> lookupTypeHandler(long typeId)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
public final <T> PersistenceTypeHandler<D,T> lookupTypeHandler(T instance)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
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<D,?> typeHandler)
- Specified by:
registerTypeHandler
in interfacePersistenceTypeHandlerRegistry<D>
-
checkForPendingRootInstances
public void checkForPendingRootInstances()
- Specified by:
checkForPendingRootInstances
in interfacePersistenceTypeHandlerManager<D>
-
checkForPendingRootsStoring
public void checkForPendingRootsStoring(PersistenceStoring storingCallback)
- Specified by:
checkForPendingRootsStoring
in interfacePersistenceTypeHandlerManager<D>
-
clearStorePendingRoots
public void clearStorePendingRoots()
- Specified by:
clearStorePendingRoots
in interfacePersistenceTypeHandlerManager<D>
-
registerLegacyTypeHandler
public final boolean registerLegacyTypeHandler(PersistenceLegacyTypeHandler<D,?> legacyTypeHandler)
- Specified by:
registerLegacyTypeHandler
in interfacePersistenceTypeHandlerRegistry<D>
-
ensureTypeId
public final long ensureTypeId(Class<?> type)
- Specified by:
ensureTypeId
in interfacePersistenceTypeHandlerManager<D>
- 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<D>
- 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<D,?>>> C iterateTypeHandlers(C iterator)
- Specified by:
iterateTypeHandlers
in interfacePersistenceTypeHandlerIterable<D>
-
iterateLegacyTypeHandlers
public <C extends Consumer<? super PersistenceLegacyTypeHandler<D,?>>> C iterateLegacyTypeHandlers(C iterator)
- Specified by:
iterateLegacyTypeHandlers
in interfacePersistenceTypeHandlerIterable<D>
-
initialize
public final PersistenceTypeHandlerManager<D> initialize()
- Specified by:
initialize
in interfacePersistenceTypeHandlerManager<D>
-
updateCurrentHighestTypeId
public void updateCurrentHighestTypeId(long highestTypeId)
- Specified by:
updateCurrentHighestTypeId
in interfacePersistenceTypeManager
-
update
public void update(PersistenceTypeDictionary typeDictionary, long highestTypeId)
- Specified by:
update
in interfacePersistenceTypeHandlerManager<D>
-
-