public class MongoParametersParameterAccessor extends ParametersParameterAccessor implements MongoParameterAccessor
ParametersParameterAccessor
to allow access to the Distance
parameter.Constructor and Description |
---|
MongoParametersParameterAccessor(MongoQueryMethod method,
Object[] values)
Creates a new
MongoParametersParameterAccessor . |
Modifier and Type | Method and Description |
---|---|
Point |
getGeoNearLocation()
Returns the
Point to use for a geo-near query. |
Distance |
getMaxDistance()
Returns a
Distance to be applied to Mongo geo queries. |
getBindableValue, getPageable, getParameters, getSort, getValue, hasBindableNullValue, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBindableValue, getPageable, getSort, hasBindableNullValue, iterator
public MongoParametersParameterAccessor(MongoQueryMethod method, Object[] values)
MongoParametersParameterAccessor
.method
- must not be null.values
- must not be .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
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.