org.kuali.common.impex.model.util
Class CompareUtils

java.lang.Object
  extended by org.kuali.common.impex.model.util.CompareUtils

public class CompareUtils
extends Object


Field Summary
static int EXPECTED_MISSING_ELEMENTS_SET_COUNT
           
 
Constructor Summary
CompareUtils()
           
 
Method Summary
static Collection<ColumnDifference> compareColumns(Schema schema1, Table table1, Column col1, Schema schema2, Table table2, Column col2)
           
static Collection<ForeignKeyDifference> compareForeignKeys(Schema schema1, ForeignKey foreignKey1, Schema schema2, ForeignKey foreignKey2)
           
static Collection<IndexDifference> compareIndices(Schema schema1, Table table1, Index index1, Schema schema2, Table table2, Index index2)
           
static Collection<SequenceDifference> compareSequences(Schema schema1, Sequence seq1, Schema schema2, Sequence seq2)
           
static Collection<UniqueConstraintDifference> compareUniqueConstraints(Schema schema1, Table table1, UniqueConstraint uniqueConstraint1, Schema schema2, Table table2, UniqueConstraint uniqueConstraint2)
           
static Collection<ViewDifference> compareViews(Schema schema1, View view1, Schema schema2, View view2)
           
static
<T extends NamedElement>
MissingElements<T>
determineMissingElements(List<List<T>> sets)
           
static String foreignKeyDifferenceToString(ForeignKeyDifference f)
           
static String sequenceDifferenceToString(SequenceDifference s)
           
static String tableDifferenceToString(TableDifference t)
           
static String viewDifferenceToString(ViewDifference v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPECTED_MISSING_ELEMENTS_SET_COUNT

public static final int EXPECTED_MISSING_ELEMENTS_SET_COUNT
See Also:
Constant Field Values
Constructor Detail

CompareUtils

public CompareUtils()
Method Detail

compareColumns

public static Collection<ColumnDifference> compareColumns(Schema schema1,
                                                          Table table1,
                                                          Column col1,
                                                          Schema schema2,
                                                          Table table2,
                                                          Column col2)

determineMissingElements

public static <T extends NamedElement> MissingElements<T> determineMissingElements(List<List<T>> sets)

compareUniqueConstraints

public static Collection<UniqueConstraintDifference> compareUniqueConstraints(Schema schema1,
                                                                              Table table1,
                                                                              UniqueConstraint uniqueConstraint1,
                                                                              Schema schema2,
                                                                              Table table2,
                                                                              UniqueConstraint uniqueConstraint2)

compareIndices

public static Collection<IndexDifference> compareIndices(Schema schema1,
                                                         Table table1,
                                                         Index index1,
                                                         Schema schema2,
                                                         Table table2,
                                                         Index index2)

compareForeignKeys

public static Collection<ForeignKeyDifference> compareForeignKeys(Schema schema1,
                                                                  ForeignKey foreignKey1,
                                                                  Schema schema2,
                                                                  ForeignKey foreignKey2)

compareViews

public static Collection<ViewDifference> compareViews(Schema schema1,
                                                      View view1,
                                                      Schema schema2,
                                                      View view2)

compareSequences

public static Collection<SequenceDifference> compareSequences(Schema schema1,
                                                              Sequence seq1,
                                                              Schema schema2,
                                                              Sequence seq2)

tableDifferenceToString

public static String tableDifferenceToString(TableDifference t)

foreignKeyDifferenceToString

public static String foreignKeyDifferenceToString(ForeignKeyDifference f)

viewDifferenceToString

public static String viewDifferenceToString(ViewDifference v)

sequenceDifferenceToString

public static String sequenceDifferenceToString(SequenceDifference s)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.