public class WriteSchemaSqlToFileCommand extends DatabaseCommandWithCreationParameters
database sub element) or the
databaseType attribute is used to specify the database type.| Constructor and Description |
|---|
WriteSchemaSqlToFileCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(DatabaseTaskBase task,
Database model)
Executes this command.
|
protected boolean |
isAlterDatabase()
Determines whether to alter the database if it already exists, or re-set it.
|
protected boolean |
isDoDrops()
Determines whether SQL is generated to drop tables and the associated constraints
if necessary.
|
void |
setAlterDatabase(boolean alterTheDb)
Specifies whether DdlUtils shall generate SQL to alter an existing database rather
than SQL for clearing it and creating it new.
|
void |
setDoDrops(boolean doDrops)
Specifies whether SQL for dropping tables, external constraints, etc.
|
void |
setOutputFile(File outputFile)
Specifies the name of the file to write the SQL commands to.
|
addConfiguredParameter, getFilteredParametersgetCatalogPattern, getDatabaseType, getDataSource, getPlatform, getSchemaPattern, isRequiringModel, setPlatformConfigurationhandleException, isFailOnError, setFailOnErrorpublic void setOutputFile(File outputFile)
outputFile - The output fileprotected boolean isAlterDatabase()
true if to alter the databasepublic void setAlterDatabase(boolean alterTheDb)
alterTheDb - true if SQL to alter the database shall be createdprotected boolean isDoDrops()
true if drops SQL shall be generated if necessarypublic void setDoDrops(boolean doDrops)
alterDatabase is false.doDrops - true if drops shall be performed if necessarypublic void execute(DatabaseTaskBase task, Database model) throws org.apache.tools.ant.BuildException
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.