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.
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) 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
. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.convert
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()
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 TypeMethodDescriptionQueryMapper.Field.getAssociation()
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 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 TypeMethodDescriptionQueryMapper.AssociationConverter.convert
(MongoPersistentProperty source) protected Object
QueryMapper.convertAssociation
(Object source, 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, MongoPersistentProperty property) protected org.bson.conversions.Bson
MappingMongoConverter.createMap
(Map<Object, Object> map, MongoPersistentProperty property) Writes the givenMap
using the givenMongoPersistentProperty
information.protected boolean
DefaultReferenceResolver.isLazyReference
(MongoPersistentProperty property) Check if the association expressed by the givenproperty
should be resolved lazily.DbRefProxyHandler.populateId
(MongoPersistentProperty property, com.mongodb.DBRef source, Object proxy) 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.DbRefResolverCallback.resolve
(MongoPersistentProperty property) Resolve the final object for the givenMongoPersistentProperty
.DbRefResolver.resolveDbRef
(MongoPersistentProperty property, com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler proxyHandler) Resolves the givenDBRef
into an object of the givenMongoPersistentProperty
's type.DefaultDbRefResolver.resolveDbRef
(MongoPersistentProperty property, com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler handler) NoOpDbRefResolver.resolveDbRef
(MongoPersistentProperty property, com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler proxyHandler) DefaultReferenceResolver.resolveReference
(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader) NoOpDbRefResolver.resolveReference
(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader) 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, MongoPersistentProperty referringProperty) com.mongodb.DBRef
MongoWriter.toDBRef
(Object object, MongoPersistentProperty referingProperty) Creates aDBRef
to refer to the given object.MappingMongoConverter.toDocumentPointer
(Object source, MongoPersistentProperty referringProperty) default DocumentPointer<?>
MongoWriter.toDocumentPointer
(Object source, MongoPersistentProperty referringProperty) Creates a theDocumentPointer
representing the link to another entity.protected void
MappingMongoConverter.writePropertyInternal
(Object obj, org.springframework.data.mongodb.core.convert.DocumentAccessor accessor, MongoPersistentProperty prop) 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 QueryMapper.Field
QueryMapper.createPropertyField
(MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected QueryMapper.Field
UpdateMapper.createPropertyField
(MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Constructors in org.springframework.data.mongodb.core.convert with parameters of type MongoPersistentPropertyModifierConstructorDescriptionMetadataBackedField
(String name, MongoPersistentEntity<?> entity, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
with the givenMongoPersistentProperty
.MongoConversionContext
(MongoPersistentProperty persistentProperty, MongoConverter mongoConverter) 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, MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
with the givenMongoPersistentProperty
.ReferenceLookupDelegate
(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, SpELContext spELContext) Create a newReferenceLookupDelegate
. -
Uses of MongoPersistentProperty in org.springframework.data.mongodb.core.index
Methods in org.springframework.data.mongodb.core.index with parameters of type MongoPersistentPropertyModifier and TypeMethodDescriptionMongoPersistentEntityIndexResolver.createGeoSpatialIndexDefinition
(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesIndexDefinition
wrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolder
out ofGeoSpatialIndexed
forMongoPersistentProperty
.MongoPersistentEntityIndexResolver.createHashedIndexDefinition
(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesHashedIndex
wrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolder
out ofHashIndexed
for a givenMongoPersistentProperty
.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
.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 MongoPersistentPropertyMethods in org.springframework.data.mongodb.core.mapping that return MongoPersistentPropertyModifier and TypeMethodDescriptionMongoMappingContext.createPersistentProperty
(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) BasicMongoPersistentEntity.getTextScoreProperty()
MongoPersistentEntity.getTextScoreProperty()
Returns the property holding text score value.protected 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 TypeMethodDescriptionMongoPersistentProperty.PropertyToFieldNameConverter.convert
(MongoPersistentProperty source) MongoMappingContext.getPersistentEntity
(MongoPersistentProperty persistentProperty) protected 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
(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 TypeMethodDescriptionConvertingParameterAccessor.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 MongoPersistentPropertyModifierConstructorDescriptionMongoQueryMethod
(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.