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