Expressionpublic final class Expression extends Restrictions This class is semi-deprecated. Use Restrictions. |
Constructors Summary |
---|
private Expression()
//cannot be instantiated
|
Methods Summary |
---|
public static Criterion | sql(java.lang.String sql, java.lang.Object[] values, org.hibernate.type.Type[] types)Apply a constraint expressed in SQL, with the given JDBC
parameters. Any occurrences of {alias} will be
replaced by the table alias.
return new SQLCriterion(sql, values, types);
| public static Criterion | sql(java.lang.String sql, java.lang.Object value, org.hibernate.type.Type type)Apply a constraint expressed in SQL, with the given JDBC
parameter. Any occurrences of {alias} will be replaced
by the table alias.
return new SQLCriterion(sql, new Object[] { value }, new Type[] { type } );
| public static Criterion | sql(java.lang.String sql)Apply a constraint expressed in SQL. Any occurrences of {alias}
will be replaced by the table alias.
return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);
|
|