Uses of Interface
org.springframework.data.mongodb.core.mapping.MongoPersistentEntity
Packages that use MongoPersistentEntity
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.
Support infrastructure for query derivation of MongoDB specific repositories.
-
Uses of MongoPersistentEntity in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core that return MongoPersistentEntityModifier and TypeMethodDescription<T> MongoPersistentEntity<T>
MongoJsonSchemaCreator.JsonSchemaPropertyContext.resolveEntity
(MongoPersistentProperty property) Obtain theMongoPersistentEntity
for a given property. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.core.aggregation
Constructor parameters in org.springframework.data.mongodb.core.aggregation with type arguments of type MongoPersistentEntityModifierConstructorDescriptionRelaxedTypeBasedAggregationOperationContext
(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 MongoPersistentEntity in org.springframework.data.mongodb.core.convert
Fields in org.springframework.data.mongodb.core.convert with type parameters of type MongoPersistentEntityModifier and TypeFieldDescriptionprotected final MappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> MappingMongoConverter.mappingContext
Methods in org.springframework.data.mongodb.core.convert that return MongoPersistentEntityModifier and TypeMethodDescriptionQueryMapper.MetadataBackedField.getEntity()
QueryMapper.Field.getPropertyEntity()
Returns theMongoPersistentEntity
that field is conatined in.QueryMapper.MetadataBackedField.getPropertyEntity()
Methods in org.springframework.data.mongodb.core.convert that return types with arguments of type MongoPersistentEntityModifier and TypeMethodDescriptionMappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> MappingMongoConverter.getMappingContext()
MappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> QueryMapper.getMappingContext()
protected MappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> QueryMapper.MetadataBackedField.getMappingContext()
Methods in org.springframework.data.mongodb.core.convert with parameters of type MongoPersistentEntityModifier and TypeMethodDescriptionorg.bson.Document
QueryMapper.addMetaAttributes
(org.bson.Document source, MongoPersistentEntity<?> entity) Adds missing$meta
representation if required.protected Object
QueryMapper.convertSimpleOrDocument
(Object source, MongoPersistentEntity<?> entity) Retriggers mapping if the given source is aDocument
or simply invokes theMappingMongoConverter.convertToMongoType
(Object obj, MongoPersistentEntity entity) default Object
MongoWriter.convertToMongoType
(Object obj, MongoPersistentEntity<?> entity) default com.mongodb.DBRef
DbRefResolver.createDbRef
(DBRef annotation, MongoPersistentEntity<?> entity, Object id) 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) protected Object
QueryMapper.delegateConvertToMongoType
(Object source, MongoPersistentEntity<?> entity) Converts the given source Object to a mongo type with the type information of the original source type omitted.protected Object
UpdateMapper.delegateConvertToMongoType
(Object source, MongoPersistentEntity<?> entity) Converts the given source object to a mongo type retaining the original type information of the source type on the mongo type.default <S> S
MappingMongoConverter.ConversionContext.findContextualEntity
(MongoPersistentEntity<S> entity, org.bson.Document document) Lookup a potentially existing entity instance of the givenMongoPersistentEntity
andDocument
org.bson.Document
MongoExampleMapper.getMappedExample
(Example<?> example, MongoPersistentEntity<?> entity) org.bson.Document
QueryMapper.getMappedFields
(org.bson.Document fieldsObject, MongoPersistentEntity<?> entity) Maps fields to retrieve to theMongoPersistentEntity
s properties.protected org.bson.Document
QueryMapper.getMappedKeyword
(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword, MongoPersistentEntity<?> entity) Returns the givenDocument
representing a keyword by mapping the keyword's value.org.bson.Document
QueryMapper.getMappedObject
(org.bson.conversions.Bson query, MongoPersistentEntity<?> entity) Replaces the property keys used in the givenDocument
with the appropriate keys by using thePersistentEntity
metadata.org.bson.Document
UpdateMapper.getMappedObject
(org.bson.conversions.Bson query, MongoPersistentEntity<?> entity) org.bson.Document
QueryMapper.getMappedSort
(org.bson.Document sortObject, MongoPersistentEntity<?> entity) Maps fields used for sorting to theMongoPersistentEntity
s properties.protected void
MappingMongoConverter.writeInternal
(Object obj, org.bson.conversions.Bson bson, MongoPersistentEntity<?> entity) Method parameters in org.springframework.data.mongodb.core.convert with type arguments of type MongoPersistentEntityModifier and TypeMethodDescriptionprotected 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) org.bson.Document
QueryMapper.getMappedObject
(org.bson.conversions.Bson query, Optional<? extends MongoPersistentEntity<?>> entity) Constructors in org.springframework.data.mongodb.core.convert with parameters of type MongoPersistentEntityModifierConstructorDescriptionMetadataBackedField
(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
.Constructor parameters in org.springframework.data.mongodb.core.convert with type arguments of type MongoPersistentEntityModifierConstructorDescriptionMappingMongoConverter
(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 MongoPersistentEntity in org.springframework.data.mongodb.core.index
Methods in org.springframework.data.mongodb.core.index with parameters of type MongoPersistentEntityModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
ReactiveMongoPersistentEntityIndexCreator.checkForIndexes
(MongoPersistentEntity<?> entity) Inspect entities for index creation.MongoPersistentEntityIndexResolver.createCompoundIndexDefinition
(String dotPath, String collection, CompoundIndex index, MongoPersistentEntity<?> entity) MongoPersistentEntityIndexResolver.createCompoundIndexDefinitions
(String dotPath, String fallbackCollection, MongoPersistentEntity<?> entity) CreateIndexDefinition
wrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolder
forCompoundIndexes
of a given type.MongoPersistentEntityIndexResolver.createWildcardIndexDefinition
(String dotPath, String collection, WildcardIndexed index, MongoPersistentEntity<?> entity) MongoPersistentEntityIndexResolver.resolveIndexForEntity
(MongoPersistentEntity<?> root) Resolve theIndexDefinition
s for a given root entity by traversingMongoPersistentProperty
scanning for index annotationsIndexed
,CompoundIndex
andGeospatialIndex
.Method parameters in org.springframework.data.mongodb.core.index with type arguments of type MongoPersistentEntityModifier 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 MongoPersistentEntityModifierConstructorDescriptionMongoPersistentEntityIndexResolver
(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Create newMongoPersistentEntityIndexResolver
. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.core.mapping
Classes in org.springframework.data.mongodb.core.mapping that implement MongoPersistentEntityModifier and TypeClassDescriptionclass
MongoDB specificMongoPersistentEntity
implementation that adds Mongo specific meta-data such as the collection name and the like.Methods in org.springframework.data.mongodb.core.mapping that return MongoPersistentEntityModifier and TypeMethodDescriptionMongoMappingContext.getPersistentEntity
(MongoPersistentProperty persistentProperty) Methods in org.springframework.data.mongodb.core.mapping with parameters of type MongoPersistentEntityModifier and TypeMethodDescriptionstatic PersistentPropertyTranslator
PersistentPropertyTranslator.create
(MongoPersistentEntity<?> targetEntity) Create a newPersistentPropertyTranslator
.static PersistentPropertyTranslator
PersistentPropertyTranslator.create
(MongoPersistentEntity<?> targetEntity, Predicate<MongoPersistentProperty> translationFilter) Create a newPersistentPropertyTranslator
accepting afilter predicate
whether the translation should happen at all.MongoMappingContext.createPersistentProperty
(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) Constructors in org.springframework.data.mongodb.core.mapping with parameters of type MongoPersistentEntityModifierConstructorDescriptionBasicMongoPersistentProperty
(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy) Creates a newBasicMongoPersistentProperty
.CachingMongoPersistentProperty
(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy) Creates a newCachingMongoPersistentProperty
. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.repository.query
Methods in org.springframework.data.mongodb.repository.query that return MongoPersistentEntityModifier and TypeMethodDescriptionMongoEntityMetadata.getCollectionEntity()
Returns theMongoPersistentEntity
that supposed to determine the collection to be queried.Constructor parameters in org.springframework.data.mongodb.repository.query with type arguments of type MongoPersistentEntityModifierConstructorDescriptionMongoQueryMethod
(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
. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.repository.support
Constructors in org.springframework.data.mongodb.repository.support with parameters of type MongoPersistentEntityModifierConstructorDescriptionCreates a newMappingMongoEntityInformation
for the givenMongoPersistentEntity
.MappingMongoEntityInformation
(MongoPersistentEntity<T> entity, Class<ID> fallbackIdType) Creates a newMappingMongoEntityInformation
for the givenMongoPersistentEntity
and fallback identifier type.MappingMongoEntityInformation
(MongoPersistentEntity<T> entity, String customCollectionName) Creates a newMappingMongoEntityInformation
for the givenMongoPersistentEntity
and custom collection name.
DbRefResolver
instead.