public class ConvertingParameterAccessor extends Object implements MongoParameterAccessor
ParameterAccessor
that uses a MongoWriter
to serialize parameters into Mongo format.Modifier and Type | Class and Description |
---|---|
static interface |
ConvertingParameterAccessor.PotentiallyConvertingIterator
Custom
Iterator that adds a method to access elements in a converted manner. |
Constructor and Description |
---|
ConvertingParameterAccessor(MongoWriter<?> writer,
MongoParameterAccessor delegate)
Creates a new
ConvertingParameterAccessor with the given MongoWriter and delegate. |
Modifier and Type | Method and Description |
---|---|
Object |
getBindableValue(int index) |
Point |
getGeoNearLocation()
Returns the
Point to use for a geo-near query. |
Distance |
getMaxDistance()
Returns a
Distance to be applied to Mongo geo queries. |
org.springframework.data.domain.Pageable |
getPageable() |
org.springframework.data.domain.Sort |
getSort() |
boolean |
hasBindableNullValue() |
ConvertingParameterAccessor.PotentiallyConvertingIterator |
iterator() |
public ConvertingParameterAccessor(MongoWriter<?> writer, MongoParameterAccessor delegate)
ConvertingParameterAccessor
with the given MongoWriter
and delegate.writer
- must not be null.delegate
- must not be null.public ConvertingParameterAccessor.PotentiallyConvertingIterator iterator()
public org.springframework.data.domain.Pageable getPageable()
getPageable
in interface org.springframework.data.repository.query.ParameterAccessor
public org.springframework.data.domain.Sort getSort()
getSort
in interface org.springframework.data.repository.query.ParameterAccessor
public Object getBindableValue(int index)
getBindableValue
in interface org.springframework.data.repository.query.ParameterAccessor
public Distance getMaxDistance()
MongoParameterAccessor
Distance
to be applied to Mongo geo queries.getMaxDistance
in interface MongoParameterAccessor
Distance
parameter
at all or the given value for it was null.public Point getGeoNearLocation()
MongoParameterAccessor
Point
to use for a geo-near query.getGeoNearLocation
in interface MongoParameterAccessor
public boolean hasBindableNullValue()
hasBindableNullValue
in interface org.springframework.data.repository.query.ParameterAccessor
Copyright © 2012. All Rights Reserved.