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, org.springframework.data.repository.query.ParameterAccessor
public class MongoParametersParameterAccessor
- extends org.springframework.data.repository.query.ParametersParameterAccessor
- implements MongoParameterAccessor
Mongo-specific ParametersParameterAccessor
to allow access to the Distance
parameter.
- Author:
- Oliver Gierke
Methods inherited from class org.springframework.data.repository.query.ParametersParameterAccessor |
getBindableValue, getPageable, getParameters, getSort, getValue, hasBindableNullValue, iterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.data.repository.query.ParameterAccessor |
getBindableValue, getPageable, getSort, hasBindableNullValue, iterator |
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 © 2012. All Rights Reserved.