Class PersistenceTypeManager.Default
java.lang.Object
one.microstream.persistence.types.PersistenceTypeManager.Default
- All Implemented Interfaces:
PersistenceTypeIdLookup
,PersistenceTypeLookup
,PersistenceTypeManager
,PersistenceTypeRegistry
- Enclosing interface:
- PersistenceTypeManager
public static final class PersistenceTypeManager.Default extends Object implements PersistenceTypeManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeManager
PersistenceTypeManager.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description long
currentTypeId()
Class<?>
ensureType(long typeId)
long
ensureTypeId(Class<?> type)
<T> Class<T>
lookupType(long tid)
long
lookupTypeId(Class<?> type)
boolean
registerType(long tid, Class<?> type)
boolean
registerTypes(Iterable<? extends PersistenceTypeLink> types)
void
updateCurrentHighestTypeId(long highestTypeId)
boolean
validateTypeMapping(long typeId, Class<?> type)
boolean
validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings)
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
lookupTypeId
- Specified by:
lookupTypeId
in interfacePersistenceTypeIdLookup
- Specified by:
lookupTypeId
in interfacePersistenceTypeLookup
-
lookupType
- Specified by:
lookupType
in interfacePersistenceTypeLookup
-
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
-
registerTypes
public boolean registerTypes(Iterable<? extends PersistenceTypeLink> types) throws PersistenceExceptionConsistency- Specified by:
registerTypes
in interfacePersistenceTypeRegistry
- Throws:
PersistenceExceptionConsistency
-
registerType
- Specified by:
registerType
in interfacePersistenceTypeRegistry
-
ensureTypeId
- Specified by:
ensureTypeId
in interfacePersistenceTypeManager
-
currentTypeId
public final long currentTypeId()- Specified by:
currentTypeId
in interfacePersistenceTypeManager
-
updateCurrentHighestTypeId
public void updateCurrentHighestTypeId(long highestTypeId)- Specified by:
updateCurrentHighestTypeId
in interfacePersistenceTypeManager
-
ensureType
- Specified by:
ensureType
in interfacePersistenceTypeManager
-