Arch4J 1.1

org.arch4j.dataaccess.common
Class OrderBy

java.lang.Object
  |
  +--org.arch4j.dataaccess.common.OrderBy

public class OrderBy
extends Object

This class is equivalent to an ORDER BY Clause

Version:
1.0
Author:
Vibhu Srinivasan

Constructor Summary
OrderBy()
           
 
Method Summary
 void addAscending(String fieldName)
           
 void addDescending(String fieldName)
           
 List getColumnNames()
           
static OrderBy newWithAscending(String fieldName)
          Create a new OrderBy clause, using the given field name as the first sort field.
static OrderBy newWithDescending(String fieldName)
          Create a new OrderBy clause, using the given field name as the first sort field.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderBy

public OrderBy()
Method Detail

newWithAscending

public static OrderBy newWithAscending(String fieldName)
Create a new OrderBy clause, using the given field name as the first sort field.

Parameters:
fieldName - The field name to sort by.
Returns:
A new instance the receiver, containing one sort field, sorted ascendingly.

newWithDescending

public static OrderBy newWithDescending(String fieldName)
Create a new OrderBy clause, using the given field name as the first sort field.

Parameters:
fieldName - The field name to sort by.
Returns:
A new instance the receiver, containing one sort field, sorted descendingly.

addAscending

public void addAscending(String fieldName)

addDescending

public void addDescending(String fieldName)

toString

public String toString()
Overrides:
toString in class Object

getColumnNames

public List getColumnNames()
Returns:
the list of column names

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.