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(Example<?> example)
|
com.mongodb.DBObject |
getMappedExample(Example<?> example,
MongoPersistentEntity<?> entity)
|
public MongoExampleMapper(MongoConverter converter)
MongoTypeMapper
given MongoConverter
.converter
- must not be null.public com.mongodb.DBObject getMappedExample(Example<?> example)
example
- must not be null.public com.mongodb.DBObject getMappedExample(Example<?> example, MongoPersistentEntity<?> entity)
example
- must not be null.entity
- must not be null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.