org.hibernate.criterion
Class Expression

java.lang.Object
  extended by org.hibernate.criterion.Restrictions
      extended by org.hibernate.criterion.Expression

Deprecated. Use Restrictions.

@Deprecated
public final class Expression
extends Restrictions

See Also:
Restrictions

Method Summary
static Criterion sql(String sql)
          Deprecated. use Restrictions.sqlRestriction(String)
static Criterion sql(String sql, Object[] values, Type[] types)
          Deprecated. use Restrictions.sqlRestriction(String, Object[], Type[])
static Criterion sql(String sql, Object value, Type type)
          Deprecated. use Restrictions.sqlRestriction(String, Object, Type)
 
Methods inherited from class org.hibernate.criterion.Restrictions
allEq, and, and, between, conjunction, disjunction, eq, eqOrIsNull, eqProperty, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sql

@Deprecated
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

sql

@Deprecated
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

sql

@Deprecated
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


Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.