|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectSort
public class Sort
The Sort class is a JavaBean that abstractly represents the data needed to calculate a sort
on some data set. A sort consists of some String expression and a SortDirection.
The mechanism for performing the sort is not provided here.
A Sort object can be used by some sorting infrastructure to either parameterise a SQL or XQuery
query or to simply sort in-memory Java objects. For example, when converting a Sort into
a SQL fragment, a Sort with sortExpression "foo" and sortDirection SortDirection.DESCENDING could
be converted into:
ORDER BY FOO DESC
| Constructor Summary | |
|---|---|
Sort()
Empty constructor. |
|
Sort(String sortExpression,
SortDirection sortDirection)
Constructs a Sort with the given sortExpression and sortDirection. |
|
| Method Summary | |
|---|---|
SortDirection |
getDirection()
Get the SortDirection |
String |
getSortExpression()
Get the sort expression |
void |
setDirection(SortDirection sortDirection)
Set the SortDirection |
void |
setSortExpression(String expression)
Set the sort expression |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sort()
public Sort(String sortExpression,
SortDirection sortDirection)
sortExpression and sortDirection.
sortExpression - the Sort's sort expressionsortDirection - the Sort's sort direction| Method Detail |
|---|
public String getSortExpression()
public void setSortExpression(String expression)
expression - the sort expressionpublic SortDirection getDirection()
SortDirection
public void setDirection(SortDirection sortDirection)
SortDirection
sortDirection - the sort direction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||