isql
Class OrderBy

java.lang.Object
  extended by isql.OrderBy

public class OrderBy
extends java.lang.Object

Applies the order by clause to a set of columns/values

Author:
SHZ Nov 14, 2007

Constructor Summary
OrderBy(ILogger log)
          Constructor
 
Method Summary
 ColumnValuesWithRowsNumber applyOrderBy(java.util.List<ISQLSelectParser.OrderBy> lstOrderByColumn, ColumnValuesWithRowsNumber valuesBefore)
          Applies the ORDER BY clause
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderBy

public OrderBy(ILogger log)
Constructor

Parameters:
log - the logger
Method Detail

applyOrderBy

public ColumnValuesWithRowsNumber applyOrderBy(java.util.List<ISQLSelectParser.OrderBy> lstOrderByColumn,
                                               ColumnValuesWithRowsNumber valuesBefore)
                                        throws ISQLException
Applies the ORDER BY clause

Parameters:
lstOrderByColumn - the columns in the ORDER BY condition
valuesBefore - the result set before the order by is applied
Returns:
the result set after the order by
Throws:
ISQLException