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
ConstructorsConstructorDescriptionDynamicJpaParameterAccessor(org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor accessor) DynamicJpaParameterAccessor(org.springframework.data.repository.query.Parameters<?, ?> parameters, Object[] values) Creates a newJpaParametersParameterAccessor. -
Method Summary
Modifier and TypeMethodDescriptionGet map param with valueObject[]Get parameter valuesstatic DynamicJpaParameterAccessorof(org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor accessor) static DynamicJpaParameterAccessorMethods inherited from class org.springframework.data.jpa.repository.query.JpaParametersParameterAccessor
getValueMethods inherited from class org.springframework.data.repository.query.ParametersParameterAccessor
findDynamicProjection, getBindableValue, getPageable, getParameters, getSort, getValue, hasBindableNullValue, iteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DynamicJpaParameterAccessor
public DynamicJpaParameterAccessor(org.springframework.data.repository.query.Parameters<?, ?> parameters, Object[] values) Creates a newJpaParametersParameterAccessor.- 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
Get parameter values- Overrides:
getValuesin classorg.springframework.data.jpa.repository.query.JpaParametersParameterAccessor- Returns:
- values
-
getParamModel
Get map param with value- Returns:
- a map
-