org.hibernate.criterion
Class Order

java.lang.Object
  extended by org.hibernate.criterion.Order
All Implemented Interfaces:
Serializable

public class Order
extends Object
implements Serializable

Represents an order imposed upon a Criteria result set

See Also:
Serialized Form

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 getPropertyName()
           
 Order ignoreCase()
           
 boolean isAscending()
           
 boolean isIgnoreCase()
           
 Order nulls(NullPrecedence nullPrecedence)
           
 String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
          Render the SQL fragment
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Order

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

Method Detail

toString

public String toString()
Overrides:
toString in class Object

ignoreCase

public Order ignoreCase()

nulls

public Order nulls(NullPrecedence nullPrecedence)

toSqlString

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

Throws:
HibernateException

getPropertyName

public String getPropertyName()

isAscending

public boolean isAscending()

isIgnoreCase

public boolean isIgnoreCase()

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


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.