org.gibello.zql
Class ZOrderBy

java.lang.Object
  extended by org.gibello.zql.ZOrderBy
All Implemented Interfaces:
java.io.Serializable

public class ZOrderBy
extends java.lang.Object
implements java.io.Serializable

An SQL query ORDER BY clause.

See Also:
Serialized Form

Constructor Summary
ZOrderBy(ZExp e)
           
 
Method Summary
 boolean getAscOrder()
          Get the order (ascending or descending)
 ZExp getExpression()
          Get the ORDER BY expression.
 void setAscOrder(boolean a)
          Set the order to ascending or descending (defailt is ascending order).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZOrderBy

public ZOrderBy(ZExp e)
Method Detail

setAscOrder

public void setAscOrder(boolean a)
Set the order to ascending or descending (defailt is ascending order).

Parameters:
a - true for ascending order, false for descending order.

getAscOrder

public boolean getAscOrder()
Get the order (ascending or descending)

Returns:
true if ascending order, false if descending order.

getExpression

public ZExp getExpression()
Get the ORDER BY expression.

Returns:
An expression (generally, a ZConstant that represents a column name).

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object