org.josql.internal
Class ListExpressionComparator

java.lang.Object
  extended by org.josql.internal.ListExpressionComparator
All Implemented Interfaces:
Comparator

public class ListExpressionComparator
extends Object
implements Comparator


Constructor Summary
ListExpressionComparator(Query q, boolean caching)
           
 
Method Summary
 void addSortItem(Expression exp, int dir)
           
 int ci(Object o1, Object o2)
           
 int cic(Object o1, Object o2)
           
 void clearCache()
           
 int compare(Object o1, Object o2)
           
 boolean equals(Object o)
           
 int getCount()
           
 Exception getException()
           
 List getSortItems()
           
 boolean isCaching()
           
 void setCaching(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListExpressionComparator

public ListExpressionComparator(Query q,
                                boolean caching)
Method Detail

getCount

public int getCount()

equals

public boolean equals(Object o)
Specified by:
equals in interface Comparator
Overrides:
equals in class Object

isCaching

public boolean isCaching()

setCaching

public void setCaching(boolean b)

clearCache

public void clearCache()

ci

public int ci(Object o1,
              Object o2)
       throws Exception
Throws:
Exception

cic

public int cic(Object o1,
               Object o2)
        throws Exception
Throws:
Exception

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator

getException

public Exception getException()

getSortItems

public List getSortItems()

addSortItem

public void addSortItem(Expression exp,
                        int dir)


  Copyright © 2008 Gary Bentley. All Rights Reserved.