Class DynamicJpaParameterAccessor

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

public class DynamicJpaParameterAccessor extends org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor
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.
Since:
2.x.1
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get map param with value
    Get parameter values
    of(org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor accessor)
     
    of(org.springframework.data.repository.query.Parameters<?,?> parameters, Object[] values)
     

    Methods inherited from class org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor

    getValue

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

    findDynamicProjection, getBindableValue, getPageable, getParameters, 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

    • DynamicJpaParameterAccessor

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

      public DynamicJpaParameterAccessor(org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor accessor)
  • Method Details

    • of

      public static DynamicJpaParameterAccessor of(org.springframework.data.repository.query.Parameters<?,?> parameters, Object[] values)
    • of

      public static DynamicJpaParameterAccessor of(org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor accessor)
    • getValues

      public Object[] getValues()
      Get parameter values
      Overrides:
      getValues in class org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor
      Returns:
      values
    • getParamModel

      public Map<String,Object> getParamModel()
      Get map param with value
      Returns:
      a map