org.springframework.data.mongodb.repository.query
Class MongoParameters
java.lang.Object
org.springframework.data.repository.query.Parameters
org.springframework.data.mongodb.repository.query.MongoParameters
- All Implemented Interfaces:
- Iterable<Parameter>
public class MongoParameters
- extends Parameters
Custom extension of Parameters discovering additional
- Author:
- Oliver Gierke
| Fields inherited from class org.springframework.data.repository.query.Parameters |
TYPES |
| Methods inherited from class org.springframework.data.repository.query.Parameters |
getBindableParameter, getBindableParameters, getNumberOfParameters, getPageableIndex, getParameter, getSortIndex, hasPageableParameter, hasParameterAt, hasSortParameter, hasSpecialParameter, isBindable, iterator, potentiallySortsDynamically |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MongoParameters
public MongoParameters(Method method,
boolean isGeoNearMethod)
- Creates a new
MongoParameters instance from the given Method and MongoQueryMethod.
- Parameters:
method - must not be null.queryMethod - must not be null.
createParameter
protected Parameter createParameter(MethodParameter parameter)
- Overrides:
createParameter in class Parameters
getDistanceIndex
public int getDistanceIndex()
- Returns the index of a
Distance parameter to be used for geo queries.
- Returns:
getNearIndex
public int getNearIndex()
- Returns the index of the parameter to be used to start a geo-near query from.
- Returns:
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.