Package org.springframework.data.mongodb.core.convert
@NullMarked
package org.springframework.data.mongodb.core.convert
Spring Data MongoDB specific converter infrastructure.
-
ClassDescriptionBase class for
MongoConverterimplementations.Used to resolve associations annotated withDBRef.Callback interface to be used in conjunction withDbRefResolver.ADbRefResolverthat resolvesDBRefs by delegating to aDbRefResolverCallbackthan is able to generate lazy loading proxies.Default implementation ofMongoTypeMapperallowing configuration of the key to lookup and store type information inDocument.TypeAliasAccessorto store aliases in aDocument.ReferenceResolverimplementation that uses a givenReferenceLookupDelegateto load and convert entity associations expressed via apersitent property.The source object to resolve document references upon.JsonSchemaMapperallows mapping a givenDocumentcontaining a $jsonSchema to the fields of a given domain type.Allows direct interaction with the underlyingLazyLoadingInterceptor.ProxyFactoryto create a proxy forPersistentProperty.getType()to resolve a reference lazily.MongoConverterthat uses aMappingContextto do sophisticated mapping of domain objects toDocument.Conversion context defining an interface for graph-traversal-based conversion of documents.Conversion context holding references to simpleMappingMongoConverter.DefaultConversionContext.ValueConverterandMappingMongoConverter.DefaultConversionContext.ContainerValueConverter.ValueConversionContextthat allows to delegate read/write to an underlyingMongoConverter.TheMongoConversionContext.OperatorContextprovides access to the actual conversion intent like a write operation or a query operator such as $gte.Central Mongo specific converter interface which combinesMongoWriterandEntityReader.Value object to capture custom conversion.Strategy to representBigDecimalandBigIntegervalues in MongoDB.MongoCustomConversions.MongoConverterConfigurationAdapterencapsulates creation ofCustomConversions.ConverterConfigurationwith MongoDB specifics.ReferenceLoaderimplementation using aMongoDatabaseFactoryto obtain rawdocumentsfor linked entities via aReferenceLoader.DocumentReferenceQuery.Mapper fromExampleto a queryDocument.JsonSchemaMapperimplementation using the conversion and mapping infrastructure for mapping fields to the provided domain type.Mongo-specificTypeMapperexposing thatDocuments might contain a type key.MongoValueConverter<S,T> MongoDB-specificPropertyValueConverterextension.MongoWriter<T>A MongoWriter is responsible for converting an object of type T to the native MongoDB representation Document.No-OperationDBRefresolver throwingUnsupportedOperationExceptionwhen attempting to resolve database references.A path of objects nested into each other.A helper class to encapsulate any modifications of a Query object before it gets submitted to the database.Converter to skip all properties after an association property was rendered.Value object to represent a field and its meta-information.Extension ofQueryMapper.Fieldto be backed with mapping metadata.TheReferenceLoaderobtains rawdocumentsfor linked entities via aReferenceLoader.DocumentReferenceQuery.TheReferenceLoader.DocumentReferenceQuerydefines the criteria by whichdocumentsshould be matched applying potentially given order criteria.A dedicatedReferenceLoader.DocumentReferenceQuerythat will not match any documents.A common delegate forReferenceResolverimplementations to resolve a reference to one/many target documents that are converted to entities.TheReferenceResolverallows to load and convert linked entities.Domain type conversion callback interface that allows to read thesourceobject into a mapped object.ReferenceResolver.ReferenceCollectionis a value object that contains information about the target database and collection name of an association.A subclass ofQueryMapperthat retains type information on the mongo types.