クラス 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
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクター修飾子コンストラクター説明protectedParameters(MethodSE method, FunctionSE<MethodParameter, T> parameterFactory) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。protectedParameters(ListSE<T> originals) 指定されたParameterを新しいコンテキストに配置して、新しいParametersインスタンスを作成します。protectedParameters(ParametersSource parametersSource, FunctionSE<MethodParameter, T> parameterFactory) 指定されたMethodSE およびFunctionSE の新しいParametersインスタンスを作成して、MethodParameterからParameterインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明protected abstract ScreateFrom(ListSE<T> parameters) getBindableParameter(int bindableIndex) 指定されたインデックスを持つバインド可能なパラメーターを返します。事実上すべての特別なパラメーターが削除されたParametersインスタンスを返します。int動的射影型を表すパラメーターのインデックスを返します。intintパラメーターの数を返します。intgetParameter(int index) 指定されたインデックスを持つパラメーターを返します。int可能な場合は、ScrollPositionMethodSE パラメーターの索引を返します。intboolean動的射影を表すパラメーターが存在するかどうかを返します。booleanParametersが作成されたメソッドにLimit引数が含まれているかどうかを返します。booleanParametersが作成されたメソッドにPageable引数が含まれているかどうかを返します。booleanhasParameterAt(int position) 指定された位置にパラメーターがあるかどうかを返します。booleanParametersが作成されたメソッドにScrollPosition引数が含まれているかどうかを返します。booleanParametersが作成されたメソッドにSort引数が含まれているかどうかを返します。booleanstatic booleanisBindable(ClassSE<?> type) 指定された型がバインド可能なパラメーターであるかどうかを返します。iterator()booleanパラメーター内にSortパラメーターが見つかる可能性があるかどうかを返します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース java.lang.IterableSE から継承されたメソッド
forEachSE, spliterator
フィールドの詳細
TYPES
コンストラクターの詳細
Parameters
@DeprecatedSE(since="3.2.1", forRemoval=true) protected Parameters(MethodSE method, FunctionSE<MethodParameter, T> parameterFactory) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。指定されたMethodSE およびFunctionSE の新しいParametersインスタンスを作成して、MethodParameterからParameterインスタンスを作成します。- パラメーター:
method- null であってはなりません。parameterFactory- null であってはなりません。- 導入:
- 3.0.2
Parameters
protected Parameters(ParametersSource parametersSource, FunctionSE<MethodParameter, T> parameterFactory) 指定されたMethodSE およびFunctionSE の新しいParametersインスタンスを作成して、MethodParameterからParameterインスタンスを作成します。- パラメーター:
parametersSource- null であってはなりません。parameterFactory- null であってはなりません。- 導入:
- 3.2.1
Parameters
指定されたParameterを新しいコンテキストに配置して、新しいParametersインスタンスを作成します。- パラメーター:
originals-
メソッドの詳細
hasScrollPositionParameter
public boolean hasScrollPositionParameter()Parametersが作成されたメソッドにScrollPosition引数が含まれているかどうかを返します。- 戻り値:
- 導入:
- 3.1
getScrollPositionIndex
public int getScrollPositionIndex()- 戻り値:
- scrollPositionIndex
- 導入:
- 3.1
hasPageableParameter
public boolean hasPageableParameter()Parametersが作成されたメソッドにPageable引数が含まれているかどうかを返します。- 戻り値:
getPageableIndex
public int getPageableIndex()- 戻り値:
- pageableIndex
getSortIndex
public int getSortIndex()- 戻り値:
hasSortParameter
public boolean hasSortParameter()Parametersが作成されたメソッドにSort引数が含まれているかどうかを返します。- 戻り値:
hasLimitParameter
public boolean hasLimitParameter()Parametersが作成されたメソッドにLimit引数が含まれているかどうかを返します。- 戻り値:
- 導入:
- 3.2
getLimitIndex
public int getLimitIndex()- 戻り値:
- 導入:
- 3.2
getDynamicProjectionIndex
public int getDynamicProjectionIndex()動的射影型を表すパラメーターのインデックスを返します。そのようなパラメーターが存在しない場合は -1 を返します。- 戻り値:
hasDynamicProjection
public boolean hasDynamicProjection()動的射影を表すパラメーターが存在するかどうかを返します。- 戻り値:
potentiallySortsDynamically
public boolean potentiallySortsDynamically()パラメーター内にSortパラメーターが見つかる可能性があるかどうかを返します。- 戻り値:
getParameter
指定されたインデックスを持つパラメーターを返します。- パラメーター:
index-- 戻り値:
hasParameterAt
public boolean hasParameterAt(int position) 指定された位置にパラメーターがあるかどうかを返します。- パラメーター:
position-- 戻り値:
hasSpecialParameter
public boolean hasSpecialParameter()- 戻り値:
getNumberOfParameters
public int getNumberOfParameters()パラメーターの数を返します。- 戻り値:
getBindableParameters
事実上すべての特別なパラメーターが削除されたParametersインスタンスを返します。- 戻り値:
- 関連事項:
Parameter.TYPESParameter.isSpecialParameter()
createFrom
getBindableParameter
指定されたインデックスを持つバインド可能なパラメーターを返します。(Pageable pageable, String name)のシグニチャーを持つメソッドの場合、#getBindableParameter(0)を呼び出すと、StringSE パラメーターが返されます。- パラメーター:
bindableIndex-- 戻り値:
isBindable
指定された型がバインド可能なパラメーターであるかどうかを返します。- パラメーター:
type-- 戻り値:
iterator
- 次で指定:
- インターフェース
IterableSE<S extends Parameters<S,のT>> iterator
Parameters(org.springframework.data.repository.query.ParametersSource,java.util.function.Function<org.springframework.core.MethodParameter,T>)を使用してください。