| Package | Description |
|---|---|
| org.apache.ddlutils |
This package mainly contains the database platform abstraction,
Platform
and the factory to create instances for individual platforms,
PlatformFactory. |
| 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.
|
| org.apache.ddlutils.task |
The
org.apache.ddlutils.task package contains the Ant
tasks provided by DdlUtils. |
| Modifier and Type | Method and Description |
|---|---|
void |
Platform.dropTable(Connection connection,
Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
void |
Platform.dropTable(Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
List |
Platform.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
String |
Platform.getDropTableSql(Database model,
Table table,
boolean continueOnError)
Returns the SQL for dropping the given table and all foreign keys pointing to it.
|
Iterator |
Platform.query(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Performs the given parameterized SQL query returning an iterator over the results.
|
Iterator |
Platform.query(Database model,
String sql,
Table[] queryHints)
Performs the given SQL query returning an iterator over the results.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
TableChangeImplBase.getChangedTable()
Returns the affected table.
|
Table |
TableChange.getChangedTable()
Returns the affected table from the original model.
|
Table |
AddTableChange.getNewTable()
Returns the new table.
|
| 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.
|
List |
ModelComparator.compareTables(Database sourceModel,
Table sourceTable,
Database targetModel,
Table targetTable)
Compares the two tables and returns the changes necessary to create the second
table from the first one.
|
| Constructor and Description |
|---|
AddColumnChange(Table table,
Column newColumn,
Column previousColumn,
Column nextColumn)
Creates a new change object.
|
AddForeignKeyChange(Table table,
ForeignKey newForeignKey)
Creates a new change object.
|
AddIndexChange(Table table,
Index newIndex)
Creates a new change object.
|
AddPrimaryKeyChange(Table table,
Column[] primaryKeyColumns)
Creates a new change object.
|
AddTableChange(Table newTable)
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.
|
ColumnOrderChange(Table table,
Map newPositions)
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.
|
RemoveColumnChange(Table table,
Column column)
Creates a new change object.
|
RemoveForeignKeyChange(Table table,
ForeignKey foreignKey)
Creates a new change object.
|
RemoveIndexChange(Table table,
Index index)
Creates a new change object.
|
RemovePrimaryKeyChange(Table table,
Column[] primaryKeyColumns)
Creates a new change object.
|
RemoveTableChange(Table table)
Creates a new change object.
|
TableChangeImplBase(Table table)
Creates a new change object.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
SqlDynaClass.getTable()
Returns the table for which this dyna class is defined.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.beanutils.DynaBean |
DynaClassCache.copy(Table table,
Object source)
Creates a new dyna bean instance for the given table and copies the values from the
given source object.
|
org.apache.commons.beanutils.DynaBean |
DynaClassCache.createNewInstance(Table table)
Creates a new dyna bean instance for the given table.
|
SqlDynaClass |
DynaClassCache.getDynaClass(Table table)
Returns the
SqlDynaClass for the given table. |
static SqlDynaClass |
SqlDynaClass.newInstance(Table table)
Factory method for creating and initializing a new dyna class instance
for the given table.
|
| Constructor and Description |
|---|
SqlDynaClass(Table table,
SqlDynaProperty[] properties)
Creates a new dyna class instance for the given table that has the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
Identity.getTable()
Returns the table that this identity is for.
|
| Modifier and Type | Method and Description |
|---|---|
SqlTypeConverter |
ConverterConfiguration.getRegisteredConverter(Table table,
Column column)
Returns the converter registered for the specified column.
|
| Constructor and Description |
|---|
DynaSqlCreateRule(Database model,
Table table,
DataSink receiver)
Creates a new creation rule that creates dyna bean instances.
|
Identity(Table table)
Creates a new identity object for the given table.
|
Identity(Table table,
String fkName)
Creates a new identity object for the given table.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
Database.findTable(String name)
Finds the table with the specified name, using case insensitive matching.
|
Table |
Database.findTable(String name,
boolean caseSensitive)
Finds the table with the specified name, using case insensitive matching.
|
Table |
ForeignKey.getForeignTable()
Returns the foreign table.
|
Table |
Database.getTable(int idx)
Returns the table at the specified position.
|
Table[] |
Database.getTables()
Returns the tables in this model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Database.addTable(int idx,
Table table)
Adds a table at the specified position.
|
void |
Database.addTable(Table table)
Adds a table.
|
org.apache.commons.beanutils.DynaBean |
Database.createDynaBeanFor(Table table)
Creates a new dyna bean for the given table.
|
void |
Database.removeTable(Table table)
Removes the given table.
|
void |
ForeignKey.setForeignTable(Table foreignTable)
Sets the foreign table.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
SqlBuilder.getRealTargetTableFor(Database targetModel,
Table sourceTable,
Table targetTable)
Creates the target table object that differs from the given target table only in the
indices.
|
protected Table |
SqlBuilder.getTemporaryTableFor(Database targetModel,
Table targetTable)
Creates a temporary table object that corresponds to the given table.
|
protected Table |
JdbcModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CreationParameters.addParameter(Table table,
String paramName,
String paramValue)
Adds a parameter.
|
protected void |
PlatformImplBase.afterInsert(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been inserted into
the specified table.
|
protected void |
PlatformImplBase.afterUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been updated in
the specified table.
|
protected void |
PlatformImplBase.beforeInsert(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are inserted into
the specified table.
|
protected void |
PlatformImplBase.beforeUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are updated in
the specified table.
|
void |
SqlBuilder.createExternalForeignKeys(Database database,
Table table)
Creates external foreignkey creation statements if necessary.
|
protected ModelBasedResultSetIterator |
PlatformImplBase.createResultSetIterator(Database model,
ResultSet resultSet,
Table[] queryHints)
Creates an iterator over the given result set.
|
void |
SqlBuilder.createTable(Database database,
Table table)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
SqlBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
SqlBuilder.createTemporaryTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the given temporary table.
|
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. |
String |
JdbcModelReader.determineSchemaOf(Connection connection,
String schemaPattern,
Table table)
Deprecated.
Will be removed once full schema support is in place
|
void |
SqlBuilder.dropExternalForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
PlatformImplBase.dropTable(Connection connection,
Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
void |
SqlBuilder.dropTable(Database database,
Table table)
Outputs the DDL required to drop the given table.
|
void |
PlatformImplBase.dropTable(Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
void |
SqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected void |
SqlBuilder.dropTemporaryTable(Database database,
Table table)
Outputs the DDL to drop the given temporary table.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
protected ForeignKey |
SqlBuilder.findCorrespondingForeignKey(Table table,
ForeignKey fk)
Searches in the given table for a corresponding foreign key.
|
String |
SqlBuilder.getConstraintName(String prefix,
Table table,
String secondPart,
String suffix)
Returns the constraint name.
|
String |
SqlBuilder.getDeleteSql(Table table,
Map pkValues,
boolean genPlaceholders)
Creates the SQL for deleting an object from the specified table.
|
String |
PlatformImplBase.getDropTableSql(Database model,
Table table,
boolean continueOnError)
Returns the SQL for dropping the given table and all foreign keys pointing to it.
|
String |
SqlBuilder.getForeignKeyName(Table table,
ForeignKey fk)
Returns the name to be used for the given foreign key.
|
String |
SqlBuilder.getInsertSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for inserting an object into the specified table.
|
protected Object |
PlatformImplBase.getObjectFromResultSet(ResultSet resultSet,
String columnName,
Table table)
Helper method esp.
|
Map |
CreationParameters.getParametersFor(Table table)
Returns the parameters for the given table.
|
protected Table |
SqlBuilder.getRealTargetTableFor(Database targetModel,
Table sourceTable,
Table targetTable)
Creates the target table object that differs from the given target table only in the
indices.
|
String |
SqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
String |
SqlBuilder.getTableName(Table table)
Returns the table name.
|
protected Table |
SqlBuilder.getTemporaryTableFor(Database targetModel,
Table targetTable)
Creates a temporary table object that corresponds to the given table.
|
String |
SqlBuilder.getUpdateSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for updating an object in the specified table.
|
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 void |
SqlBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
Iterator |
PlatformImplBase.query(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Performs the given parameterized SQL query returning an iterator over the results.
|
Iterator |
PlatformImplBase.query(Database model,
String sql,
Table[] queryHints)
Performs the given SQL query returning an iterator over the results.
|
protected void |
JdbcModelReader.removeInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk)
Tries to remove the internal index for the given foreign key.
|
protected void |
JdbcModelReader.removeInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table)
Tries to remove the internal index for the table's primary key.
|
protected void |
JdbcModelReader.removeSystemIndices(DatabaseMetaDataWrapper metaData,
Table table)
Removes system indices (generated by the database for primary and foreign keys)
from the table.
|
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.writeColumns(Table table)
Writes the columns of the given table.
|
protected void |
SqlBuilder.writeCopyDataStatement(Table sourceTable,
Table targetTable)
Writes a statement that copies the data from the source to the target table.
|
protected void |
SqlBuilder.writeEmbeddedForeignKeysStmt(Database database,
Table table)
Writes the foreign key constraints inside a create table () clause.
|
protected void |
SqlBuilder.writeEmbeddedIndexCreateStmt(Table table,
Index index)
Writes the given embedded index of the table.
|
protected void |
SqlBuilder.writeEmbeddedIndicesStmt(Table table)
Writes the indexes embedded within the create table statement.
|
protected void |
SqlBuilder.writeEmbeddedPrimaryKeysStmt(Table table)
Writes the primary key constraints of the table inside its definition.
|
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.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.
|
protected void |
SqlBuilder.writeExternalIndicesCreateStmt(Table table)
Writes the indexes of the given table.
|
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.
|
protected void |
SqlBuilder.writeTableAlterStmt(Table table)
Generates the first part of the ALTER TABLE statement including the
table name.
|
protected void |
SqlBuilder.writeTableComment(Table table)
Outputs a comment for the table.
|
protected void |
SqlBuilder.writeTableCreationStmt(Database database,
Table table,
Map parameters)
Writes the table creation statement without the statement end.
|
protected void |
SqlBuilder.writeTableCreationStmtEnding(Table table,
Map parameters)
Writes the end of the table creation statement.
|
| Constructor and Description |
|---|
ModelBasedResultSetIterator(PlatformImplBase platform,
Database model,
ResultSet resultSet,
Table[] queryHints,
boolean cleanUpAfterFinish)
Creates a new iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AxionBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected void |
AxionModelReader.removeSystemIndices(DatabaseMetaDataWrapper metaData,
Table table)
Removes system indices (generated by the database for primary and foreign keys)
from the table.
|
protected void |
AxionBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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 |
|---|---|
String |
CloudscapeBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected void |
CloudscapeBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
Db2ModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Db2Builder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
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.
|
protected void |
Db2Builder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
Db2Builder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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.
|
protected void |
DerbyBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
DerbyBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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 Table |
FirebirdModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FirebirdBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
FirebirdModelReader.determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Firebird's system tables.
|
String |
FirebirdModelReader.determineSchemaOf(Connection connection,
String schemaPattern,
Table table)
Tries to find the schema to which the given table belongs.
|
void |
FirebirdBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected String |
FirebirdBuilder.getGeneratorName(Table table,
Column column)
Determines the name of the generator for an auto-increment column.
|
String |
FirebirdBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
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.
|
protected void |
FirebirdBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
FirebirdBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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 Table |
HsqlDbModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HsqlDbBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
HsqlDbBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
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.
|
protected void |
HsqlDbBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
InterbaseModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
InterbaseModelReader.adjustColumns(Table table)
Adjusts the columns in the table by fixing types and default values.
|
void |
InterbaseBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
InterbaseModelReader.determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Interbase's system tables.
|
protected void |
InterbaseModelReader.determineExtraColumnInfo(Table table)
Helper method that determines extra column info from the system tables: default value, precision, scale.
|
String |
InterbaseModelReader.determineSchemaOf(Connection connection,
String schemaPattern,
Table table)
Tries to find the schema to which the given table belongs.
|
void |
InterbaseBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected String |
InterbaseBuilder.getGeneratorName(Table table,
Column column)
Determines the name of the generator for an auto-increment column.
|
String |
InterbaseBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected String |
InterbaseBuilder.getTriggerName(Table table,
Column column)
Determines the name of the trigger for an auto-increment column.
|
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.
|
protected void |
InterbaseBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
InterbaseBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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 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.
|
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 Table |
MckoiModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| 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.
|
void |
MckoiBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
MckoiBuilder.dropAutoIncrementSequence(Table table,
Column column)
Drops the sequence used for the auto-increment of the given column.
|
void |
MckoiBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
MckoiBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected void |
MckoiBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
MckoiBuilder.writeColumnDefaultValue(Table table,
Column column)
Prints the default value of the column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
MSSqlModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MSSqlPlatform.afterInsert(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been inserted into
the specified table.
|
protected void |
MSSqlPlatform.afterUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been updated in
the specified table.
|
protected void |
MSSqlPlatform.beforeInsert(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are inserted into
the specified table.
|
protected void |
MSSqlPlatform.beforeUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are updated in
the specified table.
|
void |
MSSqlBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
MSSqlBuilder.dropExternalForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
MSSqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
MSSqlBuilder.getDeleteSql(Table table,
Map pkValues,
boolean genPlaceholders)
Creates the SQL for deleting an object from the specified table.
|
protected String |
MSSqlBuilder.getDisableIdentityOverrideSql(Table table)
Returns the SQL to disable identity override mode.
|
protected String |
MSSqlBuilder.getEnableIdentityOverrideSql(Table table)
Returns the SQL to enable identity override mode.
|
String |
MSSqlBuilder.getInsertSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for inserting an object into the specified table.
|
String |
MSSqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
String |
MSSqlBuilder.getUpdateSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for updating an object in the specified table.
|
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.
|
protected void |
MSSqlBuilder.processColumnChange(Table sourceTable,
Table targetTable,
Column sourceColumn,
Column targetColumn,
boolean typeChange)
Processes a change to a column.
|
protected void |
MSSqlBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
MSSqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
MSSqlBuilder.writeCopyDataStatement(Table sourceTable,
Table targetTable)
Writes a statement that copies the data from the source to the target table.
|
protected void |
MSSqlBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
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 Table |
MySqlModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MySqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
MySqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
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.
|
protected void |
MySqlBuilder.processColumnChange(Table sourceTable,
Table targetTable,
Column sourceColumn,
Column targetColumn)
Processes a change to a column.
|
protected void |
MySqlBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
MySqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
MySqlBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
protected void |
MySqlBuilder.writeTableCreationStmtEnding(Table table,
Map parameters)
Writes the end of the table creation statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
Oracle10ModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
protected Table |
Oracle8ModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| 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.
|
void |
Oracle8Builder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
Oracle8Builder.createTemporaryTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the given temporary table.
|
protected void |
Oracle8ModelReader.determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Firebird's system tables.
|
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.
|
void |
Oracle8Builder.dropExternalForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
Oracle10Builder.dropTable(Table table)
Outputs the DDL to drop the table.
|
void |
Oracle8Builder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected void |
Oracle8Builder.dropTemporaryTable(Database database,
Table table)
Outputs the DDL to drop the given temporary table.
|
String |
Oracle8Builder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected boolean |
Oracle8ModelReader.isAutoIncrement(Table table,
Column column)
Tries to determine whether the given column is an identity column.
|
protected void |
Oracle8Builder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
Oracle8Builder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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 Table |
PostgreSqlModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PostgreSqlBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
PostgreSqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
PostgreSqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
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.
|
protected void |
PostgreSqlBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
PostgreSqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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 |
|---|---|
void |
SapDbBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
SapDbBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected void |
SapDbBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
protected void |
SapDbBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
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.
|
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 Table |
SybaseModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SybasePlatform.afterInsert(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been inserted into
the specified table.
|
protected void |
SybasePlatform.afterUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been updated in
the specified table.
|
protected void |
SybasePlatform.beforeInsert(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are inserted into
the specified table.
|
protected void |
SybasePlatform.beforeUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are updated in
the specified table.
|
void |
SybaseBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
SybaseBuilder.dropExternalForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
SybaseBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
List |
SybasePlatform.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
List |
SybasePlatform.fetch(Database model,
String sql,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
protected String |
SybaseBuilder.getDisableIdentityOverrideSql(Table table)
Returns the SQL to disable identity override mode.
|
protected String |
SybaseBuilder.getEnableIdentityOverrideSql(Table table)
Returns the SQL to enable identity override mode.
|
String |
SybaseBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
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.
|
protected void |
SybaseBuilder.processColumnChange(Table sourceTable,
Table targetTable,
Column sourceColumn,
Column targetColumn)
Processes a change to a column.
|
protected void |
SybaseBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
Allows database-specific implementations to handle changes in a database
specific manner.
|
Iterator |
SybasePlatform.query(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Performs the given parameterized SQL query returning an iterator over the results.
|
Iterator |
SybasePlatform.query(Database model,
String sql,
Table[] queryHints)
Performs the given SQL query returning an iterator over the results.
|
protected void |
SybaseBuilder.writeColumn(Table table,
Column column)
Outputs the DDL for the specified column.
|
protected void |
SybaseBuilder.writeCopyDataStatement(Table sourceTable,
Table targetTable)
Writes a statement that copies the data from the source to the target table.
|
protected void |
SybaseBuilder.writeExternalForeignKeyDropStmt(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
void |
SybaseBuilder.writeExternalIndexDropStmt(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
protected void |
SybaseBuilder.writeTableCreationStmtEnding(Table table,
Map parameters)
Writes the end of the table creation statement.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TableSpecificParameter.isForTable(Table table,
boolean caseSensitive)
Determines whether this parameter is applicable to the given table.
|
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.