Package org.apache.openjpa.persistence
Class AnnotationPersistenceMetaDataSerializer.SerializationComparator
java.lang.Object
org.apache.openjpa.meta.InheritanceComparator
org.apache.openjpa.meta.MetaDataInheritanceComparator
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataSerializer.SerializationComparator
- All Implemented Interfaces:
Serializable
,Comparator
- Direct Known Subclasses:
AnnotationPersistenceMappingSerializer.MappingSerializationComparator
- Enclosing class:
- AnnotationPersistenceMetaDataSerializer
protected class AnnotationPersistenceMetaDataSerializer.SerializationComparator
extends MetaDataInheritanceComparator
Compares clases, sequences, and queries to order them for serialization.
Places sequences first, then classes, then queries. Sequences and
queries are ordered alphabetically by name. Classes are placed in
listing order, in inheritance order within that, and in alphabetical
order within that.
- Author:
- Stephen Kim
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.openjpa.meta.MetaDataInheritanceComparator
toClass
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SerializationComparator
protected SerializationComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator
- Overrides:
compare
in classMetaDataInheritanceComparator
-
compareUnknown
Compare two unrecognized elements of the same type. Throws exception by default.
-