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
-
-
-
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<D,T> lookupTypeHandler(Class<T> type)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
-
lookupTypeHandler
public PersistenceTypeHandler<D,?> lookupTypeHandler(long typeId)
- Specified by:
lookupTypeHandler
in interfacePersistenceTypeHandlerLookup<D>
-
lookupTypeHandler
public <T> PersistenceTypeHandler<D,T> lookupTypeHandler(T instance)
- 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
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<D,?> typeHandler)
- Specified by:
registerTypeHandler
in interfacePersistenceTypeHandlerRegistry<D>
-
registerLegacyTypeHandler
public boolean registerLegacyTypeHandler(PersistenceLegacyTypeHandler<D,?> legacyTypeHandler)
- 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>
-
-