Class JmixParameters

java.lang.Object
org.springframework.data.repository.query.Parameters<JmixParameters,JmixParameter>
io.jmix.core.impl.repository.query.JmixParameters
All Implemented Interfaces:
Iterable<JmixParameter>, Supplier<Stream<JmixParameter>>, org.springframework.data.util.Streamable<JmixParameter>

public class JmixParameters extends org.springframework.data.repository.query.Parameters<JmixParameters,JmixParameter>
Parameters extension required to support FetchPlan special parameter.
  • Field Summary

    Fields inherited from class org.springframework.data.repository.query.Parameters

    TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected JmixParameters
     
    protected JmixParameter
    createParameter(org.springframework.core.MethodParameter parameter)
     
    protected int
     
    int
     
    boolean
     

    Methods inherited from class org.springframework.data.repository.query.Parameters

    getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getNumberOfParameters, getPageableIndex, getParameter, getSortIndex, hasDynamicProjection, 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

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.springframework.data.util.Streamable

    and, and, and, and, filter, flatMap, get, isEmpty, map, stream, toList, toSet
  • Constructor Details

    • JmixParameters

      public JmixParameters(Method method)
  • Method Details

    • findFetchPlanParameterIndex

      protected int findFetchPlanParameterIndex()
    • createParameter

      protected JmixParameter createParameter(org.springframework.core.MethodParameter parameter)
      Specified by:
      createParameter in class org.springframework.data.repository.query.Parameters<JmixParameters,JmixParameter>
    • createFrom

      protected JmixParameters createFrom(List<JmixParameter> parameters)
      Specified by:
      createFrom in class org.springframework.data.repository.query.Parameters<JmixParameters,JmixParameter>
    • hasFetchPlanParameter

      public boolean hasFetchPlanParameter()
      Returns:
      whether FetchPlan argument is present in the Method's parameter list
    • getFetchPlanIndex

      public int getFetchPlanIndex()
      Returns:
      the index of the FetchPlan Method parameter if available. Will return -1 if there is no FetchPlan argument in the Method's parameter list.