Package net.sf.basedb.core.query
Class Orders
java.lang.Object
net.sf.basedb.core.query.Orders
public class Orders extends Object
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
Constructors Constructor Description Orders()
-
Method Summary
Modifier and Type Method Description static 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:
Query.order(Order)
-
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:
Query.order(Order)
-