anderix.datajets
Class OrderDirection

java.lang.Object
  extended by anderix.datajets.OrderDirection

public class OrderDirection
extends java.lang.Object

Used as a parameter in orderBy methods in SqlBuilder. The purpose is to define the sort order for the SQL SELECT statement returned by SqlBuilder. Alternatively, you may use the orderByAscending or orderByDescending methods to specify sort order.

See Also:
SqlBuilder.orderBy(int, anderix.datajets.OrderDirection)

Field Summary
static OrderDirection ASCENDING
          A sort order to define ascending alphabetical or numerical data.
static OrderDirection DESCENDING
          A sort order to define descending alphabetical or numerical data.
 
Method Summary
 java.lang.String toString()
          Returns a String representation of the sort order direction.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASCENDING

public static final OrderDirection ASCENDING
A sort order to define ascending alphabetical or numerical data. This is the ASC keyword in SQL.


DESCENDING

public static final OrderDirection DESCENDING
A sort order to define descending alphabetical or numerical data. This is the DESC keyword in SQL.

Method Detail

toString

public java.lang.String toString()
Returns a String representation of the sort order direction. This String is intended for use in a SQL statement.

Overrides:
toString in class java.lang.Object
Returns:
the sort order direction as a String