public class MSSqlModelComparator extends ModelComparator
| Constructor and Description |
|---|
MSSqlModelComparator(PlatformInfo platformInfo,
TableDefinitionChangesPredicate tableDefChangePredicate,
boolean caseSensitive)
Creates a new Sql Server model comparator object.
|
| Modifier and Type | Method and Description |
|---|---|
protected List |
checkForAddedForeignKeys(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for foreign keys that are not present in the given source model but are in the target
model, and applies them to the given intermediate model.
|
protected List |
checkForAddedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are not present in the given source table but are in the target
table, and applies them to the given intermediate model.
|
protected List |
checkForPrimaryKeyChanges(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for primary key differences (primary key added/removed/changed), and applies them to the given intermediate model.
|
protected List |
checkForRemovedForeignKeys(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for foreign keys that are present in the given source model but are no longer in the target
model, and applies them to the given intermediate model.
|
protected List |
checkForRemovedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
checkForAddedColumns, checkForAddedTables, checkForChangedColumns, checkForChangeOfColumnOrder, checkForRemovedColumns, checkForRemovedTables, compare, compareColumns, compareModels, compareTables, findCorrespondingForeignKey, findCorrespondingIndex, getIntermediateColumnNamesFor, getPlatformInfo, isCaseSensitive, setCanDropPrimaryKeyColumns, setGeneratePrimaryKeyChangespublic MSSqlModelComparator(PlatformInfo platformInfo, TableDefinitionChangesPredicate tableDefChangePredicate, boolean caseSensitive)
platformInfo - The platform infotableDefChangePredicate - The predicate that defines whether tables changes are supported
by the platform or not; all changes are supported if this is nullcaseSensitive - Whether comparison is case sensitiveprotected List checkForPrimaryKeyChanges(Database sourceModel, Table sourceTable, Database intermediateModel, Table intermediateTable, Database targetModel, Table targetTable)
checkForPrimaryKeyChanges in class ModelComparatorsourceModel - The source modelsourceTable - The source tableintermediateModel - The intermediate model to apply the changes tointermediateTable - The table from the intermediate model corresponding to the source tabletargetModel - The target modeltargetTable - The target tableprotected List checkForRemovedIndexes(Database sourceModel, Table sourceTable, Database intermediateModel, Table intermediateTable, Database targetModel, Table targetTable)
checkForRemovedIndexes in class ModelComparatorsourceModel - The source modelsourceTable - The source tableintermediateModel - The intermediate model to apply the changes tointermediateTable - The table from the intermediate model corresponding to the source tabletargetModel - The target modeltargetTable - The target tableprotected List checkForAddedIndexes(Database sourceModel, Table sourceTable, Database intermediateModel, Table intermediateTable, Database targetModel, Table targetTable)
checkForAddedIndexes in class ModelComparatorsourceModel - The source modelsourceTable - The source tableintermediateModel - The intermediate model to apply the changes tointermediateTable - The table from the intermediate model corresponding to the source tabletargetModel - The target modeltargetTable - The target tableprotected List checkForRemovedForeignKeys(Database sourceModel, Database intermediateModel, Database targetModel)
checkForRemovedForeignKeys in class ModelComparatorsourceModel - The source modelintermediateModel - The intermediate model to apply the changes totargetModel - The target modelprotected List checkForAddedForeignKeys(Database sourceModel, Database intermediateModel, Database targetModel)
checkForAddedForeignKeys in class ModelComparatorsourceModel - The source modelintermediateModel - The intermediate model to apply the changes totargetModel - The target modelCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.