Interface ParameterAccessor
- All Known Implementing Classes:
ParametersParameterAccessor
Interface to access method parameters. Allows dedicated access to parameters of special types
- Author:
- Oliver Gierke, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>Returns the dynamic projection type to be used when executing the query or null if none is defined.getBindableValue(int index) Returns the bindable value with the given index.Returns thePageableof the parameters, if available.Returns theScrollPositionof the parameters, if available.getSort()Returns the sort instance to be used for query creation.booleanReturns whether one of the bindable parameter values is null.iterator()Returns an iterator over all bindable parameters.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getScrollPosition
Returns theScrollPositionof the parameters, if available. Returnsnullotherwise.- Returns:
-
getPageable
Pageable getPageable()Returns thePageableof the parameters, if available. ReturnsPageable.unpaged()otherwise.- Returns:
-
getSort
Sort getSort()Returns the sort instance to be used for query creation. Will use aSortparameter if available or theSortcontained in aPageableif available. ReturnsSort.unsorted()if noSortcan be found.- Returns:
-
findDynamicProjection
Returns the dynamic projection type to be used when executing the query or null if none is defined.- Returns:
- Since:
- 2.2
-
getBindableValue
Returns the bindable value with the given index. Bindable means, thatPageableandSortvalues are skipped without noticed in the index. For a method signature takingString,Pageable,String,#getBindableParameter(1)would return the secondStringvalue.- Parameters:
index-- Returns:
-
hasBindableNullValue
boolean hasBindableNullValue()Returns whether one of the bindable parameter values is null.- Returns:
-
iterator
-