Class PersistenceTypeHandlerProviderCreating<D>
java.lang.Object
one.microstream.persistence.types.PersistenceDataTypeHolder.Default<D>
one.microstream.persistence.internal.PersistenceTypeHandlerProviderCreating<D>
- All Implemented Interfaces:
PersistenceDataTypeHolder<D>,PersistenceTypeHandlerEnsurer<D>,PersistenceTypeHandlerIterable<D>,PersistenceTypeHandlerProvider<D>,PersistenceTypeIdLookup,PersistenceTypeLookup,PersistenceTypeManager,PersistenceTypeRegistry
public final class PersistenceTypeHandlerProviderCreating<D> extends PersistenceDataTypeHolder.Default<D> implements PersistenceTypeHandlerProvider<D>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
PersistenceDataTypeHolder.Default<D>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 -
Method Summary
Methods inherited from class one.microstream.persistence.types.PersistenceDataTypeHolder.Default
dataTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
dataType
-
Method Details
-
New
public static <D> PersistenceTypeHandlerProviderCreating<D> New(Class<D> dataType, PersistenceTypeManager typeManager, PersistenceTypeHandlerEnsurer<D> typeHandlerEnsurer) -
provideTypeHandler
- Specified by:
provideTypeHandlerin interfacePersistenceTypeHandlerProvider<D>
-
ensureTypeId
- Specified by:
ensureTypeIdin interfacePersistenceTypeManager
-
ensureType
- Specified by:
ensureTypein interfacePersistenceTypeManager
-
currentTypeId
public final long currentTypeId()- Specified by:
currentTypeIdin interfacePersistenceTypeManager
-
registerType
- Specified by:
registerTypein interfacePersistenceTypeRegistry- Throws:
PersistenceExceptionConsistency
-
lookupTypeId
- Specified by:
lookupTypeIdin interfacePersistenceTypeIdLookup- Specified by:
lookupTypeIdin interfacePersistenceTypeLookup
-
lookupType
- Specified by:
lookupTypein interfacePersistenceTypeLookup
-
validateTypeMapping
public boolean validateTypeMapping(long typeId, Class<?> type) throws PersistenceExceptionConsistency- Specified by:
validateTypeMappingin interfacePersistenceTypeLookup- Throws:
PersistenceExceptionConsistency
-
validateTypeMappings
public boolean validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings) throws PersistenceExceptionConsistency- Specified by:
validateTypeMappingsin interfacePersistenceTypeLookup- Throws:
PersistenceExceptionConsistency
-
registerTypes
public boolean registerTypes(Iterable<? extends PersistenceTypeLink> types) throws PersistenceExceptionConsistency- Specified by:
registerTypesin interfacePersistenceTypeRegistry- Throws:
PersistenceExceptionConsistency
-
updateCurrentHighestTypeId
public final void updateCurrentHighestTypeId(long highestTypeId)- Specified by:
updateCurrentHighestTypeIdin interfacePersistenceTypeManager
-
ensureTypeHandler
public final <T> PersistenceTypeHandler<D,? super T> ensureTypeHandler(Class<T> type) throws PersistenceExceptionTypeNotPersistable- Specified by:
ensureTypeHandlerin interfacePersistenceTypeHandlerEnsurer<D>- Specified by:
ensureTypeHandlerin interfacePersistenceTypeHandlerProvider<D>- Throws:
PersistenceExceptionTypeNotPersistable
-
iterateTypeHandlers
public final <C extends Consumer<? super PersistenceTypeHandler<D, ?>>> C iterateTypeHandlers(C iterator)- Specified by:
iterateTypeHandlersin interfacePersistenceTypeHandlerIterable<D>
-
iterateLegacyTypeHandlers
public <C extends Consumer<? super PersistenceLegacyTypeHandler<D, ?>>> C iterateLegacyTypeHandlers(C iterator)- Specified by:
iterateLegacyTypeHandlersin interfacePersistenceTypeHandlerIterable<D>
-
iterateAllTypeHandlers
public <C extends Consumer<? super PersistenceTypeHandler<D, ?>>> C iterateAllTypeHandlers(C iterator)- Specified by:
iterateAllTypeHandlersin interfacePersistenceTypeHandlerIterable<D>
-