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 and JmixDataRepositoryContext special parameters.
  • Field Summary

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

    TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmixParameters(org.springframework.data.repository.query.ParametersSource parametersSource)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected JmixParameters
     
    protected int
     
    int
     
    int
     
    boolean
     
    boolean
     

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

    getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getLimitIndex, getNumberOfParameters, getPageableIndex, getParameter, getScrollPositionIndex, getSortIndex, hasDynamicProjection, hasLimitParameter, hasPageableParameter, hasParameterAt, hasScrollPositionParameter, 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(org.springframework.data.repository.query.ParametersSource parametersSource)
  • Method Details

    • findParameterIndexByType

      protected int findParameterIndexByType(Class<?> clazz)
    • 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.
    • hasJmixContextIndex

      public boolean hasJmixContextIndex()
      Returns:
      whether JmixDataRepositoryContext argument is present in the Method's parameter list
    • getJmixContextIndex

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