Class SchemaComparatorTool
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.tools.schema.comparison.SchemaComparatorTool
-
public class SchemaComparatorTool extends Object
Will check two schemas for compatibility and report found issues.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
Hint is used by
TableOrderHintto determine order of tables
-
-
Constructor Summary
Constructors Constructor Description SchemaComparatorTool(ConnectorRepository connectorRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaCompatibilityIssuescheck(String sourceConnectorId, String targetConnectorId)Check compatibility of both connectors/schemata.SchemaCompatibilityIssuescheckDuplicateIndexes(TableMetaData table)SchemaCompatibilityIssuescheckEqualColumns(String sourceConnectorId, String targetConnectorId, TableMetaData tableMetaData1, TableMetaData tableMetaData2)SchemaCompatibilityIssuescheckEqualForeignKeys(TableMetaData sourceTable, TableMetaData targetTable)SchemaCompatibilityIssuescheckEqualIndexes(TableMetaData sourceTable, TableMetaData targetTable)SchemaCompatibilityIssuescheckForeignKeys(TableMetaData table)
-
-
-
Constructor Detail
-
SchemaComparatorTool
public SchemaComparatorTool(ConnectorRepository connectorRepository)
-
-
Method Detail
-
check
public SchemaCompatibilityIssues check(String sourceConnectorId, String targetConnectorId)
Check compatibility of both connectors/schemata.- Parameters:
sourceConnectorId-targetConnectorId-- Returns:
- List of found issues. If empty the schemas are completely compatible
-
checkEqualForeignKeys
public SchemaCompatibilityIssues checkEqualForeignKeys(TableMetaData sourceTable, TableMetaData targetTable)
-
checkEqualIndexes
public SchemaCompatibilityIssues checkEqualIndexes(TableMetaData sourceTable, TableMetaData targetTable)
-
checkDuplicateIndexes
public SchemaCompatibilityIssues checkDuplicateIndexes(TableMetaData table)
-
checkForeignKeys
public SchemaCompatibilityIssues checkForeignKeys(TableMetaData table)
-
checkEqualColumns
public SchemaCompatibilityIssues checkEqualColumns(String sourceConnectorId, String targetConnectorId, TableMetaData tableMetaData1, TableMetaData tableMetaData2)
-
-