Interface PersistenceFoundation<D,F extends PersistenceFoundation<D,?>>
- Type Parameters:
D
-
- All Superinterfaces:
ByteOrderTargeting<F>
,ByteOrderTargeting.Mutable<F>
,Cloneable<PersistenceFoundation<D,F>>
,PersistenceDataTypeHolder<D>
- All Known Subinterfaces:
BinaryPersistenceFoundation<F>
,EmbeddedStorageConnectionFoundation<F>
- All Known Implementing Classes:
BinaryPersistenceFoundation.Default
,EmbeddedStorageConnectionFoundation.Default
,PersistenceFoundation.Default
public interface PersistenceFoundation<D,F extends PersistenceFoundation<D,?>> extends Cloneable<PersistenceFoundation<D,F>>, ByteOrderTargeting.Mutable<F>, PersistenceDataTypeHolder<D>
PersistenceManager
instances.
However, it is more than a mere factory as it keeps track of all component instances used in building
a PersistenceManager
instance. For example managing parts of an application can use it
to access former set ID providers or dictionary providers even after they have been assembled into (and
are intentionally hindden in) a PersistenceManager
instance.
Hence it can be seen as a kind of "master instance" of the built persistence layer or as its "foundation".-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistenceFoundation.Default<D,F extends PersistenceFoundation.Default<D,?>>
Nested classes/interfaces inherited from interface one.microstream.persistence.types.ByteOrderTargeting
ByteOrderTargeting.Mutable<T extends ByteOrderTargeting.Mutable<?>>
-
Method Summary
Methods inherited from interface one.microstream.persistence.types.ByteOrderTargeting
getTargetByteOrder, isByteOrderMismatch
Methods inherited from interface one.microstream.persistence.types.ByteOrderTargeting.Mutable
setTargetByteOrder
Methods inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
dataType
-
Method Details
-
Clone
PersistenceFoundation<D,F> Clone()Description copied from interface:Cloneable
This method creates a new instance of the sameClass
, specified by, of the instance on which this method is called. Whatever initializations required to create a functional new instance are performed.However, this method does NOT create a copy of the current instance. (A common mistake is to confuse cloning with copying: cloning creates a duplicate with only equal initial state while copying creates a duplicate with equal full state. Example: a clone of an adult would not be an identical adult, but just an embryo with equal DNA. A state-wise identical adult would be a copy, not a clone.)
This method is effectively a constructor called on an existing instance. The use case of such a method is to eliminate the need to redundantly pass a second instance or constructor if a clone of an instance is needed.
To indicate the constructor-like character of this method, the pattern of starting the name with a capital letter is applied to this method (and to workaround the botch-job protected method the moronic JDK developers hardcoded in Object.)
-
getInstanceDispatcherLogic
InstanceDispatcherLogic getInstanceDispatcherLogic() -
customTypeHandlers
XMap<Class<?>,PersistenceTypeHandler<D,?>> customTypeHandlers() -
customTypeInstantiators
XMap<Class<?>,PersistenceTypeInstantiator<D,?>> customTypeInstantiators() -
registerCustomTypeHandlers
-
registerCustomTypeHandlers
-
registerCustomTypeHandlers
-
registerCustomTypeHandler
-
registerCustomInstantiator
<T> F registerCustomInstantiator(Class<T> type, PersistenceTypeInstantiator<D,T> typeInstantiator) -
getObjectIdProvider
PersistenceObjectIdProvider getObjectIdProvider() -
getTypeIdProvider
PersistenceTypeIdProvider getTypeIdProvider() -
getStorerCreator
PersistenceStorer.Creator<D> getStorerCreator() -
getRegistererCreator
PersistenceRegisterer.Creator getRegistererCreator() -
getBuilderCreator
PersistenceLoader.Creator<D> getBuilderCreator() -
getPersister
Persister getPersister() -
getPersistenceTarget
PersistenceTarget<D> getPersistenceTarget() -
getPersistenceSource
PersistenceSource<D> getPersistenceSource() -
getObjectRegistry
PersistenceObjectRegistry getObjectRegistry() -
getObjectManager
PersistenceObjectManager<D> getObjectManager() -
getTypeRegistry
PersistenceTypeRegistry getTypeRegistry() -
getTypeManager
PersistenceTypeManager getTypeManager() -
getTypeHandlerManager
PersistenceTypeHandlerManager<D> getTypeHandlerManager() -
getContextDispatcher
PersistenceContextDispatcher<D> getContextDispatcher() -
getTypeHandlerProvider
PersistenceTypeHandlerProvider<D> getTypeHandlerProvider() -
getTypeHandlerEnsurer
PersistenceTypeHandlerEnsurer<D> getTypeHandlerEnsurer() -
getTypeHandlerRegistry
PersistenceTypeHandlerRegistry<D> getTypeHandlerRegistry() -
getTypeDictionaryManager
PersistenceTypeDictionaryManager getTypeDictionaryManager() -
getTypeDictionaryCreator
PersistenceTypeDictionaryCreator getTypeDictionaryCreator() -
getTypeDictionaryProvider
PersistenceTypeDictionaryProvider getTypeDictionaryProvider() -
getTypeDictionaryExporter
PersistenceTypeDictionaryExporter getTypeDictionaryExporter() -
getTypeDictionaryParser
PersistenceTypeDictionaryParser getTypeDictionaryParser() -
getTypeDictionaryLoader
PersistenceTypeDictionaryLoader getTypeDictionaryLoader() -
getTypeDictionaryBuilder
PersistenceTypeDictionaryBuilder getTypeDictionaryBuilder() -
getTypeDictionaryCompiler
PersistenceTypeDictionaryCompiler getTypeDictionaryCompiler() -
getTypeDictionaryAssembler
PersistenceTypeDictionaryAssembler getTypeDictionaryAssembler() -
getTypeDictionaryStorer
PersistenceTypeDictionaryStorer getTypeDictionaryStorer() -
getTypeLineageCreator
PersistenceTypeLineageCreator getTypeLineageCreator() -
getTypeHandlerCreator
PersistenceTypeHandlerCreator<D> getTypeHandlerCreator() -
getCustomTypeHandlerRegistry
PersistenceCustomTypeHandlerRegistry<D> getCustomTypeHandlerRegistry()Creates if required and returns thePersistenceCustomTypeHandlerRegistry
containing all custom tailoredPersistenceTypeHandler
instances for specialized handling of instances.To avoid order problems caused by internal implicit dependencies (e.g. creating the default custom type handlers required
getReferenceFieldEagerEvaluator()
), usecustomTypeHandlers()
or one of theregisterCustomTypeHandler~
methods.- Returns:
- the (on-demand created)
PersistenceCustomTypeHandlerRegistry
instance.
-
customTypeHandlerRegistryEnsurer
PersistenceCustomTypeHandlerRegistryEnsurer<D> customTypeHandlerRegistryEnsurer() -
getCustomTypeHandlerRegistryEnsurer
PersistenceCustomTypeHandlerRegistryEnsurer<D> getCustomTypeHandlerRegistryEnsurer() -
getTypeAnalyzer
PersistenceTypeAnalyzer getTypeAnalyzer() -
getTypeResolver
PersistenceTypeResolver getTypeResolver() -
getClassLoaderProvider
ClassLoaderProvider getClassLoaderProvider() -
getTypeMismatchValidator
PersistenceTypeMismatchValidator<D> getTypeMismatchValidator() -
getTypeDefinitionCreator
PersistenceTypeDefinitionCreator getTypeDefinitionCreator() -
getTypeEvaluatorPersistable
PersistenceTypeEvaluator getTypeEvaluatorPersistable() -
getFieldFixedLengthResolver
PersistenceFieldLengthResolver getFieldFixedLengthResolver() -
getTypeNameMapper
PersistenceTypeNameMapper getTypeNameMapper() -
getReferenceFieldEagerEvaluator
PersistenceEagerStoringFieldEvaluator getReferenceFieldEagerEvaluator() -
getBufferSizeProvider
BufferSizeProviderIncremental getBufferSizeProvider() -
getFieldEvaluatorPersistable
PersistenceFieldEvaluator getFieldEvaluatorPersistable() -
getFieldEvaluatorPersister
PersistenceFieldEvaluator getFieldEvaluatorPersister() -
getFieldEvaluatorEnum
PersistenceFieldEvaluator getFieldEvaluatorEnum() -
getFieldEvaluatorCollection
PersistenceFieldEvaluator getFieldEvaluatorCollection() -
getRootResolverProvider
PersistenceRootResolverProvider getRootResolverProvider() -
getRootReferenceProvider
PersistenceRootReferenceProvider<D> getRootReferenceProvider() -
getRootsProvider
PersistenceRootsProvider<D> getRootsProvider() -
getUnreachableTypeHandlerCreator
PersistenceUnreachableTypeHandlerCreator<D> getUnreachableTypeHandlerCreator() -
getLegacyTypeMapper
PersistenceLegacyTypeMapper<D> getLegacyTypeMapper() -
getRefactoringMappingProvider
PersistenceRefactoringMappingProvider getRefactoringMappingProvider() -
getTypeDescriptionResolverProvider
PersistenceTypeDescriptionResolverProvider getTypeDescriptionResolverProvider() -
getRefactoringLegacyTypeIdentifierBuilders
XEnum<? extends PersistenceRefactoringTypeIdentifierBuilder> getRefactoringLegacyTypeIdentifierBuilders() -
getRefactoringLegacyMemberIdentifierBuilders
XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> getRefactoringLegacyMemberIdentifierBuilders() -
getRefactoringCurrentMemberIdentifierBuilders
XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> getRefactoringCurrentMemberIdentifierBuilders() -
getTypeSimilarity
TypeMapping<Float> getTypeSimilarity() -
getLegacyMemberMatchingProvider
PersistenceMemberMatchingProvider getLegacyMemberMatchingProvider() -
getLegacyTypeMappingResultor
PersistenceLegacyTypeMappingResultor<D> getLegacyTypeMappingResultor() -
getLegacyTypeHandlerCreator
PersistenceLegacyTypeHandlerCreator<D> getLegacyTypeHandlerCreator() -
getLegacyTypeHandlingListener
PersistenceLegacyTypeHandlingListener<D> getLegacyTypeHandlingListener() -
getSizedArrayLengthController
PersistenceSizedArrayLengthController getSizedArrayLengthController() -
getLambdaTypeRecognizer
LambdaTypeRecognizer getLambdaTypeRecognizer() -
getAbstractTypeHandlerSearcher
PersistenceAbstractTypeHandlerSearcher<D> getAbstractTypeHandlerSearcher() -
getInstantiator
PersistenceInstantiator<D> getInstantiator() -
getInstantiatorProvider
PersistenceTypeInstantiatorProvider<D> getInstantiatorProvider() -
setObjectRegistry
-
setTypeRegistry
-
setInstanceDispatcher
-
setObjectManager
-
setStorerCreator
-
setTypeHandlerManager
-
setContextDispatcher
-
setTypeManager
-
setTypeHandlerCreatorLookup
-
setTypeHandlerCreator
-
setTypeAnalyzer
-
setTypeResolver
-
setClassLoaderProvider
-
setTypeHandlerRegistry
-
setTypeHandlerProvider
-
setRegistererCreator
-
setBuilderCreator
-
setPersister
-
setPersistenceTarget
-
setPersistenceSource
-
setTypeDictionaryManager
-
setTypeDictionaryCreator
-
setTypeDictionaryProvider
-
setTypeDictionaryExporter
-
setTypeDictionaryParser
-
setTypeDictionaryAssembler
-
setTypeDictionaryLoader
-
setTypeDictionaryBuilder
-
setTypeDictionaryCompiler
-
setTypeDictionaryStorer
-
setTypeDictionaryIoHandling
<H extends PersistenceTypeDictionaryLoader & PersistenceTypeDictionaryStorer> F setTypeDictionaryIoHandling(H typeDictionaryStorage) -
setTypeDictionaryIoHandler
-
setTypeLineageCreator
-
setTypeMismatchValidator
-
setTypeDescriptionBuilder
-
setTypeEvaluatorPersistable
-
setBufferSizeProvider
-
setFieldFixedLengthResolver
-
setTypeNameMapper
-
setFieldEvaluatorPersistable
-
setFieldEvaluatorPersister
-
setFieldEvaluatorEnum
-
setFieldEvaluatorCollection
-
setReferenceFieldEagerEvaluator
-
setRootResolverProvider
-
setRootReferenceProvider
-
setLambdaTypeRecognizer
-
setAbstractTypeHandlerSearcher
F setAbstractTypeHandlerSearcher(PersistenceAbstractTypeHandlerSearcher<D> abstractTypeHandlerSearcher) -
setRootsProvider
-
setUnreachableTypeHandlerCreator
F setUnreachableTypeHandlerCreator(PersistenceUnreachableTypeHandlerCreator<D> unreachableTypeHandlerCreator) -
setLegacyTypeMapper
-
setTypeSimilarity
-
setRefactoringMappingProvider
-
setTypeDescriptionResolverProvider
F setTypeDescriptionResolverProvider(PersistenceTypeDescriptionResolverProvider typeDescriptionResolverProvider) -
setRefactoringLegacyTypeIdentifierBuilders
F setRefactoringLegacyTypeIdentifierBuilders(XEnum<? extends PersistenceRefactoringTypeIdentifierBuilder> typeIdentifierBuilders) -
setRefactoringLegacyMemberIdentifierBuilders
F setRefactoringLegacyMemberIdentifierBuilders(XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> memberIdentifierBuilders) -
setRefactoringCurrentMemberIdentifierBuilders
F setRefactoringCurrentMemberIdentifierBuilders(XEnum<? extends PersistenceRefactoringMemberIdentifierBuilder> memberIdentifierBuilders) -
setLegacyMemberMatchingProvider
-
setLegacyTypeMappingResultor
-
setLegacyTypeHandlerCreator
-
setLegacyTypeHandlingListener
F setLegacyTypeHandlingListener(PersistenceLegacyTypeHandlingListener<D> legacyTypeHandlingListener) -
setPersistenceChannel
-
setSizedArrayLengthController
-
setObjectIdProvider
-
setTypeIdProvider
-
setIdProvider
-
setInstantiator
-
setInstantiatorProvider
-
executeTypeHandlerRegistration
Executes the passedPersistenceTypeHandlerRegistration
logic while supplying this instance'sPersistenceCustomTypeHandlerRegistry
andPersistenceSizedArrayLengthController
instances. The passed instance itself will not be referenced after the method exits.- Parameters:
typeHandlerRegistration
- thePersistenceTypeHandlerRegistration
to be executed.- Returns:
- this to allow method chaining.
-
setCustomTypeHandlerRegistryEnsurer
F setCustomTypeHandlerRegistryEnsurer(PersistenceCustomTypeHandlerRegistryEnsurer<D> customTypeHandlerRegistryEnsurer) -
createPersistenceManager
PersistenceManager<D> createPersistenceManager() -
New
-