FileDocCategorySizeDatePackage
Expression.javaAPI DocHibernate 3.2.51458Sat Feb 12 00:19:50 GMT 2005org.hibernate.criterion

Expression

public final class Expression extends Restrictions
This class is semi-deprecated. Use Restrictions.
see
Restrictions
author
Gavin King

Fields Summary
Constructors Summary
private Expression()

		//cannot be instantiated
	
Methods Summary
public static Criterionsql(java.lang.String sql, java.lang.Object[] values, org.hibernate.type.Type[] types)
Apply a constraint expressed in SQL, with the given JDBC parameters. Any occurrences of {alias} will be replaced by the table alias.

param
sql
param
values
param
types
return
Criterion

		return new SQLCriterion(sql, values, types);
	
public static Criterionsql(java.lang.String sql, java.lang.Object value, org.hibernate.type.Type type)
Apply a constraint expressed in SQL, with the given JDBC parameter. Any occurrences of {alias} will be replaced by the table alias.

param
sql
param
value
param
type
return
Criterion

		return new SQLCriterion(sql, new Object[] { value }, new Type[] { type } );
	
public static Criterionsql(java.lang.String sql)
Apply a constraint expressed in SQL. Any occurrences of {alias} will be replaced by the table alias.

param
sql
return
Criterion

		return new SQLCriterion(sql, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY);