站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

Expression (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.criterion
Class Expression

java.lang.Object
  extended byorg.hibernate.criterion.Restrictions
      extended byorg.hibernate.criterion.Expression

public final class Expression
extends Restrictions

This class is semi-deprecated. Use Restrictions.

Author:
Gavin King
See Also:
Restrictions

Method Summary
static Criterion sql(String sql)
          Apply a constraint expressed in SQL.
static Criterion sql(String sql, Object[] values, Type[] types)
          Apply a constraint expressed in SQL, with the given JDBC parameters.
static Criterion sql(String sql, Object value, Type type)
          Apply a constraint expressed in SQL, with the given JDBC parameter.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sql

public static Criterion sql(String sql,
                            Object[] values,
                            Type[] types)
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

sql

public static Criterion sql(String sql,
                            Object value,
                            Type 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

sql

public static Criterion sql(String sql)
Apply a constraint expressed in SQL. Any occurrences of {alias} will be replaced by the table alias.

Parameters:
sql -
Returns:
Criterion