| 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.gemfirexd |
This package contains the platform implementation for the
GemFire GemFireXD 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 |
ForeignKeyChangeImplBase.findChangedForeignKey(Database model,
boolean caseSensitive)
Finds the foreign key object corresponding to the changed foreign key in the given database model.
|
ForeignKey |
ForeignKeyChange.findChangedForeignKey(Database model,
boolean caseSensitive)
Finds the foreign key object corresponding to the changed foreign key in the given database model.
|
protected ForeignKey |
ModelComparator.findCorrespondingForeignKey(Table table,
ForeignKey fk)
Searches in the given table for a corresponding foreign key.
|
ForeignKey |
AddForeignKeyChange.getNewForeignKey()
Returns the new foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected ForeignKey |
ModelComparator.findCorrespondingForeignKey(Table table,
ForeignKey fk)
Searches in the given table for a corresponding foreign key.
|
| Constructor and Description |
|---|
AddForeignKeyChange(String tableName,
ForeignKey newForeignKey)
Creates a new change object.
|
ForeignKeyChangeImplBase(String tableName,
ForeignKey foreignKey)
Creates a new change object.
|
RemoveForeignKeyChange(String tableName,
ForeignKey foreignKey)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
ForeignKey |
CloneHelper.clone(ForeignKey source,
Table owningTable,
Database targetModel,
boolean caseSensitive)
Returns a clone of the given source foreign key.
|
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.findForeignKey(String name)
Finds the foreign key with the specified name, using case insensitive matching.
|
ForeignKey |
Table.findForeignKey(String name,
boolean caseSensitive)
Finds the foreign key with the specified name, using case sensitive or insensitive
matching depending on the
caseSensitive parameter. |
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.
|
ForeignKey |
CloneHelper.clone(ForeignKey source,
Table owningTable,
Database targetModel,
boolean caseSensitive)
Returns a clone of the given source foreign key.
|
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 |
PlatformImplBase.findChangedForeignKey(Database currentModel,
ForeignKeyChange change)
Finds the foreign key changed by the change object in the given model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlBuilder.createForeignKey(Database database,
Table table,
ForeignKey foreignKey)
Writes a single foreign key constraint using a alter table statement.
|
void |
SqlBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
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.writeForeignKeyOnDeleteAction(Table table,
ForeignKey foreignKey)
Writes the onDelete action for the given foreign key.
|
protected void |
SqlBuilder.writeForeignKeyOnUpdateAction(Table table,
ForeignKey foreignKey)
Writes the onDelete action for the given foreign key.
|
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 |
GemFireXDModelReader.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 |
|---|---|
void |
MaxDbBuilder.dropForeignKey(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 |
|---|---|
void |
MSSqlBuilder.dropForeignKey(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 |
|---|---|
void |
MySqlBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
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.
|
| 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 |
|---|---|
void |
SapDbBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
protected void |
SapDbBuilder.writeForeignKeyOnDeleteAction(Table table,
ForeignKey foreignKey)
Writes the onDelete action for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SybaseBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.