org.apache.openjpa.persistence.jest
Class MetamodelHelper.AttributeComparator

java.lang.Object
  extended by org.apache.openjpa.persistence.jest.MetamodelHelper.AttributeComparator
All Implemented Interfaces:
Comparator<Attribute<?,?>>
Enclosing class:
MetamodelHelper

public static class MetamodelHelper.AttributeComparator
extends Object
implements Comparator<Attribute<?,?>>

Compares attribute by their category and within the same category by name.


Constructor Summary
MetamodelHelper.AttributeComparator()
           
 
Method Summary
 int compare(Attribute<?,?> a1, Attribute<?,?> a2)
           
 
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

MetamodelHelper.AttributeComparator

public MetamodelHelper.AttributeComparator()
Method Detail

compare

public int compare(Attribute<?,?> a1,
                   Attribute<?,?> a2)
Specified by:
compare in interface Comparator<Attribute<?,?>>


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.