Class PersistenceTypeRegistry.Default
java.lang.Object
one.microstream.persistence.types.PersistenceTypeRegistry.Default
- All Implemented Interfaces:
PersistenceTypeIdLookup,PersistenceTypeLookup,PersistenceTypeRegistry
- Enclosing interface:
- PersistenceTypeRegistry
public static final class PersistenceTypeRegistry.Default extends Object implements PersistenceTypeRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeRegistry
PersistenceTypeRegistry.Default -
Method Summary
Modifier and Type Method Description <T> Class<T>lookupType(long typeId)longlookupTypeId(Class<?> type)booleanregisterType(long typeId, Class<?> type)booleanregisterTypes(Iterable<? extends PersistenceTypeLink> types)booleanvalidateTypeMapping(long typeId, Class<?> type)booleanvalidateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings)
-
Method Details
-
lookupTypeId
- Specified by:
lookupTypeIdin interfacePersistenceTypeIdLookup- Specified by:
lookupTypeIdin interfacePersistenceTypeLookup
-
lookupType
- Specified by:
lookupTypein interfacePersistenceTypeLookup
-
validateTypeMapping
public final boolean validateTypeMapping(long typeId, Class<?> type) throws PersistenceExceptionConsistency- Specified by:
validateTypeMappingin interfacePersistenceTypeLookup- Throws:
PersistenceExceptionConsistency
-
validateTypeMappings
public final boolean validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings) throws PersistenceExceptionConsistency- Specified by:
validateTypeMappingsin interfacePersistenceTypeLookup- Throws:
PersistenceExceptionConsistency
-
registerType
public final boolean registerType(long typeId, Class<?> type) throws PersistenceExceptionConsistency- Specified by:
registerTypein interfacePersistenceTypeRegistry- Throws:
PersistenceExceptionConsistency
-
registerTypes
public final boolean registerTypes(Iterable<? extends PersistenceTypeLink> types) throws PersistenceExceptionConsistency- Specified by:
registerTypesin interfacePersistenceTypeRegistry- Throws:
PersistenceExceptionConsistency
-