| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.meta.InheritanceComparator
org.apache.openjpa.meta.MetaDataInheritanceComparator
public class MetaDataInheritanceComparator
Comparator that keeps metadatas in inheritance order. Also places relation types used as primary keys before the primary key field owner types.
| Constructor Summary | |
|---|---|
| MetaDataInheritanceComparator() | |
| Method Summary | |
|---|---|
|  int | compare(java.lang.Object o1,
        java.lang.Object o2) | 
| protected  java.lang.Class | toClass(java.lang.Object elem)Subclasses can override this method to extract the class to compare on from the elements of the collection. | 
| Methods inherited from class org.apache.openjpa.meta.InheritanceComparator | 
|---|
| getBase, setBase | 
| 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 | 
| Constructor Detail | 
|---|
public MetaDataInheritanceComparator()
| Method Detail | 
|---|
protected java.lang.Class toClass(java.lang.Object elem)
InheritanceComparator
toClass in class InheritanceComparator
public int compare(java.lang.Object o1,
                   java.lang.Object o2)
compare in interface java.util.Comparatorcompare in class InheritanceComparator| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||