Top Description Methods
org.hibernate.criterion

public Interface Criterion

extends Serializable
Known Direct Implementers
org.hibernate.criterion.EmptyExpression, org.hibernate.criterion.ForeignKeyExpression, org.hibernate.criterion.ForeignKeyNullExpression, org.hibernate.criterion.IdentifierEqExpression, org.hibernate.criterion.IlikeExpression, org.hibernate.criterion.InExpression, org.hibernate.criterion.Junction, org.hibernate.criterion.LikeExpression, org.hibernate.criterion.LogicalExpression, org.hibernate.criterion.NaturalIdentifier, org.hibernate.criterion.NotEmptyExpression, org.hibernate.criterion.NotNullExpression, org.hibernate.criterion.NullExpression, org.hibernate.criterion.PropertyExpression, org.hibernate.criterion.SimpleExpression, org.hibernate.criterion.SizeExpression, org.hibernate.criterion.SQLCriterion, org.hibernate.criterion.SubqueryExpression, org.hibernate.criterion.Example, org.hibernate.criterion.NotExpression, org.hibernate.criterion.AbstractEmptinessExpression, org.hibernate.criterion.BetweenExpression
Imports
java.io.Serializable, org.hibernate.Criteria, .HibernateException, org.hibernate.engine.spi.TypedValue

An object-oriented representation of a query criterion that may be used as a restriction in a Criteria query. Built-in criterion types are provided by the Restrictions factory class. This interface might be implemented by application classes that define custom restriction criteria.
Author
Gavin King
See Also
Restrictions, Criteria

Method Summary

Modifier and TypeMethod and Description
public TypedValue[]

Returns:

The types values (for binding)
getTypedValues
(Criteria
The local criteria
criteria
,
CriteriaQuery
The overall criteria query
criteriaQuery
)

Return typed values for all parameters in the rendered SQL fragment

public String

Returns:

The generated SQL fragment
toSqlString
(Criteria
The local criteria
criteria
,
CriteriaQuery
The overall criteria query
criteriaQuery
)

Render the SQL fragment

Method Detail

getTypedValuesback to summary
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException

Return typed values for all parameters in the rendered SQL fragment

Parameters
criteria:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overall criteria query

Returns:TypedValue[]

The types values (for binding)

Exceptions
HibernateException:
Problem determining types.
toSqlStringback to summary
public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException

Render the SQL fragment

Parameters
criteria:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overall criteria query

Returns:String

The generated SQL fragment

Exceptions
HibernateException:
Problem during rendering.