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

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


net.sf.hibernate.expression
Class SQLCriterion

java.lang.Object
  extended bynet.sf.hibernate.expression.AbstractCriterion
      extended bynet.sf.hibernate.expression.SQLCriterion
All Implemented Interfaces:
Criterion

public class SQLCriterion
extends AbstractCriterion

A SQL fragment. The string {alias} will be replaced by the alias of the root entity.


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
 String toString()
          For cosmetic purposes only!
 
Methods inherited from class net.sf.hibernate.expression.AbstractCriterion
getColumns, getType, getTypedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toSqlString

public String toSqlString(SessionFactoryImplementor sessionFactory,
                          Class persistentClass,
                          String alias,
                          Map aliasClasses)
                   throws HibernateException
Description copied from interface: Criterion
Render the SQL fragment

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

getTypedValues

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

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

toString

public String toString()
Description copied from class: AbstractCriterion
For cosmetic purposes only!

Specified by:
toString in class AbstractCriterion
See Also:
Object.toString()