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
OrderBy
public OrderBy()
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
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.