Package org.apache.openjpa.meta
Class MetaDataInheritanceComparator
java.lang.Object
org.apache.openjpa.meta.InheritanceComparator
org.apache.openjpa.meta.MetaDataInheritanceComparator
- All Implemented Interfaces:
Serializable,Comparator
- Direct Known Subclasses:
AnnotationPersistenceMetaDataSerializer.SerializationComparator,XMLPersistenceMetaDataSerializer.SerializationComparator
Comparator that keeps metadatas in inheritance order. Also places relation
types used as primary keys before the primary key field owner types.
- Author:
- Abe White
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.openjpa.meta.InheritanceComparator
getBase, setBaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MetaDataInheritanceComparator
public MetaDataInheritanceComparator()
-
-
Method Details
-
toClass
Description copied from class:InheritanceComparatorSubclasses can override this method to extract the class to compare on from the elements of the collection.- Overrides:
toClassin classInheritanceComparator
-
compare
- Specified by:
comparein interfaceComparator- Overrides:
comparein classInheritanceComparator
-