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 theMongoPersistentEntityfor 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) 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 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.mappingContextMethods in org.springframework.data.mongodb.core.convert that return MongoPersistentEntityModifier and TypeMethodDescriptionQueryMapper.MetadataBackedField.getEntity()QueryMapper.Field.getPropertyEntity()Returns theMongoPersistentEntitythat 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.DocumentQueryMapper.addMetaAttributes(org.bson.Document source, MongoPersistentEntity<?> entity) Adds missing$metarepresentation if required.protected ObjectQueryMapper.convertSimpleOrDocument(Object source, MongoPersistentEntity<?> entity) Retriggers mapping if the given source is aDocumentor simply invokes theMappingMongoConverter.convertToMongoType(Object obj, MongoPersistentEntity entity) default ObjectMongoWriter.convertToMongoType(Object obj, MongoPersistentEntity<?> entity) default com.mongodb.DBRefDbRefResolver.createDbRef(DBRef annotation, MongoPersistentEntity<?> entity, Object id) protected QueryMapper.FieldQueryMapper.createPropertyField(MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected QueryMapper.FieldUpdateMapper.createPropertyField(MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected ObjectQueryMapper.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 ObjectUpdateMapper.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> SMappingMongoConverter.ConversionContext.findContextualEntity(MongoPersistentEntity<S> entity, org.bson.Document document) Lookup a potentially existing entity instance of the givenMongoPersistentEntityandDocumentorg.bson.DocumentMongoExampleMapper.getMappedExample(Example<?> example, MongoPersistentEntity<?> entity) org.bson.DocumentQueryMapper.getMappedFields(org.bson.Document fieldsObject, MongoPersistentEntity<?> entity) Maps fields to retrieve to theMongoPersistentEntitys properties.protected org.bson.DocumentQueryMapper.getMappedKeyword(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword, MongoPersistentEntity<?> entity) Returns the givenDocumentrepresenting a keyword by mapping the keyword's value.org.bson.DocumentQueryMapper.getMappedObject(org.bson.conversions.Bson query, MongoPersistentEntity<?> entity) Replaces the property keys used in the givenDocumentwith the appropriate keys by using thePersistentEntitymetadata.org.bson.DocumentUpdateMapper.getMappedObject(org.bson.conversions.Bson query, MongoPersistentEntity<?> entity) org.bson.DocumentQueryMapper.getMappedSort(org.bson.Document sortObject, MongoPersistentEntity<?> entity) Maps fields used for sorting to theMongoPersistentEntitys properties.protected voidMappingMongoConverter.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.FieldQueryMapper.createPropertyField(MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected QueryMapper.FieldUpdateMapper.createPropertyField(MongoPersistentEntity<?> entity, String key, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) org.bson.DocumentQueryMapper.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.MetadataBackedFieldwith the given name,MongoPersistentEntityandMappingContext.MetadataBackedField(String name, MongoPersistentEntity<?> entity, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedFieldwith the given name,MongoPersistentEntityandMappingContextwith 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.MetadataBackedFieldwith the given name,MongoPersistentEntityandMappingContext.MetadataBackedField(String name, MongoPersistentEntity<?> entity, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedFieldwith the given name,MongoPersistentEntityandMappingContextwith 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) CreateIndexDefinitionwrapped inMongoPersistentEntityIndexResolver.IndexDefinitionHolderforCompoundIndexesof a given type.MongoPersistentEntityIndexResolver.createWildcardIndexDefinition(String dotPath, String collection, WildcardIndexed index, MongoPersistentEntity<?> entity) MongoPersistentEntityIndexResolver.resolveIndexForEntity(MongoPersistentEntity<?> root) Resolve theIndexDefinitions for a given root entity by traversingMongoPersistentPropertyscanning for index annotationsIndexed,CompoundIndexandGeospatialIndex.Method parameters in org.springframework.data.mongodb.core.index with type arguments of type MongoPersistentEntityModifier and TypeMethodDescriptionstatic IndexResolverIndexResolver.create(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newIndexResolvergivenMongoMappingContext.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 TypeClassDescriptionclassMongoDB specificMongoPersistentEntityimplementation 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 PersistentPropertyTranslatorPersistentPropertyTranslator.create(MongoPersistentEntity<?> targetEntity) Create a newPersistentPropertyTranslator.static PersistentPropertyTranslatorPersistentPropertyTranslator.create(MongoPersistentEntity<?> targetEntity, Predicate<MongoPersistentProperty> translationFilter) Create a newPersistentPropertyTranslatoraccepting afilter predicatewhether 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 theMongoPersistentEntitythat 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 newMongoQueryMethodfrom the givenMethod.ReactiveMongoQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newReactiveMongoQueryMethodfrom 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 newMappingMongoEntityInformationfor the givenMongoPersistentEntity.MappingMongoEntityInformation(MongoPersistentEntity<T> entity, Class<ID> fallbackIdType) Creates a newMappingMongoEntityInformationfor the givenMongoPersistentEntityand fallback identifier type.MappingMongoEntityInformation(MongoPersistentEntity<T> entity, String customCollectionName) Creates a newMappingMongoEntityInformationfor the givenMongoPersistentEntityand custom collection name.
DbRefResolverinstead.