Package org.hibernate.criterion
Class Expression
- java.lang.Object
-
- org.hibernate.criterion.Restrictions
-
- org.hibernate.criterion.Expression
-
@Deprecated public final class Expression extends Restrictions
Deprecated.UseRestrictionsinsteadFactory for Criterion objects. Deprecated!- See Also:
Restrictions
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Criterionsql(java.lang.String sql)Deprecated.static Criterionsql(java.lang.String sql, java.lang.Object[] values, Type[] types)Deprecated.static Criterionsql(java.lang.String sql, java.lang.Object value, Type type)Deprecated.-
Methods inherited from class org.hibernate.criterion.Restrictions
allEq, and, and, between, conjunction, conjunction, disjunction, disjunction, eq, eqOrIsNull, eqProperty, fkEq, fkIsNotNull, fkIsNull, fkNe, ge, geProperty, gt, gtProperty, idEq, ilike, ilike, in, in, isEmpty, isNotEmpty, isNotNull, isNull, le, leProperty, like, like, lt, ltProperty, naturalId, ne, neOrIsNotNull, neProperty, not, or, or, sizeEq, sizeGe, sizeGt, sizeLe, sizeLt, sizeNe, sqlRestriction, sqlRestriction, sqlRestriction
-
-
-
-
Method Detail
-
sql
@Deprecated public static Criterion sql(java.lang.String sql, java.lang.Object[] values, Type[] types)
Deprecated.Apply a constraint expressed in SQL, with JDBC parameters. Any occurrences of {alias} will be replaced by the table alias.- Parameters:
sql- The sqlvalues- The parameter valuestypes- The parameter types- Returns:
- Criterion
-
sql
@Deprecated public static Criterion sql(java.lang.String sql, java.lang.Object value, Type type)
Deprecated.Apply a constraint expressed in SQL, with a JDBC parameter. Any occurrences of {alias} will be replaced by the table alias.- Parameters:
sql- The sqlvalue- The parameter valuetype- The parameter type- Returns:
- Criterion
-
sql
@Deprecated public static Criterion sql(java.lang.String sql)
Deprecated.Apply a constraint expressed in SQL with no parameters. Any occurrences of {alias} will be replaced by the table alias.- Parameters:
sql- The sql- Returns:
- Criterion
-
-