Package | Description |
---|---|
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.
|
Constructor and Description |
---|
TypeBasedAggregationOperationContext(Class<?> type,
org.springframework.data.mapping.context.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 org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> |
MappingMongoConverter.mappingContext |
Modifier and Type | Method and Description |
---|---|
MongoPersistentEntity<?> |
QueryMapper.Field.getPropertyEntity()
Returns the
MongoPersistentEntity that field is conatined in. |
MongoPersistentEntity<?> |
QueryMapper.MetadataBackedField.getPropertyEntity() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> |
MappingMongoConverter.getMappingContext() |
Modifier and Type | Method and Description |
---|---|
protected Object |
QueryMapper.convertSimpleOrDBObject(Object source,
MongoPersistentEntity<?> entity)
Retriggers mapping if the given source is a
DBObject or simply invokes the |
com.mongodb.DBRef |
DefaultDbRefResolver.createDbRef(DBRef annotation,
MongoPersistentEntity<?> entity,
Object id) |
com.mongodb.DBRef |
DbRefResolver.createDbRef(DBRef annotation,
MongoPersistentEntity<?> entity,
Object id)
|
protected QueryMapper.Field |
UpdateMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
protected QueryMapper.Field |
QueryMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
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.
|
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.
|
com.mongodb.DBObject |
MongoExampleMapper.getMappedExample(org.springframework.data.domain.Example<?> example,
MongoPersistentEntity<?> entity)
Returns the given
Example as DBObject holding matching values extracted from
Example.getProbe() . |
com.mongodb.DBObject |
QueryMapper.getMappedFields(com.mongodb.DBObject fieldsObject,
MongoPersistentEntity<?> entity)
Maps fields to retrieve to the
MongoPersistentEntity s properties. |
protected com.mongodb.DBObject |
QueryMapper.getMappedKeyword(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword,
MongoPersistentEntity<?> entity)
Returns the given
DBObject representing a keyword by mapping the keyword's value. |
com.mongodb.DBObject |
QueryMapper.getMappedObject(com.mongodb.DBObject query,
MongoPersistentEntity<?> entity)
Replaces the property keys used in the given
DBObject with the appropriate keys by using the
PersistentEntity metadata. |
com.mongodb.DBObject |
QueryMapper.getMappedSort(com.mongodb.DBObject sortObject,
MongoPersistentEntity<?> entity)
Maps fields used for sorting to the
MongoPersistentEntity s properties. |
protected void |
MappingMongoConverter.writeInternal(Object obj,
com.mongodb.DBObject dbo,
MongoPersistentEntity<?> entity) |
Modifier and Type | Method and Description |
---|---|
protected QueryMapper.Field |
UpdateMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
protected QueryMapper.Field |
QueryMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
Constructor and Description |
---|
MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context)
Creates a new
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext . |
MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context,
MongoPersistentProperty property)
Creates a new
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext with the given MongoPersistentProperty . |
Constructor and Description |
---|
MappingMongoConverter(DbRefResolver dbRefResolver,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
|
MappingMongoConverter(MongoDbFactory mongoDbFactory,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Deprecated.
use the constructor taking a
DbRefResolver instead. |
MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context)
Creates a new
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext . |
MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
org.springframework.data.mapping.context.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 | Class and Description |
---|---|
class |
BasicMongoPersistentEntity<T>
MongoDB specific
MongoPersistentEntity implementation that adds Mongo specific meta-data such as the
collection name and the like. |
Constructor and Description |
---|
BasicMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
Creates a new
BasicMongoPersistentProperty . |
CachingMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
Creates a new
CachingMongoPersistentProperty . |
Constructor and Description |
---|
MongoQueryMethod(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 new
MongoQueryMethod 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–2017 Pivotal Software, Inc.. All rights reserved.