Class MongoExampleMapper
java.lang.Object
org.springframework.data.mongodb.core.convert.MongoExampleMapper
Mapper from
Example
to a query Document
.- Since:
- 1.8
- Author:
- Christoph Strobl, Mark Paluch, Jens Schauder
- See Also:
-
Constructor Summary
ConstructorDescriptionMongoExampleMapper
(MongoConverter converter) Create a newMongoTypeMapper
givenMongoConverter
. -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.Document
getMappedExample
(Example<?> example) org.bson.Document
getMappedExample
(Example<?> example, MongoPersistentEntity<?> entity)
-
Constructor Details
-
MongoExampleMapper
Create a newMongoTypeMapper
givenMongoConverter
.- Parameters:
converter
- must not be null.
-
-
Method Details
-
getMappedExample
- Parameters:
example
- must not be null.- Returns:
-
getMappedExample
- Parameters:
example
- must not be null.entity
- must not be null.- Returns:
-