public class InExpression extends Object implements Criterion
Constrains the property to a specified list of values
| Modifier | Constructor and Description |
|---|---|
protected |
InExpression(String propertyName,
Object[] values)
Constructs an InExpression
|
| Modifier and Type | Method and Description |
|---|---|
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
toString() |
protected InExpression(String propertyName, Object[] values)
Constructs an InExpression
propertyName - The property name to checkvalues - The values to check againstRestrictions.in(String, java.util.Collection),
Restrictions#in(String, Object…)public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
CriterionRender the SQL fragment
toSqlString in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria querypublic TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
CriterionReturn typed values for all parameters in the rendered SQL fragment
getTypedValues in interface Criterioncriteria - The local criteriacriteriaQuery - The overal criteria queryCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.