Class PersistenceTypeHandlerRegistry.Default<D>
java.lang.Object
one.microstream.persistence.types.PersistenceTypeHandlerRegistry.Default<D>
- All Implemented Interfaces:
PersistenceTypeHandlerIterable<D>
,PersistenceTypeHandlerLookup<D>
,PersistenceTypeHandlerRegistry<D>
,PersistenceTypeIdLookup
,PersistenceTypeLookup
,PersistenceTypeRegistry
- Enclosing interface:
- PersistenceTypeHandlerRegistry<D>
public static final class PersistenceTypeHandlerRegistry.Default<D> extends Object implements PersistenceTypeHandlerRegistry<D>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerRegistry
PersistenceTypeHandlerRegistry.Default<D>
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
lookupTypeId
- Specified by:
lookupTypeId
in interfacePersistenceTypeIdLookup
- Specified by:
lookupTypeId
in interfacePersistenceTypeLookup
-
lookupType
- Specified by:
lookupType
in interfacePersistenceTypeLookup
-
lookupTypeHandler
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
-
lookupTypeHandler
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
-
lookupTypeHandler
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
-
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
-
registerType
- Specified by:
registerType
in interfacePersistenceTypeRegistry
- 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>
-
registerTypeHandler
- Specified by:
registerTypeHandler
in interfacePersistenceTypeHandlerRegistry<D>
-
registerTypeHandlers
public <T> long registerTypeHandlers(Iterable<? extends PersistenceTypeHandler<D,T>> typeHandlers)- Specified by:
registerTypeHandlers
in interfacePersistenceTypeHandlerRegistry<D>
-
registerLegacyTypeHandler
- Specified by:
registerLegacyTypeHandler
in interfacePersistenceTypeHandlerRegistry<D>
-
clear
public void clear() -
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>
-
iterateAllTypeHandlers
public <C extends Consumer<? super PersistenceTypeHandler<D, ?>>> C iterateAllTypeHandlers(C iterator)- Specified by:
iterateAllTypeHandlers
in interfacePersistenceTypeHandlerIterable<D>
-