Class JpaParametersParameterAccessor

java.lang.Object
org.springframework.data.repository.query.ParametersParameterAccessor
org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor
All Implemented Interfaces:
Iterable<Object>, org.springframework.data.repository.query.ParameterAccessor

public class JpaParametersParameterAccessor extends org.springframework.data.repository.query.ParametersParameterAccessor
ParameterAccessor based on an Parameters instance. It also offers access to all the values, not just the bindable ones based on a JpaParameters.JpaParameter instance.
Author:
Jens Schauder, Mark Paluch, Greg Turnquist
  • Constructor Summary

    Constructors
    Constructor
    Description
    JpaParametersParameterAccessor(org.springframework.data.repository.query.Parameters<?,?> parameters, Object[] values)
    Creates a new ParametersParameterAccessor.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getValue(org.springframework.data.repository.query.Parameter parameter)
     
     
    protected Object
    potentiallyUnwrap(Object parameterValue)
    Apply potential unwrapping to parameterValue.

    Methods inherited from class org.springframework.data.repository.query.ParametersParameterAccessor

    findDynamicProjection, getBindableValue, getPageable, getParameters, getScrollPosition, getSort, getValue, hasBindableNullValue, iterator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • JpaParametersParameterAccessor

      public JpaParametersParameterAccessor(org.springframework.data.repository.query.Parameters<?,?> parameters, Object[] values)
      Creates a new ParametersParameterAccessor.
      Parameters:
      parameters - must not be null.
      values - must not be null.
  • Method Details

    • getValue

      @Nullable public <T> T getValue(org.springframework.data.repository.query.Parameter parameter)
    • getValues

      public Object[] getValues()
      Overrides:
      getValues in class org.springframework.data.repository.query.ParametersParameterAccessor
    • potentiallyUnwrap

      protected Object potentiallyUnwrap(Object parameterValue)
      Apply potential unwrapping to parameterValue.
      Parameters:
      parameterValue -
      Since:
      3.0.4