Class JpaParameters
java.lang.Object
org.springframework.data.repository.query.Parameters<JpaParameters,JpaParameters.JpaParameter>
org.springframework.data.jpa.repository.query.JpaParameters
- All Implemented Interfaces:
Iterable<JpaParameters.JpaParameter>
,Supplier<Stream<JpaParameters.JpaParameter>>
,Streamable<JpaParameters.JpaParameter>
Custom extension of
Parameters
discovering additional query parameter annotations.- Author:
- Thomas Darimont, Mark Paluch, RĂ©da Housni Alaoui
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from class org.springframework.data.repository.query.Parameters
TYPES
-
Constructor Summary
ModifierConstructorDescriptionJpaParameters
(Method method) Deprecated, for removal: This API element is subject to removal in a future version.JpaParameters
(ParametersSource parametersSource) Creates a newJpaParameters
instance from the givenParametersSource
.protected
JpaParameters
(ParametersSource parametersSource, Function<MethodParameter, JpaParameters.JpaParameter> parameterFactory) Creates a newJpaParameters
instance from the givenMethod
. -
Method Summary
Modifier and TypeMethodDescriptionprotected JpaParameters
createFrom
(List<JpaParameters.JpaParameter> parameters) protected JpaParameters.JpaParameter
createParameter
(MethodParameter parameter) Deprecated, for removal: This API element is subject to removal in a future version.boolean
Methods inherited from class org.springframework.data.repository.query.Parameters
getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getLimitIndex, getNumberOfParameters, getPageableIndex, getParameter, getScrollPositionIndex, getSortIndex, hasDynamicProjection, hasLimitParameter, hasPageableParameter, hasParameterAt, hasScrollPositionParameter, hasSortParameter, hasSpecialParameter, isBindable, iterator, potentiallySortsDynamically
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
-
JpaParameters
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.1, useJpaParameters(ParametersSource)
instead.Creates a newJpaParameters
instance from the givenMethod
.- Parameters:
method
- must not be null.
-
JpaParameters
Creates a newJpaParameters
instance from the givenParametersSource
.- Parameters:
parametersSource
- must not be null.- Since:
- 3.2.1
-
JpaParameters
protected JpaParameters(ParametersSource parametersSource, Function<MethodParameter, JpaParameters.JpaParameter> parameterFactory) Creates a newJpaParameters
instance from the givenMethod
.- Parameters:
parametersSource
- must not be null.parameterFactory
- must not be null.- Since:
- 3.2.1
-
-
Method Details
-
createParameter
@Deprecated(forRemoval=true) protected JpaParameters.JpaParameter createParameter(MethodParameter parameter) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createParameter
in classParameters<JpaParameters,
JpaParameters.JpaParameter>
-
createFrom
- Specified by:
createFrom
in classParameters<JpaParameters,
JpaParameters.JpaParameter>
-
hasLimitingParameters
public boolean hasLimitingParameters()- Returns:
true
if the method signature declares Limit or Pageable parameters.
-
JpaParameters(ParametersSource)
instead.