org.springframework.data.mongodb.repository.query
Interface MongoParameterAccessor

All Superinterfaces:
Iterable<Object>, org.springframework.data.repository.query.ParameterAccessor
All Known Implementing Classes:
ConvertingParameterAccessor, MongoParametersParameterAccessor

public interface MongoParameterAccessor
extends org.springframework.data.repository.query.ParameterAccessor

Mongo-specific ParameterAccessor exposing a maximum distance parameter.

Author:
Oliver Gierke

Method Summary
 Point getGeoNearLocation()
          Returns the Point to use for a geo-near query.
 Distance getMaxDistance()
          Returns a Distance to be applied to Mongo geo queries.
 
Methods inherited from interface org.springframework.data.repository.query.ParameterAccessor
getBindableValue, getPageable, getSort, iterator
 

Method Detail

getMaxDistance

Distance getMaxDistance()
Returns a Distance to be applied to Mongo geo queries.

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

Point getGeoNearLocation()
Returns the Point to use for a geo-near query.

Returns:


Copyright © 2011. All Rights Reserved.