Class MongoParameters

All Implemented Interfaces:
Iterable<MongoParameters.MongoParameter>, Supplier<Stream<MongoParameters.MongoParameter>>, Streamable<MongoParameters.MongoParameter>

public class MongoParameters extends Parameters<MongoParameters, MongoParameters.MongoParameter>
Custom extension of Parameters discovering additional
Author:
Oliver Gierke, Christoph Strobl, Mark Paluch, Thomas Darimont
  • Constructor Details

    • MongoParameters

      public MongoParameters(ParametersSource parametersSource)
      Creates a new MongoParameters instance from the given Method and MongoQueryMethod.
      Parameters:
      parametersSource - must not be null.
      Since:
      4.5
    • MongoParameters

      public MongoParameters(ParametersSource parametersSource, boolean isGeoNearMethod)
      Creates a new MongoParameters instance from the given Method and MongoQueryMethod.
      Parameters:
      parametersSource - must not be null.
      isGeoNearMethod - indicate if this is a geo-spatial query method
    • MongoParameters

      protected MongoParameters()
  • Method Details

    • getMaxDistanceIndex

      public int getMaxDistanceIndex()
      Returns the index of the Distance parameter to be used for max distance in geo queries.
      Returns:
      Since:
      1.7
    • getNearIndex

      public int getNearIndex()
      Returns the index of the parameter to be used to start a geo-near query from.
      Returns:
    • getFullTextParameterIndex

      public int getFullTextParameterIndex()
      Returns the index of the parameter to be used as a text query param
      Returns:
      Since:
      1.6
    • hasFullTextParameter

      public boolean hasFullTextParameter()
      Returns:
      Since:
      1.6
    • getRangeIndex

      public int getRangeIndex()
      Returns:
      Since:
      1.7
    • getCollationParameterIndex

      public int getCollationParameterIndex()
      Returns the index of the Collation parameter or -1 if not present.
      Returns:
      -1 if not set.
      Since:
      2.2
    • getUpdateIndex

      public int getUpdateIndex()
      Returns the index of the UpdateDefinition parameter or -1 if not present.
      Returns:
      -1 if not present.
      Since:
      3.4
    • createFrom