Top Description Fields Constructors Methods
org.hibernate.criterion

public Class Order

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.sql.Types, org.hibernate.Criteria, .HibernateException, org.hibernate.engine.SessionFactoryImplementor, org.hibernate.type.Type

Represents an order imposed upon a Criteria result set
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private String

Constructor Summary

AccessConstructor and Description
protected
Order(String propertyName, boolean ascending)

Constructor for Order.

Method Summary

Modifier and TypeMethod and Description
public static Order

Returns:

Order
asc
(String propertyName)

Ascending order

public static Order

Returns:

Order
desc
(String propertyName)

Descending order

public Order
public String
toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)

Render the SQL fragment

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ascendingback to summary
private boolean ascending
ignoreCaseback to summary
private boolean ignoreCase
propertyNameback to summary
private String propertyName

Constructor Detail

Orderback to summary
protected Order(String propertyName, boolean ascending)

Constructor for Order.

Method Detail

ascback to summary
public static Order asc(String propertyName)

Ascending order

Returns:Order

Order

descback to summary
public static Order desc(String propertyName)

Descending order

Returns:Order

Order

ignoreCaseback to summary
public Order ignoreCase()
toSqlStringback to summary
public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException

Render the SQL fragment

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.