| 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.axion |
This package contains the platform implementation for the Axion database.
|
| org.apache.ddlutils.platform.db2 |
This package contains the platform implementation for the
DB2 UDB database.
|
| 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.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.oracle |
This package contains the platform implementation for the
Oracle database.
|
| org.apache.ddlutils.platform.postgresql |
This package contains the platform implementation for the
PostgreSQL database.
|
| org.apache.ddlutils.platform.sybase |
This package contains the platform implementation for the
Sybase ASE database.
|
| Modifier and Type | Method and Description |
|---|---|
Index |
RemoveIndexChange.getIndex()
Returns the index.
|
Index |
AddIndexChange.getNewIndex()
Returns the new index.
|
| Constructor and Description |
|---|
AddIndexChange(Table table,
Index newIndex)
Creates a new change object.
|
RemoveIndexChange(Table table,
Index index)
Creates a new change object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IndexImpBase
Base class for indices.
|
class |
NonUniqueIndex
Represents an index definition for a table.
|
class |
UniqueIndex
Provides compatibility with Torque-style xml with separate <index> and
<unique> tags, but adds no functionality.
|
| Modifier and Type | Method and Description |
|---|---|
Index |
Table.findIndex(String name)
Finds the index with the specified name, using case insensitive matching.
|
Index |
Table.findIndex(String name,
boolean caseSensitive)
Finds the index with the specified name, using case insensitive matching.
|
Index |
Table.getIndex(int idx)
Returns the index at the specified position.
|
Index[] |
Table.getIndices()
Returns the indices of this table.
|
Index[] |
Table.getNonUniqueIndices()
Gets a list of non-unique indices on this table.
|
Index[] |
Table.getUniqueIndices()
Gets a list of unique indices on this table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Table.addIndex(Index index)
Adds the given index.
|
void |
Table.addIndex(int idx,
Index index)
Adds the given index at the specified position.
|
boolean |
Index.equalsIgnoreCase(Index otherIndex)
Compares this index to the given one while ignoring the case of identifiers.
|
boolean |
UniqueIndex.equalsIgnoreCase(Index other)
Compares this index to the given one while ignoring the case of identifiers.
|
boolean |
NonUniqueIndex.equalsIgnoreCase(Index other)
Compares this index to the given one while ignoring the case of identifiers.
|
void |
Table.removeIndex(Index index)
Removes the given index.
|
| Modifier and Type | Method and Description |
|---|---|
String |
SqlBuilder.getIndexName(Index index)
Returns the index name.
|
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 boolean |
JdbcModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected boolean |
JdbcModelReader.matches(Index index,
List columnsToSearchFor)
Checks whether the given index matches the column list.
|
protected void |
SqlBuilder.writeEmbeddedIndexCreateStmt(Table table,
Index index)
Writes the given embedded index of the table.
|
protected void |
SqlBuilder.writeExternalIndexCreateStmt(Table table,
Index index)
Writes the given index of the table.
|
void |
SqlBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AxionBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
Db2ModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
Db2Builder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| 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.
|
protected boolean |
DerbyModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
DerbyBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| 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.
|
protected boolean |
FirebirdModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
FirebirdBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| 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.
|
protected boolean |
HsqlDbModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary 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.
|
protected boolean |
InterbaseModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
InterbaseBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
MSSqlModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
MSSqlBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| 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 boolean |
MySqlModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Oracle8Builder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| 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.
|
protected boolean |
PostgreSqlModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
PostgreSqlBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
SybaseModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
SybaseBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.