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)
|
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.
|
DBObject |
getMappedObject(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 DBObject getMappedObject(DBObject query, MongoPersistentEntity<?> entity)
DBObject
with the appropriate keys by using the
PersistentEntity
metadata.query
- must not be null.entity
- can be null.public DBObject getMappedKeyword(org.springframework.data.mongodb.core.convert.QueryMapper.Keyword keyword, MongoPersistentProperty property)
keyword
- property
- Copyright © 2012. All Rights Reserved.