Top Description Constructors Methods
org.hibernate.criterion

public final Class Expression

extends Restrictions
Class Inheritance
Annotations
@Deprecated
Imports
org.hibernate.type.Type

Deprecated

Use Restrictions instead

Factory for Criterion objects.
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
The sql
sql
,
Object[]
The parameter values
values
,
Type[]
The parameter types
types
)

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

Returns:

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

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

Returns:

Criterion
sql
(String
The sql
sql
)

Apply a constraint expressed in SQL with no parameters.
Inherited from org.hibernate.criterion.Restrictions:
allEqandandbetweenconjunctionconjunctiondisjunctiondisjunctioneqeqOrIsNulleqPropertyfkEqfkIsNotNullfkIsNullfkNegegePropertygtgtPropertyidEqilikeilikeininisEmptyisNotEmptyisNotNullisNulllelePropertylikelikeltltPropertynaturalIdneneOrIsNotNullnePropertynotororsizeEqsizeGesizeGtsizeLesizeLtsizeNesqlRestrictionsqlRestrictionsqlRestriction

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 JDBC parameters. Any occurrences of {alias} will be replaced by the table alias.

Parameters
sql:String

The sql

values:Object[]

The parameter values

types:Type[]

The parameter types

Returns:Criterion

Criterion

Annotations
@Deprecated
sqlback to summary
public static Criterion sql(String sql, Object value, Type type)

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

Parameters
sql:String

The sql

value:Object

The parameter value

type:Type

The parameter type

Returns:Criterion

Criterion

Annotations
@Deprecated
sqlback to summary
public static Criterion sql(String sql)

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

Parameters
sql:String

The sql

Returns:Criterion

Criterion

Annotations
@Deprecated