org.springframework.data.mongodb.repository.query
Class MongoParameters

java.lang.Object
  extended by org.springframework.data.repository.query.Parameters
      extended by org.springframework.data.mongodb.repository.query.MongoParameters
All Implemented Interfaces:
Iterable<org.springframework.data.repository.query.Parameter>

public class MongoParameters
extends org.springframework.data.repository.query.Parameters

Custom extension of Parameters discovering additional

Author:
Oliver Gierke

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

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.
Method Detail

createParameter

protected org.springframework.data.repository.query.Parameter createParameter(org.springframework.core.MethodParameter parameter)
Overrides:
createParameter in class org.springframework.data.repository.query.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. All Rights Reserved.