public class SQLCriterion extends Object implements Criterion
Modifier | Constructor and Description |
---|---|
protected |
SQLCriterion(String sql) |
protected |
SQLCriterion(String sql,
Object[] values,
Type[] types) |
protected |
SQLCriterion(String sql,
Object value,
Type type) |
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 SQLCriterion(String sql)
public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
Criterion
toSqlString
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overall criteria querypublic TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
Criterion
getTypedValues
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overall criteria queryCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.