站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

Criterion (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.criterion
Interface Criterion

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractEmptinessExpression, BetweenExpression, EmptyExpression, Example, IdentifierEqExpression, IlikeExpression, InExpression, Junction, LikeExpression, LogicalExpression, NaturalIdentifier, NotEmptyExpression, NotExpression, NotNullExpression, NullExpression, PropertyExpression, SimpleExpression, SizeExpression, SQLCriterion, SubqueryExpression

public interface Criterion
extends Serializable

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
 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
 

Method Detail

toSqlString

public String toSqlString(Criteria criteria,
                          CriteriaQuery criteriaQuery)
                   throws HibernateException
Render the SQL fragment

Parameters:
criteriaQuery -
Returns:
String
Throws:
HibernateException

getTypedValues

public TypedValue[] getTypedValues(Criteria criteria,
                                   CriteriaQuery criteriaQuery)
                            throws HibernateException
Return typed values for all parameters in the rendered SQL fragment

Parameters:
criteria - TODO
criteriaQuery -
Returns:
TypedValue[]
Throws:
HibernateException