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

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


net.sf.hibernate.expression
Class Order

java.lang.Object
  extended bynet.sf.hibernate.expression.Order

public class Order
extends Object

Represents an order imposed upon a Criteria result set

Author:
Gavin King

Constructor Summary
protected Order(String propertyName, boolean ascending)
          Constructor for Order.
 
Method Summary
static Order asc(String propertyName)
          Ascending order
static Order desc(String propertyName)
          Descending order
 String toSqlString(SessionFactoryImplementor sessionFactory, Class persistentClass, String alias)
          Render the SQL fragment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Order

protected Order(String propertyName,
                boolean ascending)
Constructor for Order.

Method Detail

toSqlString

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

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

asc

public static Order asc(String propertyName)
Ascending order

Parameters:
propertyName -
Returns:
Order

desc

public static Order desc(String propertyName)
Descending order

Parameters:
propertyName -
Returns:
Order