isql.orderby
Class OrderByKeyBehaviour
java.lang.Object
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
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
OrderByKeyBehaviour
public OrderByKeyBehaviour(boolean[] arrAscendent)
- Parameters:
arrAscendent
- for each ORDER BY column, tells if the column has to be
ordered ascendently or descendently
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 bb
- 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