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 thePageable
of the parameters, if available.getSort()
Returns the sort instance to be used for query creation.boolean
Returns 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
-
getPageable
Pageable getPageable()Returns thePageable
of the parameters, if available. ReturnsPageable.unpaged()
otherwise.- Returns:
-
getSort
Sort getSort()Returns the sort instance to be used for query creation. Will use aSort
parameter if available or theSort
contained in aPageable
if available. ReturnsSort.unsorted()
if noSort
can 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, thatPageable
andSort
values are skipped without noticed in the index. For a method signature takingString
,Pageable
,String
,#getBindableParameter(1)
would return the secondString
value.- Parameters:
index
-- Returns:
-
hasBindableNullValue
boolean hasBindableNullValue()Returns whether one of the bindable parameter values is null.- Returns:
-
iterator
-