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
ConstructorsConstructorDescriptionJpaParametersParameterAccessor(org.springframework.data.repository.query.Parameters<?, ?> parameters, Object[] values) Creates a newParametersParameterAccessor. -
Method Summary
Methods inherited from class org.springframework.data.repository.query.ParametersParameterAccessor
findDynamicProjection, getBindableValue, getPageable, getParameters, getScrollPosition, 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
-
JpaParametersParameterAccessor
public JpaParametersParameterAccessor(org.springframework.data.repository.query.Parameters<?, ?> parameters, Object[] values) Creates a newParametersParameterAccessor.- 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
- Overrides:
getValuesin classorg.springframework.data.repository.query.ParametersParameterAccessor
-
potentiallyUnwrap
Apply potential unwrapping toparameterValue.- Parameters:
parameterValue-- Since:
- 3.0.4
-