Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.criterion.Restrictions
org.hibernate.criterion.Expression
public final class Expression
extends Restrictions
Restrictions
Method Summary | |
static Criterion |
|
static Criterion |
|
static Criterion |
|
Methods inherited from class org.hibernate.criterion.Restrictions | |
allEq , and , between , conjunction , disjunction , eq , eqProperty , ge , geProperty , gt , gtProperty , idEq , ilike , ilike , in , in , isEmpty , isNotEmpty , isNotNull , isNull , le , leProperty , like , like , lt , ltProperty , naturalId , ne , neProperty , not , or , sizeEq , sizeGe , sizeGt , sizeLe , sizeLt , sizeNe , sqlRestriction , sqlRestriction , sqlRestriction |
public static Criterion sql(String sql)
Deprecated. use
Restrictions.sqlRestriction(String)
Apply a constraint expressed in SQL. Any occurrences of {alias} will be replaced by the table alias.
- Parameters:
sql
-
- Returns:
- Criterion
public static Criterion sql(String sql, Object value, Type type)
Deprecated. use
Restrictions.sqlRestriction(String,Object,Type)
Apply a constraint expressed in SQL, with the given JDBC parameter. Any occurrences of {alias} will be replaced by the table alias.
- Parameters:
sql
-value
-type
-
- Returns:
- Criterion
public static Criterion sql(String sql, Object[] values, Type[] types)
Deprecated. use
Restrictions.sqlRestriction(String,Object[],Type[])
Apply a constraint expressed in SQL, with the given JDBC parameters. Any occurrences of {alias} will be replaced by the table alias.
- Parameters:
sql
-values
-types
-
- Returns:
- Criterion