public final class ResultSpecificationHelper extends Object
FilterResultSpecification
stuffModifier and Type | Method and Description |
---|---|
static void |
configureQuery(org.hibernate.Query query,
List params,
ResultSpecification filterSpecification)
Configure the query by setting the first and max result properties
|
static void |
configureQuery(org.hibernate.Query query,
ResultSpecification filterSpecification)
Configure the query by setting the first and max result properties
|
static void |
setParameters(org.hibernate.Query query,
List params)
Set the parameters in the query
|
static void |
setParameters(org.hibernate.Query query,
Object... params)
Set the parameters in the query
|
public static void configureQuery(org.hibernate.Query query, List params, ResultSpecification filterSpecification)
query
- The query to configureparams
- The parameters to set at the query. Can be null.filterSpecification
- The filter specification to use, if null nothing happens herepublic static void configureQuery(org.hibernate.Query query, ResultSpecification filterSpecification)
query
- The query to configurefilterSpecification
- The filter specification to use, if null nothing happens herepublic static void setParameters(org.hibernate.Query query, List params)
query
- The query object with the parametersparams
- The parameters to setpublic static void setParameters(org.hibernate.Query query, Object... params)
query
- The query object with the parametersparams
- The parameters to setCopyright © 2019 Communote team. All rights reserved.