| 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.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.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 |
IndexChange.findChangedIndex(Database model,
boolean caseSensitive)
Finds the index object corresponding to the changed index in the given database model.
|
Index |
IndexChangeImplBase.findChangedIndex(Database model,
boolean caseSensitive)
Finds the index object corresponding to the changed index in the given database model.
|
protected Index |
ModelComparator.findCorrespondingIndex(Table table,
Index index)
Searches in the given table for a corresponding index.
|
Index |
AddIndexChange.getNewIndex()
Returns the new index.
|
| Modifier and Type | Method and Description |
|---|---|
protected Index |
ModelComparator.findCorrespondingIndex(Table table,
Index index)
Searches in the given table for a corresponding index.
|
| Constructor and Description |
|---|
AddIndexChange(String tableName,
Index newIndex)
Creates a new change object.
|
IndexChangeImplBase(String tableName,
Index index)
Creates a new change object.
|
RemoveIndexChange(String tableName,
Index index)
Creates a new change object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IndexImplBase
Base class for indexes.
|
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 |
CloneHelper.clone(Index source,
Table targetTable,
boolean caseSensitive)
Returns a clone of the given source index.
|
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 sensitive or insensitive
matching depending on the
caseSensitive parameter. |
Index |
UniqueIndex.getClone()
Returns a clone of this index object.
|
Index |
NonUniqueIndex.getClone()
Returns a clone of this index object.
|
Index |
Index.getClone()
Returns a clone of this index object.
|
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.
|
Index |
CloneHelper.clone(Index source,
Table targetTable,
boolean caseSensitive)
Returns a clone of the given source index.
|
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.
|
boolean |
Index.equalsIgnoreCase(Index otherIndex)
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 |
|---|---|
protected Index |
PlatformImplBase.findChangedIndex(Database currentModel,
IndexChange change)
Finds the index changed by the change object in the given model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlBuilder.createIndex(Table table,
Index index)
Writes the given index for the table using an external index creation statement.
|
void |
SqlBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AxionBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Db2Builder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DerbyBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FirebirdBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GemFireXDBuilder.createIndex(Table table,
Index index)
Writes the given index for the table using an external index creation
statement.
|
void |
GemFireXDBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
protected String |
GemFireXDBuilder.getIndexName(Table table,
Index index) |
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.
|
protected boolean |
GemFireXDModelReader.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 void |
GemFireXDBuilder.writeEmbeddedIndexCreateStmt(Table table,
Index index)
Writes the given embedded index of the table.
|
| 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 |
|---|---|
void |
InterbaseBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MSSqlBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
| 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.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PostgreSqlBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SybaseBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
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.
|
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.