isql.orderby
Class OrderByKey

java.lang.Object
  extended by isql.orderby.OrderByKey
All Implemented Interfaces:
java.lang.Comparable<OrderByKey>

public class OrderByKey
extends java.lang.Object
implements java.lang.Comparable<OrderByKey>

It contains the values of the columns included in the ORDER BY clause for a certain row of the result set. Remember that the same set of values (the same row) can recur more than once in the result set

Author:
SHZ Nov 1, 2007

Constructor Summary
OrderByKey(java.lang.Object[] arrKey, OrderByKeyBehaviour behaviour)
           
 
Method Summary
 int compareTo(OrderByKey o)
          We use the behaviour to compare the values of two rows
 boolean equals(java.lang.Object obj)
           
 java.lang.Object[] getArrKey()
          The values for a row of the result set
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderByKey

public OrderByKey(java.lang.Object[] arrKey,
                  OrderByKeyBehaviour behaviour)
Method Detail

compareTo

public int compareTo(OrderByKey o)
We use the behaviour to compare the values of two rows

Specified by:
compareTo in interface java.lang.Comparable<OrderByKey>

getArrKey

public java.lang.Object[] getArrKey()
The values for a row of the result set

Returns:
the arrKey

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