javatools.db
Class DbOrderBy

java.lang.Object
  |
  +--javatools.db.DbOrderBy

public class DbOrderBy
extends java.lang.Object

A class that represents an ORDER BY clause in a SELECT. An order by clause consists of a column and an optional DESC descending clause. Usually this class will not be referred to directly in an application. More usually you will use DbSelector.addOrderBy().


Field Summary
(package private)  DbExpr column
           
(package private)  boolean descending
           
 
Constructor Summary
DbOrderBy(DbExpr column, boolean descending)
           
 
Method Summary
 DbExpr getColumn()
          The column to sort on.
 boolean getDescending()
          Is this clause descending order?
 java.lang.String getQueryString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descending

boolean descending

column

DbExpr column
Constructor Detail

DbOrderBy

public DbOrderBy(DbExpr column,
                 boolean descending)
Method Detail

getDescending

public boolean getDescending()
Is this clause descending order?


getColumn

public DbExpr getColumn()
The column to sort on.


getQueryString

public java.lang.String getQueryString()
                                throws DbException
DbException