Class PersistenceTypeHandlerProviderCreating<D>
- java.lang.Object
-
- one.microstream.persistence.internal.PersistenceTypeHandlerProviderCreating<D>
-
- All Implemented Interfaces:
PersistenceTypeHandlerEnsurer<D>
,PersistenceTypeHandlerIterable<D>
,PersistenceTypeHandlerProvider<D>
,PersistenceTypeIdLookup
,PersistenceTypeLookup
,PersistenceTypeManager
,PersistenceTypeRegistry
public final class PersistenceTypeHandlerProviderCreating<D> extends Object implements PersistenceTypeHandlerProvider<D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandlerEnsurer
PersistenceTypeHandlerEnsurer.Default<D>
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeManager
PersistenceTypeManager.Default
-
-
Constructor Summary
Constructors Constructor Description PersistenceTypeHandlerProviderCreating()
-
Method Summary
-
-
-
Method Detail
-
New
public static <D> PersistenceTypeHandlerProviderCreating<D> New(PersistenceTypeManager typeManager, PersistenceTypeHandlerEnsurer<D> typeHandlerEnsurer)
-
provideTypeHandler
public final <T> PersistenceTypeHandler<D,T> provideTypeHandler(Class<T> type)
- Specified by:
provideTypeHandler
in interfacePersistenceTypeHandlerProvider<D>
-
ensureTypeId
public final long ensureTypeId(Class<?> type)
- Specified by:
ensureTypeId
in interfacePersistenceTypeManager
-
ensureType
public final Class<?> ensureType(long typeId)
- Specified by:
ensureType
in interfacePersistenceTypeManager
-
currentTypeId
public final long currentTypeId()
- Specified by:
currentTypeId
in interfacePersistenceTypeManager
-
registerType
public final boolean registerType(long tid, Class<?> type) throws PersistenceExceptionConsistency
- Specified by:
registerType
in interfacePersistenceTypeRegistry
- Throws:
PersistenceExceptionConsistency
-
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 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
-
updateCurrentHighestTypeId
public final void updateCurrentHighestTypeId(long highestTypeId)
- Specified by:
updateCurrentHighestTypeId
in interfacePersistenceTypeManager
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<D,T> ensureTypeHandler(Class<T> type) throws PersistenceExceptionTypeNotPersistable
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerEnsurer<D>
- Specified by:
ensureTypeHandler
in interfacePersistenceTypeHandlerProvider<D>
- Throws:
PersistenceExceptionTypeNotPersistable
-
iterateTypeHandlers
public final <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>
-
-