public class ParameterBinder extends Object
ParameterBinder is used to bind method parameters to a Query. This is usually done whenever an
AbstractJpaQuery is executed.| Constructor and Description |
|---|
ParameterBinder(JpaParameters parameters,
Iterable<org.springframework.data.jpa.repository.query.QueryParameterSetter> parameterSetters,
boolean useJpaForPaging)
|
| Modifier and Type | Method and Description |
|---|---|
<T extends javax.persistence.Query> |
bind(T jpaQuery,
Object[] values) |
<T extends javax.persistence.Query> |
bind(T jpaQuery,
Object[] values,
org.springframework.data.jpa.repository.query.QueryParameterSetter.ErrorHandling errorHandling) |
public ParameterBinder(JpaParameters parameters, Iterable<org.springframework.data.jpa.repository.query.QueryParameterSetter> parameterSetters, boolean useJpaForPaging)
parameters - must not be null.parameterSetters - must not be null.useJpaForPaging - determines whether Query.setFirstResult(int) and Query.setMaxResults(int)
shall be used for paging.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.