org.apache.openjpa.persistence
Class XMLPersistenceMetaDataSerializer.SerializationComparator
java.lang.Object
org.apache.openjpa.meta.MetaDataInheritanceComparator
org.apache.openjpa.persistence.XMLPersistenceMetaDataSerializer.SerializationComparator
- All Implemented Interfaces:
- java.util.Comparator
- Enclosing class:
- XMLPersistenceMetaDataSerializer
protected class XMLPersistenceMetaDataSerializer.SerializationComparator
- extends org.apache.openjpa.meta.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
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
protected int |
compareUnknown(java.lang.Object o1,
java.lang.Object o2)
Compare two unrecognized elements of the same type. |
void |
setBase(java.lang.Class arg0)
|
Methods inherited from class org.apache.openjpa.meta.MetaDataInheritanceComparator |
toClass |
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 |
XMLPersistenceMetaDataSerializer.SerializationComparator
protected XMLPersistenceMetaDataSerializer.SerializationComparator()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator
compareUnknown
protected int compareUnknown(java.lang.Object o1,
java.lang.Object o2)
- Compare two unrecognized elements of the same type. Throws
exception by default.
setBase
public void setBase(java.lang.Class arg0)
Copyright © 2006 Apache Software Foundation. All Rights Reserved.