Package org.springframework.data.mongodb.core.convert
@NonNullApi
package org.springframework.data.mongodb.core.convert
Spring Data MongoDB specific converter infrastructure.
-
ClassDescriptionBase class for
MongoConverter
implementations.Used to resolve associations annotated withDBRef
.Callback interface to be used in conjunction withDbRefResolver
.ADbRefResolver
that resolvesDBRef
s by delegating to aDbRefResolverCallback
than is able to generate lazy loading proxies.Default implementation ofMongoTypeMapper
allowing configuration of the key to lookup and store type information inDocument
.TypeAliasAccessor
to store aliases in aDocument
.ReferenceResolver
implementation that uses a givenReferenceLookupDelegate
to load and convert entity associations expressed via apersitent property
.The source object to resolve document references upon.JsonSchemaMapper
allows mapping a givenDocument
containing a $jsonSchema to the fields of a given domain type.Allows direct interaction with the underlyingLazyLoadingInterceptor
.ProxyFactory
to create a proxy forPersistentProperty.getType()
to resolve a reference lazily.MongoConverter
that uses aMappingContext
to 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.ValueConverter
andMappingMongoConverter.DefaultConversionContext.ContainerValueConverter
.ValueConversionContext
that allows to delegate read/write to an underlyingMongoConverter
.Central Mongo specific converter interface which combinesMongoWriter
andEntityReader
.Value object to capture custom conversion.MongoCustomConversions.MongoConverterConfigurationAdapter
encapsulates creation ofCustomConversions.ConverterConfiguration
with MongoDB specifics.ReferenceLoader
implementation using aMongoDatabaseFactory
to obtain rawdocuments
for linked entities via aReferenceLoader.DocumentReferenceQuery
.Mapper fromExample
to a queryDocument
.JsonSchemaMapper
implementation using the conversion and mapping infrastructure for mapping fields to the provided domain type.Mongo-specificTypeMapper
exposing thatDocument
s might contain a type key.MongoValueConverter<S,T> MongoDB-specificPropertyValueConverter
extension.MongoWriter<T>A MongoWriter is responsible for converting an object of type T to the native MongoDB representation Document.No-OperationDBRef
resolver throwingUnsupportedOperationException
when attempting to resolve database references.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.Field
to be backed with mapping metadata.TheReferenceLoader
obtains rawdocuments
for linked entities via aReferenceLoader.DocumentReferenceQuery
.TheReferenceLoader.DocumentReferenceQuery
defines the criteria by whichdocuments
should be matched applying potentially given order criteria.A dedicatedReferenceLoader.DocumentReferenceQuery
that will not match any documents.A common delegate forReferenceResolver
implementations to resolve a reference to one/many target documents that are converted to entities.TheReferenceResolver
allows to load and convert linked entities.Domain type conversion callback interface that allows to read thesource
object into a mapped object.ReferenceResolver.ReferenceCollection
is a value object that contains information about the target database and collection name of an association.A subclass ofQueryMapper
that retains type information on the mongo types.