org.apache.openjpa.meta
Class MetaDataInheritanceComparator

java.lang.Object
  extended by org.apache.openjpa.meta.InheritanceComparator
      extended by org.apache.openjpa.meta.MetaDataInheritanceComparator
All Implemented Interfaces:
Comparator
Direct Known Subclasses:
XMLPersistenceMetaDataSerializer.SerializationComparator

public class MetaDataInheritanceComparator
extends InheritanceComparator

Comparator that keeps metadatas in inheritance order.

Author:
Abe White

Constructor Summary
MetaDataInheritanceComparator()
           
 
Method Summary
protected  Class toClass(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
compare, 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

MetaDataInheritanceComparator

public MetaDataInheritanceComparator()
Method Detail

toClass

protected Class toClass(Object elem)
Description copied from class: InheritanceComparator
Subclasses can override this method to extract the class to compare on from the elements of the collection.

Overrides:
toClass in class InheritanceComparator


Copyright © 2006 Apache Software Foundation. All Rights Reserved.