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
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description <T> Class<T>
lookupType(long typeId)
long
lookupTypeId(Class<?> type)
boolean
registerType(long typeId, Class<?> type)
boolean
registerTypes(Iterable<? extends PersistenceTypeLink> types)
boolean
validateTypeMapping(long typeId, Class<?> type)
boolean
validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings)
-
-
-
Method Detail
-
lookupTypeId
public final long lookupTypeId(Class<?> type)
- Specified by:
lookupTypeId
in interfacePersistenceTypeIdLookup
- Specified by:
lookupTypeId
in interfacePersistenceTypeLookup
-
lookupType
public final <T> Class<T> lookupType(long typeId)
- Specified by:
lookupType
in interfacePersistenceTypeLookup
-
validateTypeMapping
public final boolean validateTypeMapping(long typeId, Class<?> type) throws PersistenceExceptionConsistency
- Specified by:
validateTypeMapping
in interfacePersistenceTypeLookup
- Throws:
PersistenceExceptionConsistency
-
validateTypeMappings
public final boolean validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings) throws PersistenceExceptionConsistency
- Specified by:
validateTypeMappings
in interfacePersistenceTypeLookup
- Throws:
PersistenceExceptionConsistency
-
registerType
public final boolean registerType(long typeId, Class<?> type) throws PersistenceExceptionConsistency
- Specified by:
registerType
in interfacePersistenceTypeRegistry
- Throws:
PersistenceExceptionConsistency
-
registerTypes
public final boolean registerTypes(Iterable<? extends PersistenceTypeLink> types) throws PersistenceExceptionConsistency
- Specified by:
registerTypes
in interfacePersistenceTypeRegistry
- Throws:
PersistenceExceptionConsistency
-
-