Top Constructors Methods
org.hibernate.criterion

public final Class Expression

extends Restrictions
Class Inheritance
Imports
org.hibernate.type.Type, org.hibernate.util.ArrayHelper

Deprecated

Use Restrictions.

Author
Gavin King
See Also
Restrictions

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Criterion

Returns:

Criterion
sql
(String sql, Object[] values, Type[] types)

Apply a constraint expressed in SQL, with the given JDBC parameters.
public static Criterion

Returns:

Criterion
sql
(String sql, Object value, Type type)

Apply a constraint expressed in SQL, with the given JDBC parameter.
public static Criterion

Returns:

Criterion
sql
(String sql)

Apply a constraint expressed in SQL.
Inherited from org.hibernate.criterion.Restrictions:
allEqandbetweenconjunctiondisjunctioneqeqPropertygegePropertygtgtPropertyidEqilikeilikeininisEmptyisNotEmptyisNotNullisNulllelePropertylikelikeltltPropertynaturalIdnenePropertynotorsizeEqsizeGesizeGtsizeLesizeLtsizeNesqlRestrictionsqlRestrictionsqlRestriction

Constructor Detail

Expressionback to summary
private Expression()

Method Detail

sqlback to summary
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.

Returns:Criterion

Criterion

sqlback to summary
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.

Returns:Criterion

Criterion

sqlback to summary
public static Criterion sql(String sql)

Apply a constraint expressed in SQL. Any occurrences of {alias} will be replaced by the table alias.

Returns:Criterion

Criterion