Uses of Interface
org.springframework.data.mongodb.core.mapping.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
Modifier 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
ModifierConstructorDescriptionRelaxedTypeBasedAggregationOperationContext
(Class<?> type, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
.TypeBasedAggregationOperationContext
(Class<?> type, org.springframework.data.mapping.context.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
Modifier and TypeFieldDescriptionprotected final org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> MappingMongoConverter.mappingContext
Modifier and TypeMethodDescriptionQueryMapper.MetadataBackedField.getEntity()
QueryMapper.Field.getPropertyEntity()
Returns theMongoPersistentEntity
that field is conatined in.QueryMapper.MetadataBackedField.getPropertyEntity()
Modifier and TypeMethodDescriptionorg.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> MappingMongoConverter.getMappingContext()
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> QueryMapper.getMappingContext()
protected org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,
MongoPersistentProperty> QueryMapper.MetadataBackedField.getMappingContext()
Modifier 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, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected QueryMapper.Field
UpdateMapper.createPropertyField
(MongoPersistentEntity<?> entity, String key, org.springframework.data.mapping.context.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
(org.springframework.data.domain.Example<?> example, MongoPersistentEntity<?> entity) Returns the givenExample
asDocument
holding matching values extracted fromExample.getProbe()
.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) Modifier and TypeMethodDescriptionprotected QueryMapper.Field
QueryMapper.createPropertyField
(MongoPersistentEntity<?> entity, String key, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) protected QueryMapper.Field
UpdateMapper.createPropertyField
(MongoPersistentEntity<?> entity, String key, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) org.bson.Document
QueryMapper.getMappedObject
(org.bson.conversions.Bson query, Optional<? extends MongoPersistentEntity<?>> entity) ModifierConstructorDescriptionMetadataBackedField
(String name, MongoPersistentEntity<?> entity, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
.MetadataBackedField
(String name, MongoPersistentEntity<?> entity, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
with the givenMongoPersistentProperty
.ModifierConstructorDescriptionMappingMongoConverter
(DbRefResolver dbRefResolver, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) MappingMongoConverter
(MongoDatabaseFactory mongoDbFactory, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Deprecated.MetadataBackedField
(String name, MongoPersistentEntity<?> entity, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
.MetadataBackedField
(String name, MongoPersistentEntity<?> entity, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context, MongoPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,MongoPersistentEntity
andMappingContext
with the givenMongoPersistentProperty
.ReferenceLookupDelegate
(org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, org.springframework.data.mapping.model.SpELContext spELContext) Create a newReferenceLookupDelegate
. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.core.index
Modifier 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
.Modifier and TypeMethodDescriptionstatic IndexResolver
IndexResolver.create
(org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newIndexResolver
givenMongoMappingContext
.ModifierConstructorDescriptionMongoPersistentEntityIndexResolver
(org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Create newMongoPersistentEntityIndexResolver
. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.core.mapping
Modifier and TypeClassDescriptionclass
MongoDB specificMongoPersistentEntity
implementation that adds Mongo specific meta-data such as the collection name and the like.Modifier and TypeMethodDescriptionMongoMappingContext.getPersistentEntity
(MongoPersistentProperty persistentProperty) Modifier 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
(org.springframework.data.mapping.model.Property property, MongoPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) ModifierConstructorDescriptionBasicMongoPersistentProperty
(org.springframework.data.mapping.model.Property property, MongoPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder, org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy) Creates a newBasicMongoPersistentProperty
.CachingMongoPersistentProperty
(org.springframework.data.mapping.model.Property property, MongoPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder, org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy) Creates a newCachingMongoPersistentProperty
. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.repository.query
Modifier and TypeMethodDescriptionMongoEntityMetadata.getCollectionEntity()
Returns theMongoPersistentEntity
that supposed to determine the collection to be queried.ModifierConstructorDescriptionMongoQueryMethod
(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newMongoQueryMethod
from the givenMethod
.ReactiveMongoQueryMethod
(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newReactiveMongoQueryMethod
from the givenMethod
. -
Uses of MongoPersistentEntity in org.springframework.data.mongodb.repository.support
ModifierConstructorDescriptionCreates 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.