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
|
Method Summary |
org.springframework.data.geo.Point |
getGeoNearLocation()
Returns the Point to use for a geo-near query. |
org.springframework.data.geo.Distance |
getMaxDistance()
Returns a Distance to be applied to Mongo geo queries. |
| 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 org.springframework.data.geo.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 org.springframework.data.geo.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-2014-2014 Pivotal Software, Inc.. All Rights Reserved.