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,
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.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() |
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,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
protected QueryMapper.Field |
QueryMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
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.
|
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. |
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,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
protected QueryMapper.Field |
QueryMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
Constructor and Description |
---|
QueryMapper.MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context)
Creates a new
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext . |
QueryMapper.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 |
---|---|
List<MongoPersistentEntityIndexResolver.IndexDefinitionHolder> |
MongoPersistentEntityIndexResolver.resolveIndexForEntity(MongoPersistentEntity<?> root)
Resolve the
IndexDefinition s for given root entity by traversing MongoPersistentProperty
scanning for index annotations Indexed , CompoundIndex and GeospatialIndex . |
Modifier and Type | Method and Description |
---|---|
void |
MongoPersistentEntityIndexCreator.onApplicationEvent(MappingContextEvent<MongoPersistentEntity<?>,MongoPersistentProperty> event) |
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,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy)
Creates a new
BasicMongoPersistentProperty . |
CachingMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy)
Creates a new
CachingMongoPersistentProperty . |
Constructor and Description |
---|
MongoQueryMethod(Method method,
RepositoryMetadata metadata,
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,
String customCollectionName)
Creates a new
MappingMongoEntityInformation for the given MongoPersistentEntity and custom
collection name. |
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.