org.garret.consus
Class POComparator

java.lang.Object
  extended by org.garret.consus.Persistent
      extended by org.garret.consus.POComparator
All Implemented Interfaces:
java.util.Comparator

public abstract class POComparator
extends Persistent
implements java.util.Comparator

Abstract base class for all Persistent comparators


Field Summary
 
Fields inherited from class org.garret.consus.Persistent
db, oid, PO_DELETED, PO_LOADED, PO_NEW, PO_STUB, state, type
 
Constructor Summary
POComparator()
           
 
Method Summary
abstract  int compare(java.lang.Object o1, java.lang.Object o2)
          Compare two objects.
 
Methods inherited from class org.garret.consus.Persistent
assignOID, become, beginUpdate, endUpdate, get, get, getOid, getOid, getRef, getRef, isDeleted, isLoaded, isNew, load, loadClosure, loadComponents, lock, remove, save, store, store, toString, unget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

POComparator

public POComparator()
Method Detail

compare

public abstract int compare(java.lang.Object o1,
                            java.lang.Object o2)
Compare two objects.

Specified by:
compare in interface java.util.Comparator
Returns:
value < 0 if o1 < o1, 0 if o1 == o1, value > 0 if o1 > o1