isql.orderby
Class OrderByKeyBehaviour

java.lang.Object
  extended by isql.orderby.OrderByKeyBehaviour

public class OrderByKeyBehaviour
extends java.lang.Object

Defines how the result set values have to be ordered depending by the columns of the ORDER BY clause

Author:
SHZ Nov 14, 2007

Constructor Summary
OrderByKeyBehaviour(boolean[] arrAscendent)
           
 
Method Summary
 int compare(OrderByKey a, OrderByKey b)
          compares two rows of the result set in the way defined by the order by clause
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderByKeyBehaviour

public OrderByKeyBehaviour(boolean[] arrAscendent)
Parameters:
arrAscendent - for each ORDER BY column, tells if the column has to be ordered ascendently or descendently
Method Detail

compare

public int compare(OrderByKey a,
                   OrderByKey b)
compares two rows of the result set in the way defined by the order by clause

Parameters:
a - the values for the result set's row b
b - the values for the result set's row b
Returns:
if a < b

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object