Uses of Interface
org.springframework.data.mongodb.core.mapping.MongoPersistentProperty
Packages that use MongoPersistentProperty
Package
Description
MongoDB core support.
Support for the MongoDB aggregation framework.
Spring Data MongoDB specific converter infrastructure.
Converters integrating with
explicit encryption
mechanism of Client-Side Field Level Encryption.
Infrastructure for explicit
encryption mechanism of Client-Side Field Level Encryption.
Support for MongoDB document indexing.
Infrastructure for the MongoDB document-to-object mapping subsystem.
Query derivation mechanism for MongoDB specific repositories.
-
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core that return MongoPersistentPropertyModifier and TypeMethodDescriptionMongoJsonSchemaCreator.JsonSchemaPropertyContext.getProperty()
The current property.Methods in org.springframework.data.mongodb.core with parameters of type MongoPersistentPropertyModifier and TypeMethodDescription<T> MongoPersistentEntity
<T> MongoJsonSchemaCreator.JsonSchemaPropertyContext.resolveEntity
(MongoPersistentProperty property) Obtain theMongoPersistentEntity
for a given property. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.aggregation
Constructor parameters in org.springframework.data.mongodb.core.aggregation with type arguments of type MongoPersistentPropertyModifierConstructorDescriptionRelaxedTypeBasedAggregationOperationContext
(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Deprecated.Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
.TypeBasedAggregationOperationContext
(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
.TypeBasedAggregationOperationContext
(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper, FieldLookupPolicy lookupPolicy) Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.convert
Subinterfaces with type arguments of type MongoPersistentProperty in org.springframework.data.mongodb.core.convertModifier and TypeInterfaceDescriptioninterface
Central Mongo specific converter interface which combinesMongoWriter
andEntityReader
.Classes in org.springframework.data.mongodb.core.convert that implement interfaces with type arguments of type MongoPersistentPropertyModifier and TypeClassDescriptionclass
ValueConversionContext
that allows to delegate read/write to an underlyingMongoConverter
.protected static class
Converter to skip all properties after an association property was rendered.Fields in org.springframework.data.mongodb.core.convert with type parameters of type MongoPersistentPropertyModifier and TypeFieldDescriptionprotected final MappingContext
<? extends MongoPersistentEntity<?>, MongoPersistentProperty> MappingMongoConverter.mappingContext
Methods in org.springframework.data.mongodb.core.convert that return MongoPersistentPropertyModifier and TypeMethodDescriptionMongoConversionContext.getProperty()
@Nullable MongoPersistentProperty
QueryMapper.Field.getProperty()
Returns the underlyingMongoPersistentProperty
backing the field.QueryMapper.MetadataBackedField.getProperty()
Methods in org.springframework.data.mongodb.core.convert that return types with arguments of type MongoPersistentPropertyModifier and TypeMethodDescription@Nullable Association
<MongoPersistentProperty> QueryMapper.Field.getAssociation()
@Nullable Association
<MongoPersistentProperty> QueryMapper.MetadataBackedField.getAssociation()
protected Converter
<MongoPersistentProperty, String> QueryMapper.MetadataBackedField.getAssociationConverter()
Return theConverter
to use for creating the mapped key of an association.MappingContext
<? extends MongoPersistentEntity<?>, MongoPersistentProperty> MappingMongoConverter.getMappingContext()
MappingContext
<? extends MongoPersistentEntity<?>, MongoPersistentProperty> QueryMapper.getMappingContext()
protected MappingContext
<? extends MongoPersistentEntity<?>, MongoPersistentProperty> QueryMapper.MetadataBackedField.getMappingContext()
protected @Nullable PersistentPropertyPath
<MongoPersistentProperty> QueryMapper.MetadataBackedField.getPath()
protected Converter
<MongoPersistentProperty, String> QueryMapper.MetadataBackedField.getPropertyConverter()
Return theConverter
to be used to created the mapped key.Methods in org.springframework.data.mongodb.core.convert with parameters of type MongoPersistentPropertyModifier and TypeMethodDescription@Nullable String
QueryMapper.AssociationConverter.convert
(MongoPersistentProperty source) protected @Nullable Object
QueryMapper.convertAssociation
(@Nullable Object source, @Nullable MongoPersistentProperty property) Converts the given source assuming it's actually an association to another object.MappingMongoConverter.createCollection
(Collection<?> collection, MongoPersistentProperty property) Writes the givenCollection
using the givenMongoPersistentProperty
information.protected com.mongodb.DBRef
MappingMongoConverter.createDBRef
(Object target, @Nullable MongoPersistentProperty property) LazyLoadingProxyFactory.createLazyLoadingProxy
(MongoPersistentProperty property, DbRefResolverCallback callback, @Nullable Object source) protected org.bson.conversions.Bson
MappingMongoConverter.createMap
(Map<Object, Object> map, MongoPersistentProperty property) Writes the givenMap
using the givenMongoPersistentProperty
information.MappingMongoConverter.ConversionContext.forProperty
(MongoPersistentProperty property) Obtain aMappingMongoConverter.ConversionContext
for the givenMongoPersistentProperty
.protected boolean
DefaultReferenceResolver.isLazyReference
(MongoPersistentProperty property) Check if the association expressed by the givenproperty
should be resolved lazily.DbRefProxyHandler.populateId
(MongoPersistentProperty property, @Nullable com.mongodb.DBRef source, Object proxy) @Nullable Object
ReferenceLookupDelegate.readReference
(MongoPersistentProperty property, Object source, org.springframework.data.mongodb.core.convert.ReferenceLookupDelegate.LookupFunction lookupFunction, ReferenceResolver.MongoEntityReader entityReader) Read the reference expressed by the given property.@Nullable Object
DbRefResolverCallback.resolve
(MongoPersistentProperty property) Resolve the final object for the givenMongoPersistentProperty
.@Nullable Object
DbRefResolver.resolveDbRef
(MongoPersistentProperty property, @Nullable com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler proxyHandler) Resolves the givenDBRef
into an object of the givenMongoPersistentProperty
's type.@Nullable Object
DefaultDbRefResolver.resolveDbRef
(MongoPersistentProperty property, @Nullable com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler handler) @Nullable Object
NoOpDbRefResolver.resolveDbRef
(MongoPersistentProperty property, @Nullable com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler proxyHandler) @Nullable Object
DefaultReferenceResolver.resolveReference
(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader) @Nullable Object
NoOpDbRefResolver.resolveReference
(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader) @Nullable Object
ReferenceResolver.resolveReference
(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader) Resolve the association defined via the given property from a given source value.com.mongodb.DBRef
MappingMongoConverter.toDBRef
(Object object, @Nullable MongoPersistentProperty referringProperty) com.mongodb.DBRef
MongoWriter.toDBRef
(Object object, @Nullable MongoPersistentProperty referringProperty) Creates aDBRef
to refer to the given object.MappingMongoConverter.toDocumentPointer
(Object source, @Nullable MongoPersistentProperty referringProperty) default DocumentPointer
<?> MongoWriter.toDocumentPointer
(Object source, @Nullable MongoPersistentProperty referringProperty) Creates a theDocumentPointer
representing the link to another entity.Method parameters in org.springframework.data.mongodb.core.convert with type arguments of type MongoPersistentPropertyModifier and TypeMethodDescriptionMongoCustomConversions.MongoConverterConfigurationAdapter.configurePropertyConversions
(Consumer<PropertyValueConverterRegistrar<MongoPersistentProperty>> configurationAdapter) Gateway to register property specific converters.protected @Nullable Object
QueryMapper.convertValueWithConversionContext
(QueryMapper.Field documentField, @Nullable Object sourceValue, @Nullable Object value, PropertyValueConverter<Object, Object, ValueConversionContext<MongoPersistentProperty>> valueConverter, MongoConversionContext conversionContext) protected @Nullable Object
UpdateMapper.convertValueWithConversionContext
(QueryMapper.Field documentField, @Nullable Object sourceValue, @Nullable Object value, PropertyValueConverter<Object, Object, ValueConversionContext<MongoPersistentProperty>> valueConverter, MongoConversionContext conversionContext) protected QueryMapper.Field
QueryMapper.createPropertyField
(@Nullable MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected QueryMapper.Field
UpdateMapper.createPropertyField
(@Nullable MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Constructors in org.springframework.data.mongodb.core.convert with parameters of type MongoPersistentPropertyModifierConstructorDescriptionLazyLoadingInterceptor
(@Nullable MongoPersistentProperty property, @Nullable DbRefResolverCallback callback, @Nullable Object source, @Nullable PersistenceExceptionTranslator exceptionTranslator) MetadataBackedField
(String name, MongoPersistentEntity<?> entity, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, @Nullable MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
with the givenMongoPersistentProperty
.MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter) MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, @Nullable SpELContext spELContext) MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, @Nullable SpELContext spELContext, @Nullable MongoConversionContext.OperatorContext operatorContext) MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, @Nullable MongoConversionContext.OperatorContext operatorContext) Constructor parameters in org.springframework.data.mongodb.core.convert with type arguments of type MongoPersistentPropertyModifierConstructorDescriptionAssociationConverter
(String name, Association<MongoPersistentProperty> association) Creates a newQueryMapper.AssociationConverter
for the givenAssociation
.MappingMongoConverter
(DbRefResolver dbRefResolver, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) MappingMongoConverter
(MongoDatabaseFactory mongoDbFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Deprecated.MetadataBackedField
(String name, MongoPersistentEntity<?> entity, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
.MetadataBackedField
(String name, MongoPersistentEntity<?> entity, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, @Nullable MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
with the givenMongoPersistentProperty
.MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter) MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, @Nullable SpELContext spELContext) MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, @Nullable SpELContext spELContext, @Nullable MongoConversionContext.OperatorContext operatorContext) MongoConversionContext
(PropertyValueProvider<MongoPersistentProperty> accessor, @Nullable MongoPersistentProperty persistentProperty, MongoConverter mongoConverter, @Nullable MongoConversionContext.OperatorContext operatorContext) ReferenceLookupDelegate
(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, SpELContext spELContext) Create a newReferenceLookupDelegate
. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.convert.encryption
Methods in org.springframework.data.mongodb.core.convert.encryption that return MongoPersistentPropertyModifier and TypeMethodDescriptionprotected MongoPersistentProperty
MongoEncryptionConverter.getProperty
(EncryptionContext context) -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.encryption
Methods in org.springframework.data.mongodb.core.encryption that return MongoPersistentPropertyModifier and TypeMethodDescriptionEncryptionContext.getProperty()
Returns theMongoPersistentProperty
to be handled. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.index
Methods in org.springframework.data.mongodb.core.index with parameters of type MongoPersistentPropertyModifier and TypeMethodDescriptionprotected @Nullable MongoPersistentEntityIndexResolver.IndexDefinitionHolder
MongoPersistentEntityIndexResolver.createGeoSpatialIndexDefinition
(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesIndexDefinition
wrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolder
out ofGeoSpatialIndexed
forMongoPersistentProperty
.protected @Nullable MongoPersistentEntityIndexResolver.IndexDefinitionHolder
MongoPersistentEntityIndexResolver.createHashedIndexDefinition
(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesHashedIndex
wrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolder
out ofHashIndexed
for a givenMongoPersistentProperty
.protected @Nullable MongoPersistentEntityIndexResolver.IndexDefinitionHolder
MongoPersistentEntityIndexResolver.createIndexDefinition
(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesIndexDefinition
wrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolder
out ofIndexed
for a givenMongoPersistentProperty
.Method parameters in org.springframework.data.mongodb.core.index with type arguments of type MongoPersistentPropertyModifier and TypeMethodDescriptionstatic IndexResolver
IndexResolver.create
(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newIndexResolver
givenMongoMappingContext
.org.bson.Document
SearchIndexDefinition.getDefinition
(@Nullable TypeInformation<?> entity, @Nullable MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Returns the actual index definition for this index in the context of a potential entity to resolve field name mappings.org.bson.Document
VectorIndex.getDefinition
(@Nullable TypeInformation<?> entity, @Nullable MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) default org.bson.Document
SearchIndexDefinition.getIndexDocument
(@Nullable TypeInformation<?> entity, @Nullable MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Returns the index document for this index in the context of a potential entity to resolve field name mappings.Constructor parameters in org.springframework.data.mongodb.core.index with type arguments of type MongoPersistentPropertyModifierConstructorDescriptionMongoPersistentEntityIndexResolver
(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Create newMongoPersistentEntityIndexResolver
. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.mapping
Classes in org.springframework.data.mongodb.core.mapping that implement MongoPersistentPropertySubclasses with type arguments of type MongoPersistentProperty in org.springframework.data.mongodb.core.mappingModifier and TypeClassDescriptionclass
MongoDB specificMongoPersistentEntity
implementation that adds Mongo specific meta-data such as the collection name and the like.class
MongoDB specificPersistentProperty
implementation.class
Default implementation of aMappingContext
for MongoDB usingBasicMongoPersistentEntity
andBasicMongoPersistentProperty
as primary abstractions.Subinterfaces with type arguments of type MongoPersistentProperty in org.springframework.data.mongodb.core.mappingModifier and TypeInterfaceDescriptioninterface
MongoDB specificPersistentEntity
abstraction.interface
MongoDB specificPersistentProperty
extension.Classes in org.springframework.data.mongodb.core.mapping that implement interfaces with type arguments of type MongoPersistentPropertyModifier and TypeClassDescriptionstatic enum
SimpleConverter
implementation to transform aMongoPersistentProperty
into its field name.Methods in org.springframework.data.mongodb.core.mapping that return MongoPersistentPropertyModifier and TypeMethodDescriptionMongoMappingContext.createPersistentProperty
(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) @Nullable MongoPersistentProperty
BasicMongoPersistentEntity.getTextScoreProperty()
@Nullable MongoPersistentProperty
MongoPersistentEntity.getTextScoreProperty()
Returns the property holding text score value.protected @Nullable MongoPersistentProperty
BasicMongoPersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull
(MongoPersistentProperty property) As a general note: An implicit id property has a name that matches "id" or "_id".PersistentPropertyTranslator.translate
(MongoPersistentProperty property) Translate aMongoPersistentProperty
into a corresponding property from a differentMongoPersistentEntity
.Methods in org.springframework.data.mongodb.core.mapping that return types with arguments of type MongoPersistentPropertyModifier and TypeMethodDescriptionprotected Association
<MongoPersistentProperty> BasicMongoPersistentProperty.createAssociation()
Methods in org.springframework.data.mongodb.core.mapping with parameters of type MongoPersistentPropertyModifier and TypeMethodDescription@NonNull String
MongoPersistentProperty.PropertyToFieldNameConverter.convert
(MongoPersistentProperty source) @Nullable MongoPersistentEntity
<?> MongoMappingContext.getPersistentEntity
(MongoPersistentProperty persistentProperty) protected @Nullable MongoPersistentProperty
BasicMongoPersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull
(MongoPersistentProperty property) As a general note: An implicit id property has a name that matches "id" or "_id".PersistentPropertyTranslator.translate
(MongoPersistentProperty property) Translate aMongoPersistentProperty
into a corresponding property from a differentMongoPersistentEntity
.Method parameters in org.springframework.data.mongodb.core.mapping with type arguments of type MongoPersistentPropertyModifier and TypeMethodDescriptionstatic PersistentPropertyTranslator
PersistentPropertyTranslator.create
(@Nullable MongoPersistentEntity<?> targetEntity, Predicate<MongoPersistentProperty> translationFilter) Create a newPersistentPropertyTranslator
accepting afilter predicate
whether the translation should happen at all. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.repository.query
Methods in org.springframework.data.mongodb.repository.query with parameters of type MongoPersistentPropertyModifier and TypeMethodDescriptionprotected Criteria
MongoQueryCreator.createContainingCriteria
(Part part, MongoPersistentProperty property, Criteria criteria, Object parameter) If the target property of the comparison is of type String, then the operator checks for match using regular expression.@Nullable Object
ConvertingParameterAccessor.PotentiallyConvertingIterator.nextConverted
(MongoPersistentProperty property) Returns the next element which has already been converted.Constructor parameters in org.springframework.data.mongodb.repository.query with type arguments of type MongoPersistentPropertyModifierConstructorDescriptionMongoQueryCreator
(PartTree tree, MongoParameterAccessor accessor, MappingContext<?, MongoPersistentProperty> context) Creates a newMongoQueryCreator
from the givenPartTree
,ConvertingParameterAccessor
andMappingContext
.MongoQueryCreator
(PartTree tree, MongoParameterAccessor accessor, MappingContext<?, MongoPersistentProperty> context, boolean isGeoNearQuery, boolean isSearchQuery) Creates a newMongoQueryCreator
from the givenPartTree
,ConvertingParameterAccessor
andMappingContext
.MongoQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newMongoQueryMethod
from the givenMethod
.ReactiveMongoQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newReactiveMongoQueryMethod
from the givenMethod
.
DbRefResolver
instead.