|
Spring Data MongoDB | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mongodb.repository.query.ConvertingParameterAccessor
public class ConvertingParameterAccessor
Custom ParameterAccessor
that uses a MongoWriter
to serialize parameters into Mongo format.
Nested Class Summary | |
---|---|
static interface |
ConvertingParameterAccessor.PotentiallyConvertingIterator
Custom Iterator that adds a method to access elements in a converted manner. |
Constructor Summary | |
---|---|
ConvertingParameterAccessor(MongoWriter<?> writer,
MongoParameterAccessor delegate)
Creates a new ConvertingParameterAccessor with the given MongoWriter and delegate. |
Method Summary | |
---|---|
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. |
Pageable |
getPageable()
|
Sort |
getSort()
|
boolean |
hasBindableNullValue()
|
ConvertingParameterAccessor.PotentiallyConvertingIterator |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvertingParameterAccessor(MongoWriter<?> writer, MongoParameterAccessor delegate)
ConvertingParameterAccessor
with the given MongoWriter
and delegate.
writer
- must not be null.delegate
- must not be null.Method Detail |
---|
public ConvertingParameterAccessor.PotentiallyConvertingIterator iterator()
iterator
in interface Iterable<Object>
iterator
in interface ParameterAccessor
public Pageable getPageable()
getPageable
in interface ParameterAccessor
public Sort getSort()
getSort
in interface ParameterAccessor
public Object getBindableValue(int index)
getBindableValue
in interface 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 ParameterAccessor
|
Spring Data MongoDB | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |