Interface ParameterAccessor

All Superinterfaces:
Iterable<Object>
All Known Implementing Classes:
ParametersParameterAccessor

public interface ParameterAccessor extends Iterable<Object>
Interface to access method parameters. Allows dedicated access to parameters of special types
Author:
Oliver Gierke, Mark Paluch
  • Method Details

    • getScrollPosition

      @Nullable ScrollPosition getScrollPosition()
      Returns the ScrollPosition of the parameters, if available. Returns null otherwise.
      Returns:
    • getPageable

      Pageable getPageable()
      Returns the Pageable of the parameters, if available. Returns Pageable.unpaged() otherwise.
      Returns:
    • getSort

      Sort getSort()
      Returns the sort instance to be used for query creation. Will use a Sort parameter if available or the Sort contained in a Pageable if available. Returns Sort.unsorted() if no Sort can be found.
      Returns:
    • findDynamicProjection

      @Nullable Class<?> findDynamicProjection()
      Returns the dynamic projection type to be used when executing the query or null if none is defined.
      Returns:
      Since:
      2.2
    • getBindableValue

      @Nullable Object getBindableValue(int index)
      Returns the bindable value with the given index. Bindable means, that Pageable and Sort values are skipped without noticed in the index. For a method signature taking String, Pageable , String, #getBindableParameter(1) would return the second String value.
      Parameters:
      index -
      Returns:
    • hasBindableNullValue

      boolean hasBindableNullValue()
      Returns whether one of the bindable parameter values is null.
      Returns:
    • iterator

      Iterator<Object> iterator()
      Returns an iterator over all bindable parameters. This means parameters implementing Pageable or Sort will not be included in this Iterator.
      Specified by:
      iterator in interface Iterable<Object>
      Returns: