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:
validateTypeHandlerin interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<D,T> ensureTypeHandler(T instance)
- Specified by:
ensureTypeHandlerin interfacePersistenceTypeHandlerManager<D>
-
typeDictionary
public PersistenceTypeDictionary typeDictionary()
- Specified by:
typeDictionaryin interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<D,T> ensureTypeHandler(Class<T> type)
- Specified by:
ensureTypeHandlerin interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
public <T> PersistenceTypeHandler<D,T> ensureTypeHandler(PersistenceTypeDefinition typeDefinition)
- Specified by:
ensureTypeHandlerin interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandlersByTypeIds
public void ensureTypeHandlersByTypeIds(XGettingEnum<Long> typeIds)
- Specified by:
ensureTypeHandlersByTypeIdsin interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandlers
public void ensureTypeHandlers(XGettingEnum<PersistenceTypeDefinition> typeDefinitions)
- Specified by:
ensureTypeHandlersin interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
public final <T> PersistenceTypeHandler<D,T> lookupTypeHandler(Class<T> type)
- Specified by:
lookupTypeHandlerin interfacePersistenceTypeHandlerLookup<D>- Specified by:
lookupTypeHandlerin interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
public final PersistenceTypeHandler<D,?> lookupTypeHandler(long typeId)
- Specified by:
lookupTypeHandlerin interfacePersistenceTypeHandlerLookup<D>- Specified by:
lookupTypeHandlerin interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
public final <T> PersistenceTypeHandler<D,T> lookupTypeHandler(T instance)
- Specified by:
lookupTypeHandlerin interfacePersistenceTypeHandlerLookup<D>- Specified by:
lookupTypeHandlerin interfacePersistenceTypeHandlerManager<D>
-
lookupTypeId
public final long lookupTypeId(Class<?> type)
- Specified by:
lookupTypeIdin interfacePersistenceTypeIdLookup- Specified by:
lookupTypeIdin interfacePersistenceTypeLookup
-
lookupType
public final <T> Class<T> lookupType(long typeId)
- Specified by:
lookupTypein interfacePersistenceTypeLookup
-
validateTypeMapping
public boolean validateTypeMapping(long typeId, Class<?> type) throws PersistenceExceptionConsistency- Specified by:
validateTypeMappingin interfacePersistenceTypeLookup- Throws:
PersistenceExceptionConsistency
-
validateTypeMappings
public boolean validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings) throws PersistenceExceptionConsistency
- Specified by:
validateTypeMappingsin interfacePersistenceTypeLookup- Throws:
PersistenceExceptionConsistency
-
registerTypes
public boolean registerTypes(Iterable<? extends PersistenceTypeLink> types) throws PersistenceExceptionConsistency
- Specified by:
registerTypesin interfacePersistenceTypeRegistry- Throws:
PersistenceExceptionConsistency
-
registerTypeHandler
public final boolean registerTypeHandler(PersistenceTypeHandler<D,?> typeHandler)
- Specified by:
registerTypeHandlerin interfacePersistenceTypeHandlerRegistry<D>
-
checkForPendingRootInstances
public void checkForPendingRootInstances()
- Specified by:
checkForPendingRootInstancesin interfacePersistenceTypeHandlerManager<D>
-
checkForPendingRootsStoring
public void checkForPendingRootsStoring(PersistenceStoring storingCallback)
- Specified by:
checkForPendingRootsStoringin interfacePersistenceTypeHandlerManager<D>
-
clearStorePendingRoots
public void clearStorePendingRoots()
- Specified by:
clearStorePendingRootsin interfacePersistenceTypeHandlerManager<D>
-
registerLegacyTypeHandler
public final boolean registerLegacyTypeHandler(PersistenceLegacyTypeHandler<D,?> legacyTypeHandler)
- Specified by:
registerLegacyTypeHandlerin interfacePersistenceTypeHandlerRegistry<D>
-
ensureTypeId
public final long ensureTypeId(Class<?> type)
- Specified by:
ensureTypeIdin interfacePersistenceTypeHandlerManager<D>- Specified by:
ensureTypeIdin interfacePersistenceTypeManager
-
currentTypeId
public final long currentTypeId()
- Specified by:
currentTypeIdin interfacePersistenceTypeManager
-
ensureType
public final Class<?> ensureType(long typeId)
- Specified by:
ensureTypein interfacePersistenceTypeHandlerManager<D>- Specified by:
ensureTypein interfacePersistenceTypeManager
-
registerType
public final boolean registerType(long tid, Class<?> type) throws PersistenceExceptionConsistency- Specified by:
registerTypein interfacePersistenceTypeRegistry- Throws:
PersistenceExceptionConsistency
-
iterateTypeHandlers
public <C extends Consumer<? super PersistenceTypeHandler<D,?>>> C iterateTypeHandlers(C iterator)
- Specified by:
iterateTypeHandlersin interfacePersistenceTypeHandlerIterable<D>
-
iterateLegacyTypeHandlers
public <C extends Consumer<? super PersistenceLegacyTypeHandler<D,?>>> C iterateLegacyTypeHandlers(C iterator)
- Specified by:
iterateLegacyTypeHandlersin interfacePersistenceTypeHandlerIterable<D>
-
initialize
public final PersistenceTypeHandlerManager<D> initialize()
- Specified by:
initializein interfacePersistenceTypeHandlerManager<D>
-
updateCurrentHighestTypeId
public void updateCurrentHighestTypeId(long highestTypeId)
- Specified by:
updateCurrentHighestTypeIdin interfacePersistenceTypeManager
-
update
public void update(PersistenceTypeDictionary typeDictionary, long highestTypeId)
- Specified by:
updatein interfacePersistenceTypeHandlerManager<D>
-
-