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
Subinterfaces with type arguments of type MongoPersistentEntity in org.springframework.data.mongodb.core.convertModifier and TypeInterfaceDescriptioninterfaceCentral Mongo specific converter interface which combinesMongoWriterandEntityReader.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 TypeMethodDescription@Nullable MongoPersistentEntity<?> QueryMapper.MetadataBackedField.getEntity()@Nullable MongoPersistentEntity<?> QueryMapper.Field.getPropertyEntity()Returns theMongoPersistentEntitythat field is conatined in.@Nullable MongoPersistentEntity<?> 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, @Nullable MongoPersistentEntity<?> entity) Adds missing$metarepresentation if required.protected @Nullable ObjectQueryMapper.convertSimpleOrDocument(Object source, @Nullable MongoPersistentEntity<?> entity) Retriggers mapping if the given source is aDocumentor simply invokes theMappingMongoConverter.convertToMongoType(@Nullable Object obj, MongoPersistentEntity<?> entity) default @Nullable ObjectMongoWriter.convertToMongoType(@Nullable Object obj, MongoPersistentEntity<?> entity) default com.mongodb.DBRefDbRefResolver.createDbRef(@Nullable DBRef annotation, MongoPersistentEntity<?> entity, Object id) 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) protected @Nullable ObjectQueryMapper.delegateConvertToMongoType(Object source, @Nullable MongoPersistentEntity<?> entity) Converts the given source Object to a mongo type with the type information of the original source type omitted.protected @Nullable ObjectUpdateMapper.delegateConvertToMongoType(Object source, @Nullable 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> @Nullable SMappingMongoConverter.ConversionContext.findContextualEntity(MongoPersistentEntity<S> entity, org.bson.Document document) Lookup a potentially existing entity instance of the givenMongoPersistentEntityandDocumentorg.bson.DocumentMongoExampleMapper.getMappedExample(Example<?> example, @Nullable MongoPersistentEntity<?> entity) org.bson.DocumentQueryMapper.getMappedFields(org.bson.Document fieldsObject, @Nullable MongoPersistentEntity<?> entity) Maps fields to retrieve to theMongoPersistentEntitys properties.protected org.bson.DocumentQueryMapper.getMappedKeyword(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword, @Nullable MongoPersistentEntity<?> entity) Returns the givenDocumentrepresenting a keyword by mapping the keyword's value.org.bson.DocumentQueryMapper.getMappedObject(org.bson.conversions.Bson query, @Nullable 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, @Nullable MongoPersistentEntity<?> entity) org.bson.DocumentQueryMapper.getMappedSort(org.bson.Document sortObject, @Nullable MongoPersistentEntity<?> entity) Maps fields used for sorting to theMongoPersistentEntitys properties.protected voidMappingMongoConverter.writeInternal(@Nullable Object obj, org.bson.conversions.Bson bson, @Nullable MongoPersistentEntity<?> entity) Method parameters in org.springframework.data.mongodb.core.convert with type arguments of type MongoPersistentEntityModifier and TypeMethodDescriptionprotected 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) 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, @Nullable 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, @Nullable 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 TypeMethodDescriptionReactiveMongoPersistentEntityIndexCreator.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, @Nullable 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.org.bson.DocumentSearchIndexDefinition.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.DocumentVectorIndex.getDefinition(@Nullable TypeInformation<?> entity, @Nullable MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) default org.bson.DocumentSearchIndexDefinition.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 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.Subclasses with type arguments of type MongoPersistentEntity in org.springframework.data.mongodb.core.mappingModifier and TypeClassDescriptionclassDefault implementation of aMappingContextfor MongoDB usingBasicMongoPersistentEntityandBasicMongoPersistentPropertyas primary abstractions.Methods in org.springframework.data.mongodb.core.mapping that return MongoPersistentEntityModifier and TypeMethodDescription@Nullable MongoPersistentEntity<?> MongoMappingContext.getPersistentEntity(MongoPersistentProperty persistentProperty) Methods in org.springframework.data.mongodb.core.mapping with parameters of type MongoPersistentEntityModifier and TypeMethodDescriptionstatic PersistentPropertyTranslatorPersistentPropertyTranslator.create(@Nullable MongoPersistentEntity<?> targetEntity) Create a newPersistentPropertyTranslator.static PersistentPropertyTranslatorPersistentPropertyTranslator.create(@Nullable 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, @Nullable FieldNamingStrategy fieldNamingStrategy) Creates a newBasicMongoPersistentProperty.CachingMongoPersistentProperty(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, @Nullable 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, @Nullable 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.