| 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.dynabean |
Provides the special DdlUtils implementations of
DynaClass
and DynaBean that directly map to tables in the database
model. |
| org.apache.ddlutils.io |
The
org.apache.ddlutils.io package contains a classes for input
and output of both the database schemas and data files. |
| 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.cloudscape |
This package contains the platform implementation for the
Cloudscape 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.maxdb |
This package contains the platform implementation for the
MaxDB database.
|
| org.apache.ddlutils.platform.mckoi |
This package contains the platform implementation for the
Mckoi 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.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 |
|---|---|
Column |
ColumnRequiredChange.getChangedColumn()
Returns the column.
|
Column |
ColumnChange.getChangedColumn()
Returns the affected column from the original model.
|
Column |
ColumnDefaultValueChange.getChangedColumn()
Returns the column.
|
Column |
ColumnSizeChange.getChangedColumn()
Returns the column.
|
Column |
ColumnDataTypeChange.getChangedColumn()
Returns the column.
|
Column |
RemoveColumnChange.getColumn()
Returns the column.
|
Column |
ColumnAutoIncrementChange.getColumn()
Returns the column.
|
Column |
AddColumnChange.getNewColumn()
Returns the new column.
|
Column[] |
PrimaryKeyChange.getNewPrimaryKeyColumns()
Returns the columns making up the new primary key.
|
Column |
AddColumnChange.getNextColumn()
Returns the column before which the new column should be added.
|
Column[] |
PrimaryKeyChange.getOldPrimaryKeyColumns()
Returns the columns making up the original primary key.
|
Column |
AddColumnChange.getPreviousColumn()
Returns the column after which the new column should be added.
|
Column[] |
AddPrimaryKeyChange.getPrimaryKeyColumns()
Returns the primary key columns making up the new primary key.
|
Column[] |
RemovePrimaryKeyChange.getPrimaryKeyColumns()
Returns the primary key columns making up the primary key.
|
| Modifier and Type | Method and Description |
|---|---|
List |
ModelComparator.compareColumns(Table sourceTable,
Column sourceColumn,
Table targetTable,
Column targetColumn)
Compares the two columns and returns the changes necessary to create the second
column from the first one.
|
int |
ColumnOrderChange.getNewPosition(Column sourceColumn)
Returns the new position of the given source column.
|
| Constructor and Description |
|---|
AddColumnChange(Table table,
Column newColumn,
Column previousColumn,
Column nextColumn)
Creates a new change object.
|
AddPrimaryKeyChange(Table table,
Column[] primaryKeyColumns)
Creates a new change object.
|
ColumnAutoIncrementChange(Table table,
Column column)
Creates a new change object.
|
ColumnDataTypeChange(Table table,
Column column,
int newTypeCode)
Creates a new change object.
|
ColumnDefaultValueChange(Table table,
Column column,
String newDefaultValue)
Creates a new change object.
|
ColumnRequiredChange(Table table,
Column column)
Creates a new change object.
|
ColumnSizeChange(Table table,
Column column,
int newSize,
int newScale)
Creates a new change object.
|
PrimaryKeyChange(Table table,
Column[] oldPrimaryKeyColumns,
Column[] newPrimaryKeyColumns)
Creates a new change object.
|
PrimaryKeyChange(Table table,
Column[] oldPrimaryKeyColumns,
Column[] newPrimaryKeyColumns)
Creates a new change object.
|
RemoveColumnChange(Table table,
Column column)
Creates a new change object.
|
RemovePrimaryKeyChange(Table table,
Column[] primaryKeyColumns)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
Column |
SqlDynaProperty.getColumn()
Returns the column for which this property is defined.
|
| Constructor and Description |
|---|
SqlDynaProperty(Column column)
Creates a property instance for the given column that accepts any data type.
|
SqlDynaProperty(Column column,
Class type)
Creates a property instance for the given column that only accepts the given type.
|
| Modifier and Type | Method and Description |
|---|---|
SqlTypeConverter |
ConverterConfiguration.getRegisteredConverter(Table table,
Column column)
Returns the converter registered for the specified column.
|
| Constructor and Description |
|---|
SetColumnPropertyFromSubElementRule(Column column,
SqlTypeConverter converter)
Creates a new creation rule that sets the property corresponding to the given column.
|
SetColumnPropertyRule(Column column,
SqlTypeConverter converter,
boolean beCaseSensitive)
Creates a new creation rule that sets the property corresponding to the given column.
|
| Modifier and Type | Method and Description |
|---|---|
Column |
Table.findColumn(String name)
Finds the column with the specified name, using case insensitive matching.
|
Column |
Table.findColumn(String name,
boolean caseSensitive)
Finds the column with the specified name, using case insensitive matching.
|
Column[] |
Table.getAutoIncrementColumns()
Returns the auto increment columns in this table.
|
Column |
IndexColumn.getColumn()
Returns the indexed column.
|
Column |
Table.getColumn(int idx)
Returns the column at the specified position.
|
Column[] |
Table.getColumns()
Returns the columns in this table.
|
Column |
Reference.getForeignColumn()
Returns the foreign column.
|
Column |
Reference.getLocalColumn()
Returns the local column.
|
Column[] |
Table.getPrimaryKeyColumns()
Returns the primary key columns of this table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Table.addColumn(Column column)
Adds the given column.
|
void |
Table.addColumn(Column previousColumn,
Column column)
Adds the column after the given previous column.
|
void |
Table.addColumn(int idx,
Column column)
Adds the given column at the specified position.
|
int |
Table.getColumnIndex(Column column)
Determines the index of the given column.
|
boolean |
Index.hasColumn(Column column)
Determines whether this index includes the given column.
|
boolean |
IndexImpBase.hasColumn(Column column)
Determines whether this index includes the given column.
|
boolean |
ForeignKey.hasForeignColumn(Column column)
Determines whether this foreign key uses the given column as a foreign
column in a reference.
|
boolean |
ForeignKey.hasLocalColumn(Column column)
Determines whether this foreign key uses the given column as a local
column in a reference.
|
void |
Table.removeColumn(Column column)
Removes the given column.
|
void |
IndexColumn.setColumn(Column column)
Sets the indexed column.
|
void |
Reference.setForeignColumn(Column foreignColumn)
Sets the foreign column.
|
void |
Reference.setLocalColumn(Column localColumn)
Sets the local column.
|
| Constructor and Description |
|---|
IndexColumn(Column column)
Creates a new index column object.
|
Reference(Column localColumn,
Column foreignColumn)
Creates a new reference between the two given columns.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
JdbcModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
SqlBuilder.columnsDiffer(Column currentColumn,
Column desiredColumn)
Compares the current column in the database with the desired one.
|
protected void |
JdbcModelReader.determineAutoIncrementFromResultSetMetaData(Table table,
Column[] columnsToCheck)
Helper method that determines the auto increment status for the given columns via the
ResultSetMetaData.isAutoIncrement(int) method. |
protected String |
SqlBuilder.getBareNativeType(Column column)
Returns the bare database-native type for the given column without any size specifies.
|
protected String |
SqlBuilder.getColumnName(Column column)
Returns the column name.
|
protected String |
SqlBuilder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected String |
SqlBuilder.getNativeType(Column column)
Returns the database-native type for the given column.
|
protected Object |
PlatformImplBase.getObjectFromResultSet(ResultSet resultSet,
Column column,
int idx)
Helper method for retrieving the value for a column from the given result set
using the type code of the column.
|
protected String |
SqlBuilder.getSqlType(Column column)
Returns the full SQL type specification (including size and precision/scale) for the
given column.
|
protected String |
SqlBuilder.getValueAsString(Column column,
Object value)
Generates the string representation of the given value.
|
protected boolean |
SqlBuilder.shouldGeneratePrimaryKeys(Column[] primaryKeyColumns)
Determines whether we should generate a primary key constraint for the given
primary key columns.
|
protected void |
SqlBuilder.writeCastExpression(Column sourceColumn,
Column targetColumn)
Writes a cast expression that converts the value of the source column to the data type
of the target column.
|
protected void |
SqlBuilder.writeColumn(Table table,
Column column)
Outputs the DDL for the specified column.
|
protected void |
SqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
SqlBuilder.writeColumnDefaultValue(Table table,
Column column)
Prints the default value of the column.
|
protected void |
SqlBuilder.writeColumnDefaultValueStmt(Table table,
Column column)
Prints the default value stmt part for the column.
|
protected void |
SqlBuilder.writeExternalPrimaryKeysCreateStmt(Table table,
Column[] primaryKeyColumns)
Writes the primary key constraints of the table as alter table statements.
|
protected void |
SqlBuilder.writePrimaryKeyStmt(Table table,
Column[] primaryKeyColumns)
Writes a primary key statement for the given columns.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AxionBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
CloudscapeBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
Db2ModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
Db2Builder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected void |
Db2Builder.writeCastExpression(Column sourceColumn,
Column targetColumn)
Writes a cast expression that converts the value of the source column to the data type
of the target column.
|
protected void |
Db2Builder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
DerbyModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
DerbyBuilder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected void |
DerbyBuilder.writeCastExpression(Column sourceColumn,
Column targetColumn)
Writes a cast expression that converts the value of the source column to the data type
of the target column.
|
protected void |
DerbyBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
FirebirdModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
FirebirdBuilder.getGeneratorName(Table table,
Column column)
Determines the name of the generator for an auto-increment column.
|
protected String |
FirebirdBuilder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected void |
FirebirdBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
HsqlDbModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
InterbaseBuilder.getGeneratorName(Table table,
Column column)
Determines the name of the generator for an auto-increment column.
|
protected String |
InterbaseBuilder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected String |
InterbaseBuilder.getTriggerName(Table table,
Column column)
Determines the name of the trigger for an auto-increment column.
|
protected void |
InterbaseBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
MaxDbModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MaxDbBuilder.writeExternalPrimaryKeysCreateStmt(Table table,
Column[] primaryKeyColumns)
Writes the primary key constraints of the table as alter table statements.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
MckoiModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MckoiBuilder.createAutoIncrementSequence(Table table,
Column column)
Creates the sequence necessary for the auto-increment of the given column.
|
protected void |
MckoiBuilder.dropAutoIncrementSequence(Table table,
Column column)
Drops the sequence used for the auto-increment of the given column.
|
protected void |
MckoiBuilder.writeColumnDefaultValue(Table table,
Column column)
Prints the default value of the column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
MSSqlModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
MSSqlBuilder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected String |
MSSqlBuilder.getValueAsString(Column column,
Object value)
Generates the string representation of the given value.
|
protected void |
MSSqlBuilder.processColumnChange(Table sourceTable,
Table targetTable,
Column sourceColumn,
Column targetColumn,
boolean typeChange)
Processes a change to a column.
|
protected void |
MSSqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
MySqlModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
protected Column |
MySql50ModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MySqlBuilder.processColumnChange(Table sourceTable,
Table targetTable,
Column sourceColumn,
Column targetColumn)
Processes a change to a column.
|
protected boolean |
MySqlBuilder.shouldGeneratePrimaryKeys(Column[] primaryKeyColumns)
Determines whether we should generate a primary key constraint for the given
primary key columns.
|
protected void |
MySqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
Oracle8ModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Oracle8Builder.createAutoIncrementSequence(Table table,
Column column)
Creates the sequence necessary for the auto-increment of the given column.
|
protected void |
Oracle8Builder.createAutoIncrementTrigger(Table table,
Column column)
Creates the trigger necessary for the auto-increment of the given column.
|
protected void |
Oracle8Builder.dropAutoIncrementSequence(Table table,
Column column)
Drops the sequence used for the auto-increment of the given column.
|
protected void |
Oracle8Builder.dropAutoIncrementTrigger(Table table,
Column column)
Drops the trigger used for the auto-increment of the given column.
|
protected String |
Oracle8Builder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected boolean |
Oracle8ModelReader.isAutoIncrement(Table table,
Column column)
Tries to determine whether the given column is an identity column.
|
protected void |
Oracle8Builder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
PostgreSqlModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PostgreSqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
SapDbModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SapDbBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
SapDbBuilder.writeExternalPrimaryKeysCreateStmt(Table table,
Column[] primaryKeyColumns)
Writes the primary key constraints of the table as alter table statements.
|
| Modifier and Type | Method and Description |
|---|---|
protected Column |
SybaseModelReader.readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
SybaseBuilder.getNativeDefaultValue(Column column)
Returns the native default value for the column.
|
protected void |
SybaseBuilder.processColumnChange(Table sourceTable,
Table targetTable,
Column sourceColumn,
Column targetColumn)
Processes a change to a column.
|
protected void |
SybaseBuilder.writeCastExpression(Column sourceColumn,
Column targetColumn)
Writes a cast expression that converts the value of the source column to the data type
of the target column.
|
protected void |
SybaseBuilder.writeColumn(Table table,
Column column)
Outputs the DDL for the specified column.
|
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.