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
|