Class ParameterBinder
java.lang.Object
org.springframework.data.jpa.repository.query.ParameterBinder
ParameterBinder
is used to bind method parameters to a Query
. This is usually done whenever an
AbstractJpaQuery
is executed.- Author:
- Oliver Gierke, Thomas Darimont, Mark Paluch, Christoph Strobl, Jens Schauder
-
Constructor Summary
ConstructorDescriptionParameterBinder
(JpaParameters parameters, Iterable<org.springframework.data.jpa.repository.query.QueryParameterSetter> parameterSetters, boolean useJpaForPaging) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(org.springframework.data.jpa.repository.query.QueryParameterSetter.BindableQuery query, JpaParametersParameterAccessor accessor, org.springframework.data.jpa.repository.query.QueryParameterSetter.ErrorHandling errorHandling) <T extends jakarta.persistence.Query>
Tbind
(T jpaQuery, org.springframework.data.jpa.repository.query.QueryParameterSetter.QueryMetadata metadata, JpaParametersParameterAccessor accessor)
-
Constructor Details
-
ParameterBinder
public ParameterBinder(JpaParameters parameters, Iterable<org.springframework.data.jpa.repository.query.QueryParameterSetter> parameterSetters, boolean useJpaForPaging) - Parameters:
parameters
- must not be null.parameterSetters
- must not be null.useJpaForPaging
- determines whetherQuery.setFirstResult(int)
andQuery.setMaxResults(int)
shall be used for paging.
-
-
Method Details
-
bind
public <T extends jakarta.persistence.Query> T bind(T jpaQuery, org.springframework.data.jpa.repository.query.QueryParameterSetter.QueryMetadata metadata, JpaParametersParameterAccessor accessor) -
bind
public void bind(org.springframework.data.jpa.repository.query.QueryParameterSetter.BindableQuery query, JpaParametersParameterAccessor accessor, org.springframework.data.jpa.repository.query.QueryParameterSetter.ErrorHandling errorHandling)
-