Class JpaParametersParameterAccessor

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

public class JpaParametersParameterAccessor extends 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 Details

    • JpaParametersParameterAccessor

      public JpaParametersParameterAccessor(Parameters<?,?> parameters, Object[] values)
      Parameters:
      parameters - must not be null.
      values - must not be null.
  • Method Details

    • getValue

      @Nullable public <T> T getValue(Parameter parameter)
    • getValues

      public Object[] getValues()
      Overrides:
      getValues in class ParametersParameterAccessor
    • potentiallyUnwrap

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