Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
org.springframework.data.mongodb.core.convert |
Spring Data MongoDB specific converter infrastructure.
|
org.springframework.data.mongodb.core.index |
Support for MongoDB document indexing.
|
org.springframework.data.mongodb.core.mapping |
Infrastructure for the MongoDB document-to-object mapping subsystem.
|
org.springframework.data.mongodb.repository.query |
Query derivation mechanism for MongoDB specific repositories.
|
org.springframework.data.mongodb.repository.support |
Support infrastructure for query derivation of MongoDB specific repositories.
|
Modifier and Type | Method and Description |
---|---|
<T> MongoPersistentEntity<T> |
MongoJsonSchemaCreator.JsonSchemaPropertyContext.resolveEntity(MongoPersistentProperty property)
Obtain the
MongoPersistentEntity for a given property. |
Constructor and Description |
---|
RelaxedTypeBasedAggregationOperationContext(Class<?> type,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext,
QueryMapper mapper)
Creates a new
TypeBasedAggregationOperationContext for the given type, MappingContext and
QueryMapper . |
TypeBasedAggregationOperationContext(Class<?> type,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext,
QueryMapper mapper)
Creates a new
TypeBasedAggregationOperationContext for the given type, MappingContext and
QueryMapper . |
Modifier and Type | Field and Description |
---|---|
protected MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> |
MappingMongoConverter.mappingContext |
Modifier and Type | Method and Description |
---|---|
MongoPersistentEntity<?> |
QueryMapper.MetadataBackedField.getEntity() |
MongoPersistentEntity<?> |
QueryMapper.Field.getPropertyEntity()
Returns the
MongoPersistentEntity that field is conatined in. |
MongoPersistentEntity<?> |
QueryMapper.MetadataBackedField.getPropertyEntity() |
Modifier and Type | Method and Description |
---|---|
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> |
MappingMongoConverter.getMappingContext() |
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> |
QueryMapper.getMappingContext() |
protected MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> |
QueryMapper.MetadataBackedField.getMappingContext() |
Modifier and Type | Method and Description |
---|---|
protected Object |
QueryMapper.convertSimpleOrDocument(Object source,
MongoPersistentEntity<?> entity)
Retriggers mapping if the given source is a
Document or simply invokes the |
Object |
MappingMongoConverter.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.
|
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 the
MongoPersistentEntity s properties. |
protected org.bson.Document |
QueryMapper.getMappedKeyword(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword,
MongoPersistentEntity<?> entity)
Returns the given
Document 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 given
Document with the appropriate keys by using the
PersistentEntity 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 the
MongoPersistentEntity s properties. |
protected void |
MappingMongoConverter.writeInternal(Object obj,
org.bson.conversions.Bson bson,
MongoPersistentEntity<?> entity) |
Modifier and Type | Method and Description |
---|---|
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) |
org.bson.Document |
QueryMapper.getMappedObject(org.bson.conversions.Bson query,
Optional<? extends MongoPersistentEntity<?>> entity) |
Constructor and Description |
---|
MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context)
Creates a new
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext . |
MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context,
MongoPersistentProperty property)
Creates a new
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext with the given MongoPersistentProperty . |
Modifier and Type | Method and Description |
---|---|
static IndexResolver |
IndexResolver.create(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
IndexResolver given MongoMappingContext . |
Constructor and Description |
---|
MongoPersistentEntityIndexResolver(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Create new
MongoPersistentEntityIndexResolver . |
Modifier and Type | Class and Description |
---|---|
class |
BasicMongoPersistentEntity<T>
MongoDB specific
MongoPersistentEntity implementation that adds Mongo specific meta-data such as the
collection name and the like. |
Modifier and Type | Method and Description |
---|---|
MongoPersistentEntity<?> |
MongoMappingContext.getPersistentEntity(MongoPersistentProperty persistentProperty) |
Modifier and Type | Method and Description |
---|---|
MongoPersistentProperty |
MongoMappingContext.createPersistentProperty(Property property,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder) |
Constructor and Description |
---|
BasicMongoPersistentProperty(Property property,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy)
Creates a new
BasicMongoPersistentProperty . |
CachingMongoPersistentProperty(Property property,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy)
Creates a new
CachingMongoPersistentProperty . |
Modifier and Type | Method and Description |
---|---|
MongoPersistentEntity<?> |
MongoEntityMetadata.getCollectionEntity()
Returns the
MongoPersistentEntity that supposed to determine the collection to be queried. |
Constructor and Description |
---|
MongoQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory projectionFactory,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
MongoQueryMethod from the given Method . |
ReactiveMongoQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory projectionFactory,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
ReactiveMongoQueryMethod from the given Method . |
Constructor and Description |
---|
MappingMongoEntityInformation(MongoPersistentEntity<T> entity)
Creates a new
MappingMongoEntityInformation for the given MongoPersistentEntity . |
MappingMongoEntityInformation(MongoPersistentEntity<T> entity,
Class<ID> fallbackIdType)
Creates a new
MappingMongoEntityInformation for the given MongoPersistentEntity and fallback
identifier type. |
MappingMongoEntityInformation(MongoPersistentEntity<T> entity,
String customCollectionName)
Creates a new
MappingMongoEntityInformation for the given MongoPersistentEntity and custom
collection name. |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.