org.objectweb.telosys.common.data
Class DataRowComparer

java.lang.Object
  extended byorg.objectweb.telosys.common.data.DataRowComparer
All Implemented Interfaces:
java.util.Comparator

public class DataRowComparer
extends java.lang.Object
implements java.util.Comparator

Standard comparer for DataRow ( Comparator implementation )


Field Summary
static boolean ASC
           
static boolean DESC
           
static boolean DO_NOT_IGNORE_CASE
           
static boolean IGNORE_CASE
           
 
Constructor Summary
DataRowComparer(int iCol, boolean bDescendingOrder, boolean bIgnoreCase)
          Constructor
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

IGNORE_CASE

public static final boolean IGNORE_CASE
See Also:
Constant Field Values

DO_NOT_IGNORE_CASE

public static final boolean DO_NOT_IGNORE_CASE
See Also:
Constant Field Values

DESC

public static final boolean DESC
See Also:
Constant Field Values

ASC

public static final boolean ASC
See Also:
Constant Field Values
Constructor Detail

DataRowComparer

public DataRowComparer(int iCol,
                       boolean bDescendingOrder,
                       boolean bIgnoreCase)
Constructor

Parameters:
iCol - the column to use for comparison
bDescendingOrder - descending order if flag is true
bIgnoreCase - ignore case flag ( used only to compare strings )
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Specified by:
compare in interface java.util.Comparator