public class ModelComparator extends Object
| Constructor and Description |
|---|
ModelComparator(PlatformInfo platformInfo,
boolean caseSensitive)
Creates a new model comparator object.
|
| Modifier and Type | Method and Description |
|---|---|
List |
compare(Database sourceModel,
Database targetModel)
Compares the two models and returns the changes necessary to create the second
model from the first one.
|
List |
compareColumns(Table sourceTable,
Column sourceColumn,
Table targetTable,
Column targetColumn)
Compares the two columns and returns the changes necessary to create the second
column from the first one.
|
List |
compareTables(Database sourceModel,
Table sourceTable,
Database targetModel,
Table targetTable)
Compares the two tables and returns the changes necessary to create the second
table from the first one.
|
public ModelComparator(PlatformInfo platformInfo, boolean caseSensitive)
platformInfo - The platform infocaseSensitive - Whether comparison is case sensitivepublic List compare(Database sourceModel, Database targetModel)
sourceModel - The source modeltargetModel - The target modelpublic List compareTables(Database sourceModel, Table sourceTable, Database targetModel, Table targetTable)
sourceModel - The source model which contains the source tablesourceTable - The source tabletargetModel - The target model which contains the target tabletargetTable - The target tablepublic List compareColumns(Table sourceTable, Column sourceColumn, Table targetTable, Column targetColumn)
sourceTable - The source table which contains the source columnsourceColumn - The source columntargetTable - The target table which contains the target columntargetColumn - The target columnCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.