public class MongoParameters
extends org.springframework.data.repository.query.Parameters
Parameters
discovering additionalConstructor and Description |
---|
MongoParameters(Method method,
boolean isGeoNearMethod)
|
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.repository.query.Parameter |
createParameter(MethodParameter parameter) |
int |
getDistanceIndex()
Returns the index of a
Distance parameter to be used for geo queries. |
int |
getNearIndex()
Returns the index of the parameter to be used to start a geo-near query from.
|
getBindableParameter, getBindableParameters, getNumberOfParameters, getPageableIndex, getParameter, getSortIndex, hasPageableParameter, hasParameterAt, hasSortParameter, hasSpecialParameter, isBindable, iterator, potentiallySortsDynamically
public MongoParameters(Method method, boolean isGeoNearMethod)
method
- must not be null.queryMethod
- must not be null.protected org.springframework.data.repository.query.Parameter createParameter(MethodParameter parameter)
createParameter
in class org.springframework.data.repository.query.Parameters
public int getDistanceIndex()
Distance
parameter to be used for geo queries.public int getNearIndex()
Copyright © 2012. All Rights Reserved.