org.edg.info.sqlutil.parsql
Class OrderBy

java.lang.Object
  extended byorg.edg.info.sqlutil.parsql.OrderBy
All Implemented Interfaces:
java.io.Serializable

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

An SQL query ORDER BY clause.

See Also:
Serialized Form

Constructor Summary
OrderBy(ExpSelConst e)
           
 
Method Summary
 boolean getAscOrder()
          Get the order (ascending or descending)
 ExpSelConst 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderBy

public OrderBy(ExpSelConst 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 ExpSelConst getExpression()
Get the ORDER BY expression.

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

toString

public java.lang.String toString()