| 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.platform |
This package contains the platform implementations for the individual databases.
|
| org.apache.ddlutils.platform.mssql |
This package contains the platform implementation for the
Sql Server 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.alterTables(Connection connection,
Database desiredDb,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
Platform.alterTables(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
Platform.alterTables(Database desiredDb,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
Platform.alterTables(String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
Platform.createTables(Connection connection,
Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
void |
Platform.createTables(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Creates the tables defined in the database model.
|
String |
Platform.getAlterTablesSql(Connection connection,
Database desiredDb,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
Platform.getAlterTablesSql(Connection connection,
String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
Platform.getAlterTablesSql(Database desiredDb,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
Platform.getAlterTablesSql(String catalog,
String schema,
String[] tableTypes,
Database desiredDb,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
Platform.getCreateTablesSql(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlBuilder.alterDatabase(Database currentModel,
Database desiredModel,
CreationParameters params)
Generates the DDL to modify an existing database so the schema matches
the specified database schema by using drops, modifications and additions.
|
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,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given model.
|
void |
PlatformImplBase.alterTables(Database desiredDb,
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,
CreationParameters params,
boolean continueOnError)
Alters the database schema so that it match the given 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,
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.
|
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,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getAlterTablesSql(Database desiredDb,
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,
CreationParameters params)
Returns the SQL for altering the database schema so that it match the given model.
|
String |
PlatformImplBase.getCreateTablesSql(Database model,
CreationParameters params,
boolean dropTablesFirst,
boolean continueOnError)
Returns the SQL for creating the tables defined in the database model.
|
protected void |
SqlBuilder.processChange(Database currentModel,
Database desiredModel,
CreationParameters params,
AddForeignKeyChange change)
Processes the change representing the addition of a foreign key.
|
protected void |
SqlBuilder.processChange(Database currentModel,
Database desiredModel,
CreationParameters params,
AddIndexChange change)
Processes the change representing the addition of an index.
|
protected void |
SqlBuilder.processChange(Database currentModel,
Database desiredModel,
CreationParameters params,
AddTableChange change)
Processes the change representing the addition of a table.
|
protected void |
SqlBuilder.processChange(Database currentModel,
Database desiredModel,
CreationParameters params,
ModelChange change)
This is a fall-through callback which generates a warning because a specific
change type wasn't handled.
|
protected void |
SqlBuilder.processChange(Database currentModel,
Database desiredModel,
CreationParameters params,
RemoveForeignKeyChange change)
Processes the change representing the removal of a foreign key.
|
protected void |
SqlBuilder.processChange(Database currentModel,
Database desiredModel,
CreationParameters params,
RemoveIndexChange change)
Processes the change representing the removal of an index.
|
protected void |
SqlBuilder.processChange(Database currentModel,
Database desiredModel,
CreationParameters params,
RemoveTableChange change)
Processes the change representing the removal of a table.
|
protected void |
SqlBuilder.processChanges(Database currentModel,
Database desiredModel,
List changes,
CreationParameters params)
Processes the changes.
|
protected void |
SqlBuilder.processTableStructureChanges(Database currentModel,
Database desiredModel,
CreationParameters params,
Collection changes)
Processes the changes to the structure of tables.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MSSqlBuilder.processChanges(Database currentModel,
Database desiredModel,
List changes,
CreationParameters params)
Processes the changes.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SybaseBuilder.processChanges(Database currentModel,
Database desiredModel,
List changes,
CreationParameters params)
Processes the changes.
|
| Modifier and Type | Method and Description |
|---|---|
protected CreationParameters |
DatabaseCommandWithCreationParameters.getFilteredParameters(Database model,
String platformName,
boolean isCaseSensitive)
Filters the parameters for the given model and platform.
|
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.