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

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


net.sf.hibernate.expression
Interface Criterion

All Known Implementing Classes:
AbstractCriterion

public interface Criterion

An object-oriented representation of a query criterion that may be used as a constraint in a Criteria query. Built-in criterion types are provided by the Expression factory class. This interface might be implemented by application classes but, more commonly, application criterion types would extend AbstractCriterion.

Author:
Gavin King
See Also:
AbstractCriterion, Expression

Method Summary
 TypedValue[] getTypedValues(SessionFactoryImplementor sessionFactory, Class persistentClass, Map aliasClasses)
          Return typed values for all parameters in the rendered SQL fragment
 String toSqlString(SessionFactoryImplementor sessionFactory, Class persistentClass, String alias, Map aliasClasses)
          Render the SQL fragment
 

Method Detail

toSqlString

public String toSqlString(SessionFactoryImplementor sessionFactory,
                          Class persistentClass,
                          String alias,
                          Map aliasClasses)
                   throws HibernateException
Render the SQL fragment

Parameters:
sessionFactory -
persistentClass -
alias -
Returns:
String
Throws:
HibernateException

getTypedValues

public TypedValue[] getTypedValues(SessionFactoryImplementor sessionFactory,
                                   Class persistentClass,
                                   Map aliasClasses)
                            throws HibernateException
Return typed values for all parameters in the rendered SQL fragment

Parameters:
sessionFactory -
persistentClass -
Returns:
TypedValue[]
Throws:
HibernateException