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
All Methods Static Methods Concrete Methods 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.
-
-
-
Method Detail
-
asc
public static Order asc(Expression e) throws InvalidDataException
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
public static Order desc(Expression e) throws InvalidDataException
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)
-
-