public class MongoExampleMapper extends Object
Example to a query DBObject.Example,
ExampleMatcher| Constructor and Description |
|---|
MongoExampleMapper(MongoConverter converter)
Create a new
MongoTypeMapper given MongoConverter. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
getMappedExample(org.springframework.data.domain.Example<?> example)
Returns the given
Example as DBObject holding matching values extracted from
Example.getProbe(). |
com.mongodb.DBObject |
getMappedExample(org.springframework.data.domain.Example<?> example,
MongoPersistentEntity<?> entity)
Returns the given
Example as DBObject holding matching values extracted from
Example.getProbe(). |
public MongoExampleMapper(MongoConverter converter)
MongoTypeMapper given MongoConverter.converter - must not be null.public com.mongodb.DBObject getMappedExample(org.springframework.data.domain.Example<?> example)
Example as DBObject holding matching values extracted from
Example.getProbe().example - must not be null.public com.mongodb.DBObject getMappedExample(org.springframework.data.domain.Example<?> example,
MongoPersistentEntity<?> entity)
Example as DBObject holding matching values extracted from
Example.getProbe().example - must not be null.entity - must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.