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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from class Parameters
TYPES -
Constructor Summary
ConstructorsModifierConstructorDescriptionJpaParameters(ParametersSource parametersSource) Creates a newJpaParametersinstance from the givenParametersSource.protectedJpaParameters(ParametersSource parametersSource, Function<MethodParameter, JpaParameters.JpaParameter> parameterFactory) Creates a newJpaParametersinstance from the givenMethod. -
Method Summary
Modifier and TypeMethodDescriptionprotected JpaParameterscreateFrom(List<JpaParameters.JpaParameter> parameters) booleanMethods inherited from class Parameters
getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getLimitIndex, getNumberOfParameters, getPageableIndex, getParameter, getScoreIndex, getScoreRangeIndex, getScrollPositionIndex, getSortIndex, getVectorIndex, hasDynamicProjection, hasLimitParameter, hasPageableParameter, hasParameterAt, hasScoreParameter, hasScoreRangeParameter, hasScrollPositionParameter, hasSortParameter, hasSpecialParameter, hasVectorParameter, isBindable, iterator, potentiallySortsDynamicallyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
JpaParameters
Creates a newJpaParametersinstance 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 newJpaParametersinstance from the givenMethod.- Parameters:
parametersSource- must not be null.parameterFactory- must not be null.- Since:
- 3.2.1
-
-
Method Details
-
createFrom
- Specified by:
createFromin classParameters<JpaParameters, JpaParameters.JpaParameter>
-
hasLimitingParameters
public boolean hasLimitingParameters()- Returns:
trueif the method signature declares Limit or Pageable parameters.
-