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>
-
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 Details
-
validateTypeHandler
- Specified by:
validateTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
typeDictionary
- Specified by:
typeDictionary
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandler
public <T> PersistenceTypeHandler<D,? super T> ensureTypeHandler(PersistenceTypeDefinition typeDefinition)- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
ensureLegacyTypeHandler
public <T> PersistenceLegacyTypeHandler<D,? super T> ensureLegacyTypeHandler(PersistenceTypeDefinition legacyTypeDefinition, PersistenceTypeHandler<D,? super T> currentTypeHandler)- Specified by:
ensureLegacyTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandlersByTypeIds
- Specified by:
ensureTypeHandlersByTypeIds
in interfacePersistenceTypeHandlerManager<D>
-
ensureTypeHandlers
- Specified by:
ensureTypeHandlers
in interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
lookupTypeHandler
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerManager<D>
-
lookupTypeId
- Specified by:
lookupTypeId
in interfacePersistenceTypeIdLookup
- Specified by:
lookupTypeId
in interfacePersistenceTypeLookup
-
lookupType
- 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 <T> boolean registerTypeHandler(Class<T> type, PersistenceTypeHandler<D,? super T> typeHandler)- Specified by:
registerTypeHandler
in interfacePersistenceTypeHandlerRegistry<D>
-
registerTypeHandlers
public <T> long registerTypeHandlers(Iterable<? extends PersistenceTypeHandler<D,T>> typeHandlers)- Specified by:
registerTypeHandlers
in interfacePersistenceTypeHandlerRegistry<D>
-
registerTypeHandler
- Specified by:
registerTypeHandler
in interfacePersistenceTypeHandlerRegistry<D>
-
checkForPendingRootInstances
public void checkForPendingRootInstances()- Specified by:
checkForPendingRootInstances
in interfacePersistenceTypeHandlerManager<D>
-
checkForPendingRootsStoring
- 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
- Specified by:
ensureTypeId
in interfacePersistenceTypeHandlerManager<D>
- Specified by:
ensureTypeId
in interfacePersistenceTypeManager
-
currentTypeId
public final long currentTypeId()- Specified by:
currentTypeId
in interfacePersistenceTypeManager
-
ensureType
- Specified by:
ensureType
in interfacePersistenceTypeHandlerManager<D>
- Specified by:
ensureType
in interfacePersistenceTypeManager
-
registerType
- 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
- Specified by:
initialize
in interfacePersistenceTypeHandlerManager<D>
-
updateCurrentHighestTypeId
public void updateCurrentHighestTypeId(long highestTypeId)- Specified by:
updateCurrentHighestTypeId
in interfacePersistenceTypeManager
-
update
- Specified by:
update
in interfacePersistenceTypeHandlerManager<D>
-
iteratePerIds
- Specified by:
iteratePerIds
in interfacePersistenceTypeRegistry
-