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