|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.repository.query.Parameters org.springframework.data.mongodb.repository.query.MongoParameters
public class MongoParameters
Custom extension of Parameters
discovering additional
Field Summary |
---|
Fields inherited from class org.springframework.data.repository.query.Parameters |
---|
TYPES |
Constructor Summary | |
---|---|
MongoParameters(Method method,
boolean isGeoNearMethod)
Creates a new MongoParameters instance from the given Method and MongoQueryMethod . |
Method Summary | |
---|---|
protected org.springframework.data.repository.query.Parameter |
createParameter(org.springframework.core.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. |
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 |
Constructor Detail |
---|
public MongoParameters(Method method, boolean isGeoNearMethod)
MongoParameters
instance from the given Method
and MongoQueryMethod
.
method
- must not be null.queryMethod
- must not be null.Method Detail |
---|
protected org.springframework.data.repository.query.Parameter createParameter(org.springframework.core.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |