| 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.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.db2 |
This package contains the platform implementation for the
DB2 UDB 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.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 |
|---|---|
Database |
Platform.readModelFromDatabase(Connection connection,
String name)
Reads the database model from the live database to which the given connection is pointing.
|
Database |
Platform.readModelFromDatabase(Connection connection,
String name,
String catalog,
String schema,
String[] tableTypes)
Reads the database model from the live database to which the given connection is pointing.
|
Database |
Platform.readModelFromDatabase(String name)
Reads the database model from the live database as specified by the data source set for
this platform.
|
Database |
Platform.readModelFromDatabase(String name,
String catalog,
String schema,
String[] tableTypes)
Reads the database model from the live database as specified by the data source set for
this platform.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Platform.alterModel(Connection connection,
Database currentModel,
Database desiredModel,
boolean continueOnError)
Alters the given live database model so that it match the desired model.
|
void |
Platform.alterModel(Connection connection,
Database currentModel,
Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the given live database model so that it match the desired model.
|
void |
Platform.alterModel(Database currentModel,
Database desiredModel,
boolean continueOnError)
Alters the given live database model so that it match the desired model, using the default database conneciton.
|
void |
Platform.alterModel(Database currentModel,
Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the given live database model so that it match the desired model, using the default database conneciton.
|
void |
Platform.alterTables(Connection connection,
Database desiredDb,
boolean continueOnError)
Deprecated.
Use
Platform.alterModel(Connection, Database, Database, boolean) together with
Platform.readModelFromDatabase(Connection, String) instead. |
void |
Platform.alterTables(Connection connection,
Database desiredDb,
CreationParameters params,
boolean continueOnError)
Deprecated.
|
void |
Platform.alterTables(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
boolean continueOnError)
Deprecated.
|
void |
Platform.alterTables(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params,
boolean continueOnError)
Deprecated.
|
void |
Platform.alterTables(Database desiredDb,
boolean continueOnError)
Deprecated.
Use
Platform.alterModel(Database, Database, boolean) together with
Platform.readModelFromDatabase(String) instead. |
void |
Platform.alterTables(Database desiredDb,
CreationParameters params,
boolean continueOnError)
Deprecated.
Use
Platform.alterModel(Database, Database, CreationParameters, boolean) together with
Platform.readModelFromDatabase(String) instead. |
void |
Platform.alterTables(String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
boolean continueOnError)
Deprecated.
Use
Platform.alterModel(Database, Database, boolean) together with
Platform.readModelFromDatabase(String, String, String, String[]) instead. |
void |
Platform.alterTables(String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params,
boolean continueOnError)
Deprecated.
|
void |
Platform.createModel(Connection connection,
Database model,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
Platform.createModel(Connection connection,
Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
Platform.createModel(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
Platform.createModel(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
Platform.createTables(Connection connection,
Database model,
boolean dropTablesFirst,
boolean continueOnError)
Deprecated.
|
void |
Platform.createTables(Connection connection,
Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Deprecated.
|
void |
Platform.createTables(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Deprecated.
Use
Platform.createModel(Database, boolean, boolean) instead. |
void |
Platform.createTables(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Deprecated.
|
void |
Platform.delete(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Deletes the row which maps to the given bean from the database.
|
void |
Platform.delete(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Deletes the given bean from the database, assuming the primary key values are specified.
|
void |
Platform.dropModel(Connection connection,
Database model,
boolean continueOnError)
Drops the given model.
|
void |
Platform.dropModel(Database model,
boolean continueOnError)
Drops the given model using the default database connection.
|
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.
|
void |
Platform.dropTables(Connection connection,
Database model,
boolean continueOnError)
Deprecated.
Use
Platform.dropModel(Connection, Database, boolean) instead. |
void |
Platform.dropTables(Database model,
boolean continueOnError)
Deprecated.
Use
Platform.dropModel(Database, boolean) instead. |
boolean |
Platform.exists(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Determines whether the given dyna bean is stored in the database.
|
boolean |
Platform.exists(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Determines whether the given dyna bean is stored in the database.
|
List |
Platform.fetch(Database model,
String sql)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Collection parameters)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Collection parameters,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
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,
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.getAlterModelSql(Database currentModel,
Database desiredModel)
Returns the SQL for altering the given current model so that it match the desired model.
|
String |
Platform.getAlterModelSql(Database currentModel,
Database desiredModel,
CreationParameters params)
Returns the SQL for altering the given current model so that it match the desired model.
|
String |
Platform.getAlterTablesSql(Connection connection,
Database desiredDb)
Deprecated.
Use
Platform.getAlterModelSql(Database, Database) together with
Platform.readModelFromDatabase(Connection, String) instead. |
String |
Platform.getAlterTablesSql(Connection connection,
Database desiredDb,
CreationParameters params)
Deprecated.
|
String |
Platform.getAlterTablesSql(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredDb)
Deprecated.
|
String |
Platform.getAlterTablesSql(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params)
Deprecated.
|
String |
Platform.getAlterTablesSql(Database desiredDb)
Deprecated.
Use
Platform.getAlterModelSql(Database, Database) together with
Platform.readModelFromDatabase(String) instead. |
String |
Platform.getAlterTablesSql(Database desiredDb,
CreationParameters params)
Deprecated.
Use
Platform.getAlterModelSql(Database, Database, CreationParameters) together with
Platform.readModelFromDatabase(String) instead. |
String |
Platform.getAlterTablesSql(String catalog,
String schema,
String[] tableTypes,
Database desiredDb)
Deprecated.
Use
Platform.getAlterModelSql(Database, Database) together with
Platform.readModelFromDatabase(String, String, String, String[]) instead. |
String |
Platform.getAlterTablesSql(String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params)
Deprecated.
|
List |
Platform.getChanges(Database currentModel,
Database desiredModel)
Returns the necessary changes to apply to the current database to make it the desired one.
|
String |
Platform.getCreateModelSql(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
String |
Platform.getCreateModelSql(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
String |
Platform.getCreateTablesSql(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Deprecated.
|
String |
Platform.getCreateTablesSql(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Deprecated.
|
String |
Platform.getDeleteSql(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Returns the sql for deleting the given bean from the database.
|
String |
Platform.getDropModelSql(Database model)
Returns the SQL for dropping the given model.
|
String |
Platform.getDropTableSql(Database model,
Table table,
boolean continueOnError)
Returns the SQL for dropping the given table and all foreign keys pointing to it.
|
String |
Platform.getDropTablesSql(Database model,
boolean continueOnError)
Deprecated.
Use
Platform.getDropModelSql(Database) instead. |
String |
Platform.getInsertSql(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Returns the sql for inserting the given bean.
|
String |
Platform.getUpdateSql(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Returns the sql for updating the given bean in the database.
|
String |
Platform.getUpdateSql(Database model,
org.apache.commons.beanutils.DynaBean oldDynaBean,
org.apache.commons.beanutils.DynaBean newDynaBean)
Returns the sql for updating the given bean in the database.
|
void |
Platform.insert(Connection connection,
Database model,
Collection dynaBeans)
Inserts the given beans.
|
void |
Platform.insert(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Inserts the bean.
|
void |
Platform.insert(Database model,
Collection dynaBeans)
Inserts the given beans in the database, assuming the primary key values are specified.
|
void |
Platform.insert(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Inserts the given DynaBean in the database, assuming the primary key values are specified.
|
Iterator |
Platform.query(Database model,
String sql)
Performs the given SQL query returning an iterator over the results.
|
Iterator |
Platform.query(Database model,
String sql,
Collection parameters)
Performs the given parameterized SQL query returning an iterator over the results.
|
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.
|
void |
Platform.store(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Stores the given bean in the database, inserting it if there is no primary key
otherwise the bean is updated in the database.
|
void |
Platform.store(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Stores the given bean in the database, inserting it if there is no primary key
otherwise the bean is updated in the database.
|
void |
Platform.update(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Updates the row which maps to the given bean.
|
void |
Platform.update(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean oldDynaBean,
org.apache.commons.beanutils.DynaBean newDynaBean)
Updates the row identified by the given
oldDynaBean in the database with the
values in newDynaBean. |
void |
Platform.update(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Updates the given bean in the database, assuming the primary key values are specified.
|
void |
Platform.update(Database model,
org.apache.commons.beanutils.DynaBean oldDynaBean,
org.apache.commons.beanutils.DynaBean newDynaBean)
Updates the row identified by the given
oldDynaBean in the database with the
values in newDynaBean. |
| Modifier and Type | Method and Description |
|---|---|
void |
AddForeignKeyChange.apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
void |
AddIndexChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
RemovePrimaryKeyChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
RemoveColumnChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
RemoveTableChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
ColumnDefinitionChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
AddPrimaryKeyChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
AddTableChange.apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
void |
ColumnOrderChange.apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
void |
RemoveForeignKeyChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
PrimaryKeyChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
ModelChange.apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
void |
AddColumnChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
void |
RecreateTableChange.apply(Database database,
boolean caseSensitive)
Applies this change to the given database.
|
void |
RemoveIndexChange.apply(Database model,
boolean caseSensitive)
Applies this change to the given database.
|
protected List |
ModelComparator.checkForAddedColumns(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for columns that are not present in the given source table but are in the target
table, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForAddedForeignKeys(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for foreign keys that are not present in the given source model but are in the target
model, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForAddedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are not present in the given source table but are in the target
table, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForAddedTables(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for tables that are not present in the given source model but are in the target
model, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForChangedColumns(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for columns that have a different in the given source and target table, and applies them
to the given intermediate model.
|
protected List |
ModelComparator.checkForChangeOfColumnOrder(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Checks for changes in the column order between the given source and target table, creates change objects for these and
applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForPrimaryKeyChanges(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for primary key differences (primary key added/removed/changed), and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForRemovedColumns(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for columns that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForRemovedForeignKeys(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for foreign keys that are present in the given source model but are no longer in the target
model, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForRemovedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForRemovedTables(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for tables that are present in the given source model but are no longer in the target
model, and applies them to the given intermediate model.
|
List |
ModelComparator.compare(Database sourceModel,
Database targetModel)
Compares the two models and returns the changes necessary to create the second
model from the first one.
|
protected List |
ModelComparator.compareModels(Database sourceModel,
Database intermediateModel,
Database targetModel)
Compares the given source and target models and creates change objects to get from
the source to the target one.
|
protected List |
ModelComparator.compareTables(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Compares the two tables and returns the changes necessary to create the second
table from the first one.
|
Column |
ColumnChangeImplBase.findChangedColumn(Database model,
boolean caseSensitive)
Finds the column object corresponding to the changed column in the given database model.
|
Column |
ColumnChange.findChangedColumn(Database model,
boolean caseSensitive)
Finds the column object corresponding to the changed column in the given database model.
|
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.
|
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.
|
Table |
TableChangeImplBase.findChangedTable(Database model,
boolean caseSensitive)
Finds the table object corresponding to the changed table in the given database model.
|
Table |
TableChange.findChangedTable(Database model,
boolean caseSensitive)
Finds the table object corresponding to the changed table in the given database model.
|
| Modifier and Type | Method and Description |
|---|---|
Database |
DataReader.getModel()
Returns the database model.
|
Database |
DatabaseIO.read(File file)
Reads the database model contained in the specified file.
|
Database |
DatabaseIO.read(InputSource source)
Reads the database model from the given input source.
|
Database |
DatabaseIO.read(Reader reader)
Reads the database model given by the reader.
|
Database |
DatabaseIO.read(String filename)
Reads the database model contained in the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
DataReader |
DatabaseDataIO.getConfiguredDataReader(Platform platform,
Database model)
Returns a data reader instance configured for the given platform (which needs to
be connected to a live database) and model.
|
void |
DataReader.setModel(Database model)
Sets the database model.
|
void |
DatabaseIO.write(Database model,
OutputStream output)
Writes the database model to the given output stream.
|
void |
DatabaseIO.write(Database model,
String filename)
Writes the database model to the specified file.
|
void |
DatabaseIO.write(Database model,
Writer output)
Writes the database model to the given output writer.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
Database model,
InputStream[] inputs)
Reads the data from the given input streams and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
Database model,
Reader[] inputs)
Reads the data from the given input readers and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToDatabase(Platform platform,
Database model,
String[] files)
Reads the data from the indicated files and writes it to the database to which the given
platform is connected.
|
void |
DatabaseDataIO.writeDataToXML(Platform platform,
Database model,
DataWriter writer)
Writes the data contained in the database to which the given platform is connected, as XML
to the given data writer.
|
void |
DatabaseDataIO.writeDataToXML(Platform platform,
Database model,
OutputStream output,
String xmlEncoding)
Writes the data contained in the database to which the given platform is connected, as XML
to the given output stream (which won't be closed by this method).
|
void |
DatabaseDataIO.writeDataToXML(Platform platform,
Database model,
String path,
String xmlEncoding)
Writes the data contained in the database to which the given platform is connected, as XML
to the given output stream (which won't be closed by this method).
|
void |
DatabaseDataIO.writeDataToXML(Platform platform,
Database model,
Writer output,
String xmlEncoding)
Writes the data contained in the database to which the given platform is connected, as XML
to the given output writer (which won't be closed by this method).
|
void |
DataDtdWriter.writeDtd(Database model,
Writer output)
Writes the DTD for data xml files for the given database model, to the specified writer.
|
| Constructor and Description |
|---|
DataToDatabaseSink(Platform platform,
Database model)
Creates a new sink instance.
|
| Modifier and Type | Method and Description |
|---|---|
Database |
CloneHelper.clone(Database source)
Returns a deep clone of the given model object, including all tables, foreign keys, indexes etc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ModelHelper.checkForForeignKeysToAndFromTables(Database model,
Table[] tables)
Determines whether one of the tables in the list has a foreign key to a table outside of the list,
or a table outside of the list has a foreign key to one of the tables in the list.
|
Database |
CloneHelper.clone(Database source)
Returns a deep clone of the given model object, including all tables, foreign keys, indexes etc.
|
ForeignKey |
CloneHelper.clone(ForeignKey source,
Table owningTable,
Database targetModel,
boolean caseSensitive)
Returns a clone of the given source foreign key.
|
Table |
CloneHelper.clone(Table source,
boolean cloneIndexes,
boolean cloneForeignKeys,
Database targetModel,
boolean caseSensitive)
Returns a clone of the given table.
|
void |
Database.mergeWith(Database otherDb)
Adds all tables from the other database to this database.
|
void |
ModelHelper.removeForeignKeysToAndFromTables(Database model,
Table[] tables)
Removes all foreign keys from the tables in the list to tables outside of the list,
or from tables outside of the list to tables in the list.
|
| Modifier and Type | Method and Description |
|---|---|
Database |
JdbcModelReader.getDatabase(Connection connection,
String name)
Reads the database model from the given connection.
|
Database |
JdbcModelReader.getDatabase(Connection connection,
String name,
String catalog,
String schema,
String[] tableTypes)
Reads the database model from the given connection.
|
protected Database |
PlatformImplBase.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
Database |
PlatformImplBase.readModelFromDatabase(Connection connection,
String name)
Reads the database model from the live database to which the given connection is pointing.
|
Database |
PlatformImplBase.readModelFromDatabase(Connection connection,
String name,
String catalog,
String schema,
String[] tableTypes)
Reads the database model from the live database to which the given connection is pointing.
|
Database |
PlatformImplBase.readModelFromDatabase(String name)
Reads the database model from the live database as specified by the data source set for
this platform.
|
Database |
PlatformImplBase.readModelFromDatabase(String name,
String catalog,
String schema,
String[] tableTypes)
Reads the database model from the live database as specified by the data source set for
this platform.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
void |
PlatformImplBase.alterModel(Connection connection,
Database currentModel,
Database desiredModel,
boolean continueOnError)
Alters the given live database model so that it match the desired model.
|
void |
PlatformImplBase.alterModel(Connection connection,
Database currentModel,
Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the given live database model so that it match the desired model.
|
void |
PlatformImplBase.alterModel(Database currentModel,
Database desiredModel,
boolean continueOnError)
Alters the given live database model so that it match the desired model, using the default database conneciton.
|
void |
PlatformImplBase.alterModel(Database currentModel,
Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the given live database model so that it match the desired model, using the default database conneciton.
|
void |
PlatformImplBase.alterTables(Connection connection,
Database desiredModel,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(Connection connection,
Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredModel,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(Database desiredModel,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(String catalog,
String schema,
String[] tableTypes,
Database desiredModel,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(String catalog,
String schema,
String[] tableTypes,
Database desiredModel,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
protected String |
PlatformImplBase.createDeleteSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
org.apache.commons.beanutils.DynaBean bean)
Creates the SQL for deleting an object of the given type.
|
void |
SqlBuilder.createForeignKey(Database database,
Table table,
ForeignKey foreignKey)
Writes a single foreign key constraint using a alter table statement.
|
void |
SqlBuilder.createForeignKeys(Database database)
Creates the external foreignkey creation statements for all tables in the database.
|
void |
SqlBuilder.createForeignKeys(Database database,
Table table)
Creates external foreignkey creation statements if necessary.
|
protected String |
PlatformImplBase.createInsertSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean bean)
Creates the SQL for inserting an object of the given type.
|
void |
PlatformImplBase.createModel(Connection connection,
Database model,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
PlatformImplBase.createModel(Connection connection,
Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
PlatformImplBase.createModel(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
PlatformImplBase.createModel(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
protected ModelBasedResultSetIterator |
PlatformImplBase.createResultSetIterator(Database model,
ResultSet resultSet,
Table[] queryHints)
Creates an iterator over the given result set.
|
protected String |
PlatformImplBase.createSelectLastInsertIdSql(Database model,
SqlDynaClass dynaClass)
Creates the SQL for querying for the id generated by the last insert of an object of the given type.
|
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).
|
void |
PlatformImplBase.createTables(Connection connection,
Database model,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
PlatformImplBase.createTables(Connection connection,
Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
SqlBuilder.createTables(Database database)
Outputs the DDL required to drop and (re)create all tables in the database model.
|
void |
SqlBuilder.createTables(Database database,
boolean dropTables)
Outputs the DDL required to drop (if requested) and (re)create all tables in the database model.
|
void |
PlatformImplBase.createTables(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
SqlBuilder.createTables(Database database,
CreationParameters params,
boolean dropTables)
Outputs the DDL required to drop (if requested) and (re)create all tables in the database model.
|
void |
PlatformImplBase.createTables(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
protected void |
SqlBuilder.createTemporaryTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the given temporary table.
|
protected String |
PlatformImplBase.createUpdateSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean bean)
Creates the SQL for updating an object of the given type.
|
protected String |
PlatformImplBase.createUpdateSql(Database model,
SqlDynaClass dynaClass,
SqlDynaProperty[] primaryKeys,
SqlDynaProperty[] properties,
org.apache.commons.beanutils.DynaBean oldBean,
org.apache.commons.beanutils.DynaBean newBean)
Creates the SQL for updating an object of the given type.
|
void |
PlatformImplBase.delete(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Deletes the row which maps to the given bean from the database.
|
void |
PlatformImplBase.delete(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Deletes the given bean from the database, assuming the primary key values are specified.
|
void |
PlatformImplBase.dropModel(Connection connection,
Database model,
boolean continueOnError)
Drops the given model.
|
void |
PlatformImplBase.dropModel(Database model,
boolean continueOnError)
Drops the given model using the default database connection.
|
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 |
PlatformImplBase.dropTables(Connection connection,
Database model,
boolean continueOnError)
Drops the given model.
|
void |
SqlBuilder.dropTables(Database database)
Outputs the DDL required to drop the database.
|
void |
PlatformImplBase.dropTables(Database model,
boolean continueOnError)
Drops the given model using the default database connection.
|
protected void |
SqlBuilder.dropTemporaryTable(Database database,
Table table)
Outputs the DDL to drop the given temporary table.
|
boolean |
PlatformImplBase.exists(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Determines whether the given dyna bean is stored in the database.
|
boolean |
PlatformImplBase.exists(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Determines whether the given dyna bean is stored in the database.
|
List |
PlatformImplBase.fetch(Database model,
String sql)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Collection parameters)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Collection parameters,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
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,
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 |
PlatformImplBase.findChangedForeignKey(Database currentModel,
ForeignKeyChange change)
Finds the foreign key changed by the change object in the given model.
|
protected Index |
PlatformImplBase.findChangedIndex(Database currentModel,
IndexChange change)
Finds the index changed by the change object in the given model.
|
protected Table |
PlatformImplBase.findChangedTable(Database currentModel,
TableChange change)
Finds the table changed by the change object in the given model.
|
String |
PlatformImplBase.getAlterModelSql(Database currentModel,
Database desiredModel)
Returns the SQL for altering the given current model so that it match the desired model.
|
String |
PlatformImplBase.getAlterModelSql(Database currentModel,
Database desiredModel,
CreationParameters params)
Returns the SQL for altering the given current model so that it match the desired model.
|
String |
PlatformImplBase.getAlterTablesSql(Connection connection,
Database desiredModel)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(Connection connection,
Database desiredModel,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredModel)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredModel,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(Database desiredModel)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(Database desiredModel,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(String catalog,
String schema,
String[] tableTypes,
Database desiredModel)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(String catalog,
String schema,
String[] tableTypes,
Database desiredModel,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
List |
PlatformImplBase.getChanges(Database currentModel,
Database desiredModel)
Returns the necessary changes to apply to the current database to make it the desired one.
|
String |
PlatformImplBase.getCreateModelSql(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
String |
PlatformImplBase.getCreateModelSql(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
String |
PlatformImplBase.getCreateTablesSql(Database model,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
String |
PlatformImplBase.getCreateTablesSql(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
String |
PlatformImplBase.getDeleteSql(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Returns the sql for deleting the given bean from the database.
|
String |
PlatformImplBase.getDropModelSql(Database model)
Returns the SQL for dropping the given model.
|
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 |
PlatformImplBase.getDropTablesSql(Database model,
boolean continueOnError)
Returns the SQL for dropping the given model.
|
String |
PlatformImplBase.getInsertSql(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Returns the sql for inserting the given bean.
|
String |
PlatformImplBase.getUpdateSql(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Returns the sql for updating the given bean in the database.
|
String |
PlatformImplBase.getUpdateSql(Database model,
org.apache.commons.beanutils.DynaBean oldDynaBean,
org.apache.commons.beanutils.DynaBean newDynaBean)
Returns the sql for updating the given bean in the database.
|
void |
PlatformImplBase.insert(Connection connection,
Database model,
Collection dynaBeans)
Inserts the given beans.
|
void |
PlatformImplBase.insert(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Inserts the bean.
|
void |
PlatformImplBase.insert(Database model,
Collection dynaBeans)
Inserts the given beans in the database, assuming the primary key values are specified.
|
void |
PlatformImplBase.insert(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Inserts the given DynaBean in the database, assuming the primary key values are specified.
|
protected void |
PlatformImplBase.postprocessModelFromDatabase(Database model)
Allows the platform to postprocess the model just read from the database.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
AddColumnChange change)
Processes a change representing the addition of a column.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
AddForeignKeyChange change)
Processes a change representing the addition of a foreign key.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
AddIndexChange change)
Processes a change representing the addition of an index.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
AddPrimaryKeyChange change)
Processes a change representing the addition of a primary key.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
AddTableChange change)
Processes a change representing the addition of a table.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
RecreateTableChange change)
Processes a change representing the recreation of a table.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
RemoveForeignKeyChange change)
Processes a change representing the removal of a foreign key.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
RemoveIndexChange change)
Processes a change representing the removal of an index.
|
void |
PlatformImplBase.processChange(Database currentModel,
CreationParameters params,
RemoveTableChange change)
Processes a change representing the removal of a table.
|
protected Database |
PlatformImplBase.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
Iterator |
PlatformImplBase.query(Database model,
String sql)
Performs the given SQL query returning an iterator over the results.
|
Iterator |
PlatformImplBase.query(Database model,
String sql,
Collection parameters)
Performs the given parameterized SQL query returning an iterator over the results.
|
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.sortForeignKeys(Database model)
Sorts the foreign keys in the tables of the model.
|
void |
PlatformImplBase.store(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Stores the given bean in the database, inserting it if there is no primary key
otherwise the bean is updated in the database.
|
void |
PlatformImplBase.store(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Stores the given bean in the database, inserting it if there is no primary key
otherwise the bean is updated in the database.
|
void |
PlatformImplBase.update(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Updates the row which maps to the given bean.
|
void |
PlatformImplBase.update(Connection connection,
Database model,
org.apache.commons.beanutils.DynaBean oldDynaBean,
org.apache.commons.beanutils.DynaBean newDynaBean)
Updates the row identified by the given
oldDynaBean in the database with the
values in newDynaBean. |
void |
PlatformImplBase.update(Database model,
org.apache.commons.beanutils.DynaBean dynaBean)
Updates the given bean in the database, assuming the primary key values are specified.
|
void |
PlatformImplBase.update(Database model,
org.apache.commons.beanutils.DynaBean oldDynaBean,
org.apache.commons.beanutils.DynaBean newDynaBean)
Updates the row identified by the given
oldDynaBean in the database with the
values in newDynaBean. |
protected void |
SqlBuilder.writeEmbeddedForeignKeysStmt(Database database,
Table table)
Writes the foreign key constraints inside a create table () clause.
|
protected void |
SqlBuilder.writeTableCreationStmt(Database database,
Table table,
Map parameters)
Writes the table creation statement without the statement end.
|
| 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 |
Db2Platform.processChange(Database currentModel,
CreationParameters params,
PrimaryKeyChange change)
Processes the change of the primary key of a table.
|
void |
Db2Platform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes a change representing the addition of a column.
|
void |
Db2Platform.processChange(Database currentModel,
CreationParameters params,
RemovePrimaryKeyChange change)
Processes the removal of a primary key from a table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FirebirdBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
void |
FirebirdBuilder.createForeignKeys(Database database)
Creates the external foreignkey creation statements for all tables in the database.
|
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).
|
void |
FirebirdBuilder.insertColumn(Database model,
Table table,
Column newColumn,
Column prevColumn)
Writes the SQL to add/insert a column.
|
void |
FirebirdPlatform.processChange(Database currentModel,
CreationParameters params,
AddColumnChange change)
Processes the addition of a column to a table.
|
void |
FirebirdPlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HsqlDbPlatform.processChange(Database currentModel,
CreationParameters params,
AddColumnChange change)
Processes the addition of a column to a table.
|
void |
HsqlDbPlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
void |
InterbaseBuilder.insertColumn(Database model,
Table table,
Column newColumn,
Column prevColumn)
Writes the SQL to add/insert a column.
|
void |
InterbasePlatform.processChange(Database currentModel,
CreationParameters params,
AddColumnChange change)
Processes the addition of a column to a table.
|
void |
InterbasePlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
void |
MckoiPlatform.processChange(Database currentModel,
CreationParameters params,
RecreateTableChange change)
Processes a change representing the recreation of a table.
|
protected void |
MckoiBuilder.writeRecreateTableStmt(Database model,
Table table,
Map parameters)
Writes the SQL to recreate a table.
|
| Modifier and Type | Method and Description |
|---|---|
protected Database |
MSSqlPlatform.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MSSqlBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
protected List |
MSSqlModelComparator.checkForAddedForeignKeys(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for foreign keys that are not present in the given source model but are in the target
model, and applies them to the given intermediate model.
|
protected List |
MSSqlModelComparator.checkForAddedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are not present in the given source table but are in the target
table, and applies them to the given intermediate model.
|
protected List |
MSSqlModelComparator.checkForPrimaryKeyChanges(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for primary key differences (primary key added/removed/changed), and applies them to the given intermediate model.
|
protected List |
MSSqlModelComparator.checkForRemovedForeignKeys(Database sourceModel,
Database intermediateModel,
Database targetModel)
Creates change objects for foreign keys that are present in the given source model but are no longer in the target
model, and applies them to the given intermediate model.
|
protected List |
MSSqlModelComparator.checkForRemovedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
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 |
MSSqlPlatform.processChange(Database currentModel,
CreationParameters params,
ColumnDefinitionChange change)
Processes the change of the column of a table.
|
void |
MSSqlPlatform.processChange(Database currentModel,
CreationParameters params,
PrimaryKeyChange change)
Processes the change of the primary key of a table.
|
void |
MSSqlPlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
void |
MSSqlPlatform.processChange(Database currentModel,
CreationParameters params,
RemovePrimaryKeyChange change)
Processes the removal of a primary key from a table.
|
protected Database |
MSSqlPlatform.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
| Modifier and Type | Method and Description |
|---|---|
protected List |
MySqlModelComparator.checkForRemovedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
protected List |
MySqlModelComparator.compareTables(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Compares the two tables and returns the changes necessary to create the second
table from the first one.
|
void |
MySqlPlatform.processChange(Database currentModel,
CreationParameters params,
AddColumnChange change)
Processes the addition of a column to a table.
|
void |
MySqlPlatform.processChange(Database currentModel,
CreationParameters params,
ColumnDefinitionChange change)
Processes the change of the column of a table.
|
void |
MySqlPlatform.processChange(Database currentModel,
CreationParameters params,
PrimaryKeyChange change)
Processes the change of the primary key of a table.
|
void |
MySqlPlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
void |
MySqlPlatform.processChange(Database currentModel,
CreationParameters params,
RemovePrimaryKeyChange change)
Processes the removal of a primary key from a table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Oracle8Builder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
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 |
Oracle8Builder.dropTemporaryTable(Database database,
Table table)
Outputs the DDL to drop the given temporary table.
|
void |
Oracle8Platform.processChange(Database currentModel,
CreationParameters params,
PrimaryKeyChange change)
Processes the change of the primary key of a table.
|
void |
Oracle8Platform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
void |
Oracle8Platform.processChange(Database currentModel,
CreationParameters params,
RemovePrimaryKeyChange change)
Processes the removal of a primary key from a table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PostgreSqlBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
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 |
PostgreSqlPlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SapDbBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
void |
SapDbPlatform.processChange(Database currentModel,
CreationParameters params,
ColumnDefinitionChange change)
Processes the change of the column of a table.
|
void |
SapDbPlatform.processChange(Database currentModel,
CreationParameters params,
PrimaryKeyChange change)
Processes the change of the primary key of a table.
|
void |
SapDbPlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
void |
SapDbPlatform.processChange(Database currentModel,
CreationParameters params,
RemovePrimaryKeyChange change)
Processes the removal of a primary key from a table.
|
| Modifier and Type | Method and Description |
|---|---|
protected Database |
SybasePlatform.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SybaseBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a 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).
|
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.
|
void |
SybasePlatform.processChange(Database currentModel,
CreationParameters params,
ColumnDefinitionChange change)
Processes the change of a column definition..
|
void |
SybasePlatform.processChange(Database currentModel,
CreationParameters params,
RemoveColumnChange change)
Processes the removal of a column from a table.
|
void |
SybasePlatform.processChange(Database currentModel,
CreationParameters params,
RemovePrimaryKeyChange change)
Processes the removal of a primary key from a table.
|
protected Database |
SybasePlatform.processChanges(Database model,
Collection changes,
CreationParameters params)
Processes the given changes in the specified order.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected Database |
DdlToDatabaseTask.readModel()
Reads the database model on which the commands will work.
|
protected Database |
DatabaseToDdlTask.readModel()
Reads the database model on which the commands will work.
|
protected Database |
ReplayFailedDMLsTask.readModel() |
protected abstract Database |
DatabaseTaskBase.readModel()
Reads the database model on which the commands will work.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WriteSchemaToFileCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
CreateDatabaseCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
ReplayFailedDMLsCommand.execute(DatabaseTaskBase task,
Database model) |
void |
WriteDataToFileCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
WriteDtdToFileCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
WriteDataToDatabaseCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
WriteSchemaToDatabaseCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
WriteSchemaSqlToFileCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
DropTablesCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
abstract void |
Command.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
void |
DropDatabaseCommand.execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
protected void |
DatabaseTaskBase.executeCommands(Database model)
Executes the commands.
|
protected CreationParameters |
DatabaseCommandWithCreationParameters.getFilteredParameters(Database model,
String platformName,
boolean isCaseSensitive)
Filters the parameters for the given model and platform.
|
protected void |
WriteDataToDatabaseCommand.writeAddIdentityUsingAlterTable(Platform platform,
Database model) |
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.