| Package | Description |
|---|---|
| org.apache.ddlutils.alteration |
Contains the algorithm for comparing two database models and determining
what needs to be changed to migrate one to the other.
|
| org.apache.ddlutils.model |
This package contains the classes making up the database model.
|
| org.apache.ddlutils.platform |
This package contains the platform implementations for the individual databases.
|
| org.apache.ddlutils.platform.derby |
This package contains the platform implementation for the
Apache Derby database.
|
| org.apache.ddlutils.platform.firebird |
This package contains the platform implementation for the
Firebird database.
|
| org.apache.ddlutils.platform.hsqldb |
This package contains the platform implementation for the
HSQLDB database.
|
| org.apache.ddlutils.platform.interbase |
This package contains the platform implementation for the
Interbase database.
|
| org.apache.ddlutils.platform.maxdb |
This package contains the platform implementation for the
MaxDB database.
|
| org.apache.ddlutils.platform.mssql |
This package contains the platform implementation for the
Sql Server database.
|
| org.apache.ddlutils.platform.mysql |
This package contains the platform implementation for the
MySQL database.
|
| org.apache.ddlutils.platform.postgresql |
This package contains the platform implementation for the
PostgreSQL database.
|
| org.apache.ddlutils.platform.sapdb |
This package contains the platform implementation for the
SAP DB database.
|
| org.apache.ddlutils.platform.sybase |
This package contains the platform implementation for the
Sybase ASE database.
|
| Modifier and Type | Method and Description |
|---|---|
ForeignKey |
RemoveForeignKeyChange.getForeignKey()
Returns the foreign key to be removed.
|
ForeignKey |
AddForeignKeyChange.getNewForeignKey()
Returns the new foreign key.
|
| Constructor and Description |
|---|
AddForeignKeyChange(Table table,
ForeignKey newForeignKey)
Creates a new change object.
|
RemoveForeignKeyChange(Table table,
ForeignKey foreignKey)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
ForeignKey |
Table.findForeignKey(ForeignKey key)
Finds the foreign key in this table that is equal to the supplied foreign key.
|
ForeignKey |
Table.findForeignKey(ForeignKey key,
boolean caseSensitive)
Finds the foreign key in this table that is equal to the supplied foreign key.
|
ForeignKey |
Table.getForeignKey(int idx)
Returns the foreign key at the given position.
|
ForeignKey[] |
Table.getForeignKeys()
Returns the foreign keys of this table.
|
ForeignKey |
Table.getSelfReferencingForeignKey()
Returns the foreign key referencing this table if it exists.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Table.addForeignKey(ForeignKey foreignKey)
Adds the given foreign key.
|
void |
Table.addForeignKey(int idx,
ForeignKey foreignKey)
Adds the given foreign key at the specified position.
|
boolean |
ForeignKey.equalsIgnoreCase(ForeignKey otherFk)
Compares this foreign key to the given one while ignoring the case of identifiers.
|
ForeignKey |
Table.findForeignKey(ForeignKey key)
Finds the foreign key in this table that is equal to the supplied foreign key.
|
ForeignKey |
Table.findForeignKey(ForeignKey key,
boolean caseSensitive)
Finds the foreign key in this table that is equal to the supplied foreign key.
|
void |
Table.removeForeignKey(ForeignKey foreignKey)
Removes the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected ForeignKey |
SqlBuilder.findCorrespondingForeignKey(Table table,
ForeignKey fk)
Searches in the given table for a corresponding foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected ForeignKey |
SqlBuilder.findCorrespondingForeignKey(Table table,
ForeignKey fk)
Searches in the given table for a corresponding foreign key.
|
String |
SqlBuilder.getForeignKeyName(Table table,
ForeignKey fk)
Returns the name to be used for the given foreign key.
|
protected boolean |
JdbcModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected void |
JdbcModelReader.removeInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk)
Tries to remove the internal index for the given foreign key.
|
protected void |
SqlBuilder.writeExternalForeignKeyCreateStmt(Database database,
Table table,
ForeignKey key)
Writes a single foreign key constraint using a alter table statement.
|
protected void |
SqlBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
protected void |
SqlBuilder.writeForeignReferences(ForeignKey key)
Writes a list of foreign references for the given foreign key.
|
protected void |
SqlBuilder.writeLocalReferences(ForeignKey key)
Writes a list of local references for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DerbyModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
FirebirdModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
HsqlDbModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
InterbaseModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MaxDbBuilder.writeExternalForeignKeyCreateStmt(Database database,
Table table,
ForeignKey key)
Writes a single foreign key constraint using a alter table statement.
|
protected void |
MaxDbBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MSSqlBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
MySqlModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected void |
MySqlBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
PostgreSqlModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SapDbBuilder.writeExternalForeignKeyCreateStmt(Database database,
Table table,
ForeignKey key)
Writes a single foreign key constraint using a alter table statement.
|
protected void |
SapDbBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SybaseBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.