Package net.sf.basedb.core.query
Class Orders
java.lang.Object
net.sf.basedb.core.query.Orders
A factory class to create order by expressions.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Order
asc
(Expression e) Sort the result of a query in ascending order by the expression.static Order
desc
(Expression e) Sort the result of a query in descending order by the expression.
-
Constructor Details
-
Orders
public Orders()
-
-
Method Details
-
asc
Sort the result of a query in ascending order by the expression.- Parameters:
e
- The expression to use for sorting- Throws:
InvalidDataException
- If the expression is null- See Also:
-
desc
Sort the result of a query in descending order by the expression.- Parameters:
e
- The expression to use for sorting- Throws:
InvalidDataException
- If the expression is null- See Also:
-