クラス Parameters<S extends Parameters<S,T>, T extends Parameter>

java.lang.ObjectSE
org.springframework.data.repository.query.Parameters<S,T>
実装されているすべてのインターフェース:
IterableSE<T>, SupplierSE<StreamSE<T>>, Streamable<T>
既知の直属サブクラス
DefaultParameters

public abstract class Parameters<S extends Parameters<S,T>, T extends Parameter> extends ObjectSE implements Streamable<T>
クエリパラメーターにバインドするか、クエリに個別に適用する必要があるメソッドパラメーターを抽象化します。
作成者:
Oliver Gierke, Christoph Strobl, Johannes Englmeier
  • フィールドの詳細

  • コンストラクターの詳細

    • Parameters

      protected Parameters(ParametersSource parametersSource, FunctionSE<MethodParameter, T> parameterFactory)
      指定された MethodSE および FunctionSE の新しい Parameters インスタンスを作成して、MethodParameter から Parameter インスタンスを作成します。
      パラメーター:
      parametersSource - null であってはなりません。
      parameterFactory - null であってはなりません。
      導入:
      3.2.1
    • Parameters

      protected Parameters(ListSE<T> originals)
      指定された Parameter を新しいコンテキストに配置して、新しい Parameters インスタンスを作成します。
      パラメーター:
      originals -
  • メソッドの詳細

    • hasVectorParameter

      public boolean hasVectorParameter()
      Parameters が作成されたメソッドに Vector 引数が含まれているかどうかを返します。
      戻り値:
      導入:
      4.0
    • getVectorIndex

      public int getVectorIndex()
      Vector 引数のインデックスを返します。
      戻り値:
      引数のインデックス。定義されていない場合は -1。
      導入:
      4.0
    • hasScoreParameter

      public boolean hasScoreParameter()
      Parameters が作成されたメソッドに Score 引数が含まれているかどうかを返します。
      戻り値:
      導入:
      4.0
    • getScoreIndex

      public int getScoreIndex()
      Score 引数のインデックスを返します。
      戻り値:
      引数のインデックス。定義されていない場合は -1。
      導入:
      4.0
    • hasScoreRangeParameter

      public boolean hasScoreRangeParameter()
      Parameters が作成されたメソッドに、Range または Score 引数が含まれているかどうかを返します。
      戻り値:
      導入:
      4.0
    • getScoreRangeIndex

      public int getScoreRangeIndex()
      ScoreRange を含む引数のインデックスを返します。
      戻り値:
      引数のインデックス。定義されていない場合は -1。
      導入:
      4.0
    • hasScrollPositionParameter

      public boolean hasScrollPositionParameter()
      Parameters が作成されたメソッドに ScrollPosition 引数が含まれているかどうかを返します。
      戻り値:
      導入:
      3.1
    • getScrollPositionIndex

      public int getScrollPositionIndex()
      可能な場合は、ScrollPosition MethodSE パラメーターの索引を返します。MethodSE のパラメーターリストに ScrollPosition 引数がない場合、-1 を返します。
      戻り値:
      scrollPositionIndex
      導入:
      3.1
    • hasPageableParameter

      public boolean hasPageableParameter()
      Parameters が作成されたメソッドに Pageable 引数が含まれているかどうかを返します。
      戻り値:
    • getPageableIndex

      public int getPageableIndex()
      可能な場合は、Pageable MethodSE パラメーターの索引を返します。MethodSE のパラメーターリストに Pageable 引数がない場合、-1 を返します。
      戻り値:
      pageableIndex
    • getSortIndex

      public int getSortIndex()
      可能な場合は、Sort MethodSE パラメーターの索引を返します。MethodSE のパラメーターリストに Sort 引数がない場合、-1 を返します。
      戻り値:
    • hasSortParameter

      public boolean hasSortParameter()
      Parameters が作成されたメソッドに Sort 引数が含まれているかどうかを返します。
      戻り値:
    • hasLimitParameter

      public boolean hasLimitParameter()
      Parameters が作成されたメソッドに Limit 引数が含まれているかどうかを返します。
      戻り値:
      導入:
      3.2
    • getLimitIndex

      public int getLimitIndex()
      可能な場合は、Limit MethodSE パラメーターの索引を返します。MethodSE のパラメーターリストに Limit 引数がない場合、-1 を返します。
      戻り値:
      導入:
      3.2
    • getDynamicProjectionIndex

      public int getDynamicProjectionIndex()
      動的射影型を表すパラメーターのインデックスを返します。そのようなパラメーターが存在しない場合は -1 を返します。
      戻り値:
    • hasDynamicProjection

      public boolean hasDynamicProjection()
      動的射影を表すパラメーターが存在するかどうかを返します。
      戻り値:
    • potentiallySortsDynamically

      public boolean potentiallySortsDynamically()
      パラメーター内に Sort パラメーターが見つかる可能性があるかどうかを返します。
      戻り値:
    • getParameter

      public T getParameter(int index)
      指定されたインデックスを持つパラメーターを返します。
      パラメーター:
      index -
      戻り値:
    • hasParameterAt

      public boolean hasParameterAt(int position)
      指定された位置にパラメーターがあるかどうかを返します。
      パラメーター:
      position -
      戻り値:
    • hasSpecialParameter

      public boolean hasSpecialParameter()
      メソッドシグネチャーに特別なパラメーター(PageableSort)の 1 つが含まれているかどうかを返します。
      戻り値:
    • getNumberOfParameters

      public int getNumberOfParameters()
      パラメーターの数を返します。
      戻り値:
    • getBindableParameters

      public S getBindableParameters()
      事実上すべての特別なパラメーターが削除された Parameters インスタンスを返します。
      戻り値:
      関連事項:
    • createFrom

      protected abstract S createFrom(ListSE<T> parameters)
    • getBindableParameter

      public T getBindableParameter(int bindableIndex)
      指定されたインデックスを持つバインド可能なパラメーターを返します。(Pageable pageable, String name) のシグニチャーを持つメソッドの場合、#getBindableParameter(0) を呼び出すと、StringSE パラメーターが返されます。
      パラメーター:
      bindableIndex -
      戻り値:
    • isBindable

      public static boolean isBindable(ClassSE<?> type)
      指定された型がバインド可能なパラメーターであるかどうかを返します。
      パラメーター:
      type -
      戻り値:
    • iterator

      public IteratorSE<T> iterator()
      次で指定:
      インターフェース IterableSE<S extends Parameters<S,T>>iterator