Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.db
Class DbOrderBy  view DbOrderBy download DbOrderBy.java

java.lang.Object
  extended byjavatools.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().

Version:
0.7

Field Summary
(package private)  DbExpr column
          The column to be used for sorting.
(package private)  boolean descending
          true: if the order is descending; false: if the order is ascending.
 
Constructor Summary
DbOrderBy(DbExpr column, boolean descending)
          Creates a new DbOrderBy expression.
 
Method Summary
 DbExpr getColumn()
          The column to sort on.
 boolean getDescending()
          Is this clause descending order?
 java.lang.String getQueryString()
          Returns the query string related to these expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descending

boolean descending
true: if the order is descending; false: if the order is ascending.


column

DbExpr column
The column to be used for sorting.

Constructor Detail

DbOrderBy

public DbOrderBy(DbExpr column,
                 boolean descending)
Creates a new DbOrderBy expression.

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
Returns the query string related to these expression.