2.17.2: 2011-06-17

net.sf.basedb.core.query
Class Orders

java.lang.Object
  extended by 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 (Mon, 06 Apr 2009) $

Constructor Summary
Orders()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orders

public Orders()
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)

2.17.2: 2011-06-17