public class MongoParametersParameterAccessor extends org.springframework.data.repository.query.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
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 © 2012. All Rights Reserved.