public class QueryMapper extends Object
| Constructor and Description |
|---|
QueryMapper(MongoConverter converter)
Creates a new
QueryMapper with the given MongoConverter. |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertId(Object id)
Converts the given raw id value into either
ObjectId or String. |
com.mongodb.DBObject |
getMappedKeyword(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword,
MongoPersistentProperty property)
Returns the mapped keyword considered defining a criteria for the given property.
|
com.mongodb.DBObject |
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. |
public QueryMapper(MongoConverter converter)
QueryMapper with the given MongoConverter.converter - must not be null.public com.mongodb.DBObject getMappedObject(com.mongodb.DBObject query,
MongoPersistentEntity<?> entity)
DBObject with the appropriate keys by using the
PersistentEntity metadata.query - must not be null.entity - can be null.public com.mongodb.DBObject getMappedKeyword(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword,
MongoPersistentProperty property)
keyword - property - Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.