The Jetspeed DDL Utility is capabale of extracting existing schema
information as well as recreating databases.
author: Hajo Birthelmer version: $Id: $
Update a given database schema to match the schema of targetModel If
alterDB is true, the routine attempts to modify the existing database
shcema while preserving the data (as much as possible).
Parses the database defined in the given XML definition String and
creates a database schema (model) object
Parameters: dbDef - The database XML definition The database model
Parses the database defined in the given XML file and creates a database
schema (model) object
Parameters: dbDef - The database XML definition The database model
Determines the value of the bean's property that has the given name.
Depending on the case-setting of the current builder, the case of teh
name is considered or not.
Parameters: bean - The bean Parameters: propName - The name of the property The value
Inserts data into the database.
Parameters: dataXml - The data xml The database
isDatabaseSupported
public boolean isDatabaseSupported(String driverName, String jdbcConnectionUrl)(Code)
Tries to determine whether a the jdbc driver and connection url re
supported.
Parameters: driverName - The fully qualified name of the JDBC driver Parameters: jdbcConnectionUrl - The connection url True if this driver/url is supported
readModelFromDatabase
public Database readModelFromDatabase(String databaseName)(Code)
Reads the database model from a live database.
Parameters: platform - The physical database connection Parameters: databaseName - The name of the resulting database The model
Update a given database schema to match the schema of targetModel If
alterDB is true, the routine attempts to modify the existing database
shcema while preserving the data (as much as possible). If not, the
existing tables are dropped prior to recreate
Parameters: targetModel - The new database model Parameters: alterDb - if true, try to use alter database and preserve data
writeDatabaseSchematoFile
public void writeDatabaseSchematoFile(String fileName)(Code)
Parses the database defined in the given XML file and creates a database
schema (model) object
Parameters: fileName -