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 theMongoPersistentEntityfor 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 newTypeBasedAggregationOperationContextfor the given type,MappingContextandQueryMapper.TypeBasedAggregationOperationContext(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContextfor the given type,MappingContextandQueryMapper.TypeBasedAggregationOperationContext(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper, FieldLookupPolicy lookupPolicy) Creates a newTypeBasedAggregationOperationContextfor the given type,MappingContextandQueryMapper. -
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 TypeInterfaceDescriptioninterfaceCentral Mongo specific converter interface which combinesMongoWriterandEntityReader.Classes in org.springframework.data.mongodb.core.convert that implement interfaces with type arguments of type MongoPersistentPropertyModifier and TypeClassDescriptionclassValueConversionContextthat allows to delegate read/write to an underlyingMongoConverter.protected static classConverter 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.mappingContextMethods in org.springframework.data.mongodb.core.convert that return MongoPersistentPropertyModifier and TypeMethodDescriptionMongoConversionContext.getProperty()@Nullable MongoPersistentPropertyQueryMapper.Field.getProperty()Returns the underlyingMongoPersistentPropertybacking 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 theConverterto 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 theConverterto be used to created the mapped key.Methods in org.springframework.data.mongodb.core.convert with parameters of type MongoPersistentPropertyModifier and TypeMethodDescription@Nullable StringQueryMapper.AssociationConverter.convert(MongoPersistentProperty source) protected @Nullable ObjectQueryMapper.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 givenCollectionusing the givenMongoPersistentPropertyinformation.protected com.mongodb.DBRefMappingMongoConverter.createDBRef(Object target, @Nullable MongoPersistentProperty property) LazyLoadingProxyFactory.createLazyLoadingProxy(MongoPersistentProperty property, DbRefResolverCallback callback, @Nullable Object source) protected org.bson.conversions.BsonMappingMongoConverter.createMap(Map<Object, Object> map, MongoPersistentProperty property) Writes the givenMapusing the givenMongoPersistentPropertyinformation.MappingMongoConverter.ConversionContext.forProperty(MongoPersistentProperty property) Obtain aMappingMongoConverter.ConversionContextfor the givenMongoPersistentProperty.protected booleanDefaultReferenceResolver.isLazyReference(MongoPersistentProperty property) Check if the association expressed by the givenpropertyshould be resolved lazily.DbRefProxyHandler.populateId(MongoPersistentProperty property, @Nullable com.mongodb.DBRef source, Object proxy) @Nullable ObjectReferenceLookupDelegate.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 ObjectDbRefResolverCallback.resolve(MongoPersistentProperty property) Resolve the final object for the givenMongoPersistentProperty.@Nullable ObjectDbRefResolver.resolveDbRef(MongoPersistentProperty property, @Nullable com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler proxyHandler) Resolves the givenDBRefinto an object of the givenMongoPersistentProperty's type.@Nullable ObjectDefaultDbRefResolver.resolveDbRef(MongoPersistentProperty property, @Nullable com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler handler) @Nullable ObjectNoOpDbRefResolver.resolveDbRef(MongoPersistentProperty property, @Nullable com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler proxyHandler) @Nullable ObjectDefaultReferenceResolver.resolveReference(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader) @Nullable ObjectNoOpDbRefResolver.resolveReference(MongoPersistentProperty property, Object source, ReferenceLookupDelegate referenceLookupDelegate, ReferenceResolver.MongoEntityReader entityReader) @Nullable ObjectReferenceResolver.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.DBRefMappingMongoConverter.toDBRef(Object object, @Nullable MongoPersistentProperty referringProperty) com.mongodb.DBRefMongoWriter.toDBRef(Object object, @Nullable MongoPersistentProperty referringProperty) Creates aDBRefto refer to the given object.MappingMongoConverter.toDocumentPointer(Object source, @Nullable MongoPersistentProperty referringProperty) default DocumentPointer<?> MongoWriter.toDocumentPointer(Object source, @Nullable MongoPersistentProperty referringProperty) Creates a theDocumentPointerrepresenting 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 ObjectQueryMapper.convertValueWithConversionContext(QueryMapper.Field documentField, @Nullable Object sourceValue, @Nullable Object value, PropertyValueConverter<Object, Object, ValueConversionContext<MongoPersistentProperty>> valueConverter, MongoConversionContext conversionContext) protected @Nullable ObjectUpdateMapper.convertValueWithConversionContext(QueryMapper.Field documentField, @Nullable Object sourceValue, @Nullable Object value, PropertyValueConverter<Object, Object, ValueConversionContext<MongoPersistentProperty>> valueConverter, MongoConversionContext conversionContext) protected QueryMapper.FieldQueryMapper.createPropertyField(@Nullable MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected QueryMapper.FieldUpdateMapper.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.MetadataBackedFieldwith the given name,MongoPersistentEntityandMappingContextwith 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.AssociationConverterfor 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.MetadataBackedFieldwith the given name,MongoPersistentEntityandMappingContext.MetadataBackedField(String name, MongoPersistentEntity<?> entity, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, @Nullable MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedFieldwith the given name,MongoPersistentEntityandMappingContextwith 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 MongoPersistentPropertyMongoEncryptionConverter.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 theMongoPersistentPropertyto 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.IndexDefinitionHolderMongoPersistentEntityIndexResolver.createGeoSpatialIndexDefinition(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesIndexDefinitionwrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolderout ofGeoSpatialIndexedforMongoPersistentProperty.protected @Nullable MongoPersistentEntityIndexResolver.IndexDefinitionHolderMongoPersistentEntityIndexResolver.createHashedIndexDefinition(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesHashedIndexwrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolderout ofHashIndexedfor a givenMongoPersistentProperty.protected @Nullable MongoPersistentEntityIndexResolver.IndexDefinitionHolderMongoPersistentEntityIndexResolver.createIndexDefinition(String dotPath, String collection, MongoPersistentProperty persistentProperty) CreatesIndexDefinitionwrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolderout ofIndexedfor a givenMongoPersistentProperty.Method parameters in org.springframework.data.mongodb.core.index with type arguments of type MongoPersistentPropertyModifier and TypeMethodDescriptionstatic IndexResolverIndexResolver.create(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newIndexResolvergivenMongoMappingContext.org.bson.DocumentSearchIndexDefinition.getDefinition(@Nullable org.springframework.data.core.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.DocumentVectorIndex.getDefinition(@Nullable org.springframework.data.core.TypeInformation<?> entity, @Nullable MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) default org.bson.DocumentSearchIndexDefinition.getIndexDocument(@Nullable org.springframework.data.core.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 TypeClassDescriptionclassMongoDB specificMongoPersistentEntityimplementation that adds Mongo specific meta-data such as the collection name and the like.classMongoDB specificPersistentPropertyimplementation.classDefault implementation of aMappingContextfor MongoDB usingBasicMongoPersistentEntityandBasicMongoPersistentPropertyas primary abstractions.Subinterfaces with type arguments of type MongoPersistentProperty in org.springframework.data.mongodb.core.mappingModifier and TypeInterfaceDescriptioninterfaceMongoDB specificPersistentEntityabstraction.interfaceMongoDB specificPersistentPropertyextension.Classes in org.springframework.data.mongodb.core.mapping that implement interfaces with type arguments of type MongoPersistentPropertyModifier and TypeClassDescriptionstatic enumSimpleConverterimplementation to transform aMongoPersistentPropertyinto its field name.Methods in org.springframework.data.mongodb.core.mapping that return MongoPersistentPropertyModifier and TypeMethodDescriptionMongoMappingContext.createPersistentProperty(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) @Nullable MongoPersistentPropertyBasicMongoPersistentEntity.getTextScoreProperty()@Nullable MongoPersistentPropertyMongoPersistentEntity.getTextScoreProperty()Returns the property holding text score value.protected @Nullable MongoPersistentPropertyBasicMongoPersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull(MongoPersistentProperty property) As a general note: An implicit id property has a name that matches "id" or "_id".PersistentPropertyTranslator.translate(MongoPersistentProperty property) Translate aMongoPersistentPropertyinto 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 StringMongoPersistentProperty.PropertyToFieldNameConverter.convert(MongoPersistentProperty source) @Nullable MongoPersistentEntity<?> MongoMappingContext.getPersistentEntity(MongoPersistentProperty persistentProperty) protected @Nullable MongoPersistentPropertyBasicMongoPersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull(MongoPersistentProperty property) As a general note: An implicit id property has a name that matches "id" or "_id".PersistentPropertyTranslator.translate(MongoPersistentProperty property) Translate aMongoPersistentPropertyinto a corresponding property from a differentMongoPersistentEntity.Method parameters in org.springframework.data.mongodb.core.mapping with type arguments of type MongoPersistentPropertyModifier and TypeMethodDescriptionstatic PersistentPropertyTranslatorPersistentPropertyTranslator.create(@Nullable MongoPersistentEntity<?> targetEntity, Predicate<MongoPersistentProperty> translationFilter) Create a newPersistentPropertyTranslatoraccepting afilter predicatewhether 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 CriteriaMongoQueryCreator.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 ObjectConvertingParameterAccessor.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 newMongoQueryCreatorfrom the givenPartTree,ConvertingParameterAccessorandMappingContext.MongoQueryCreator(PartTree tree, MongoParameterAccessor accessor, MappingContext<?, MongoPersistentProperty> context, boolean isGeoNearQuery, boolean isSearchQuery) Creates a newMongoQueryCreatorfrom the givenPartTree,ConvertingParameterAccessorandMappingContext.MongoQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newMongoQueryMethodfrom the givenMethod.ReactiveMongoQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newReactiveMongoQueryMethodfrom the givenMethod.
DbRefResolverinstead.