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>>
,org.springframework.data.util.Streamable<JpaParameters.JpaParameter>
public class JpaParameters
extends org.springframework.data.repository.query.Parameters<JpaParameters,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
CustomParameter
implementation adding parameters of typeTemporal
to the special ones. -
Field Summary
Fields inherited from class org.springframework.data.repository.query.Parameters
TYPES
-
Constructor Summary
ConstructorDescriptionJpaParameters
(Method method) Creates a newJpaParameters
instance from the givenMethod
. -
Method Summary
Modifier and TypeMethodDescriptionprotected JpaParameters
createFrom
(List<JpaParameters.JpaParameter> parameters) protected JpaParameters.JpaParameter
createParameter
(MethodParameter parameter) Methods inherited from class org.springframework.data.repository.query.Parameters
getBindableParameter, getBindableParameters, getDynamicProjectionIndex, getNumberOfParameters, getPageableIndex, getParameter, getScrollPositionIndex, getSortIndex, hasDynamicProjection, 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
Methods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, map, stream, toList, toSet
-
Constructor Details
-
JpaParameters
Creates a newJpaParameters
instance from the givenMethod
.- Parameters:
method
- must not be null.
-
-
Method Details
-
createParameter
- Overrides:
createParameter
in classorg.springframework.data.repository.query.Parameters<JpaParameters,
JpaParameters.JpaParameter>
-
createFrom
- Specified by:
createFrom
in classorg.springframework.data.repository.query.Parameters<JpaParameters,
JpaParameters.JpaParameter>
-