クラス 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
  • フィールドの詳細

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

  • メソッドの詳細

    • hasScrollPositionParameter

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

      public int getScrollPositionIndex()
      可能な場合は、ScrollPosition MethodSE パラメーターの索引を返します。MethodSE のパラメーターリストに ScrollPosition 引数がない場合、-1 を返します。
      戻り値:
      スクロール位置インデックス
      導入:
      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