public interface Criterion extends Serializable
An object-oriented representation of a query criterion that may be used as a restriction in a <tt>Criteria</tt> query. Built-in criterion types are provided by the <tt>Restrictions</tt> factory class. This interface might be implemented by application classes that define custom restriction criteria.
Restrictions,
Criteria| Modifier and Type | Method and Description |
|---|---|
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Render the SQL fragment
criteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem during rendering.TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Return typed values for all parameters in the rendered SQL fragment
criteria - The local criteriacriteriaQuery - The overal criteria queryHibernateException - Problem determining types.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.