org.springframework.data.mongodb.repository.query
Class MongoParametersParameterAccessor
java.lang.Object
org.springframework.data.repository.query.ParametersParameterAccessor
org.springframework.data.mongodb.repository.query.MongoParametersParameterAccessor
- All Implemented Interfaces:
- Iterable<Object>, MongoParameterAccessor, ParameterAccessor
public class MongoParametersParameterAccessor
- extends ParametersParameterAccessor
- implements MongoParameterAccessor
Mongo-specific ParametersParameterAccessor to allow access to the Distance parameter.
- Author:
- Oliver Gierke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MongoParametersParameterAccessor
public MongoParametersParameterAccessor(MongoQueryMethod method,
Object[] values)
- Creates a new
MongoParametersParameterAccessor.
- Parameters:
method - must not be null.values - must not be .
getMaxDistance
public Distance getMaxDistance()
- Description copied from interface:
MongoParameterAccessor
- Returns a
Distance to be applied to Mongo geo queries.
- Specified by:
getMaxDistance in interface MongoParameterAccessor
- Returns:
- the maximum distance to apply to the geo query or null if there's no
Distance parameter
at all or the given value for it was null.
getGeoNearLocation
public Point getGeoNearLocation()
- Description copied from interface:
MongoParameterAccessor
- Returns the
Point to use for a geo-near query.
- Specified by:
getGeoNearLocation in interface MongoParameterAccessor
- Returns:
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.