ca.sqlpower.architect
Class SQLColumn.CompareByPKSeq

java.lang.Object
  extended by ca.sqlpower.architect.SQLColumn.CompareByPKSeq
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
SQLColumn

public static class SQLColumn.CompareByPKSeq
extends java.lang.Object
implements java.util.Comparator

This comparator helps you sort a list of columns so that the primary key columns come first in their correct order, and all the other columns come after.


Constructor Summary
SQLColumn.CompareByPKSeq()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
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

SQLColumn.CompareByPKSeq

public SQLColumn.CompareByPKSeq()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca