|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ddlutils.task.DatabaseCommand
org.apache.ddlutils.task.DatabaseCommandWithCreationParameters
org.apache.ddlutils.task.WriteSchemaSqlToFileCommand
Creates the SQL for a schema and writes it to a file.
| Constructor Summary | |
WriteSchemaSqlToFileCommand()
|
|
| Method Summary | |
void |
execute(org.apache.tools.ant.Task 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 to drop tables and the associated constraints if necessary. |
void |
setAlterDatabase(boolean alterTheDb)
Specifies whether to alter the database if it already exists, or re-set it. |
void |
setDoDrops(boolean doDrops)
Specifies whether to drop tables and the associated constraints if necessary. |
void |
setOutputFile(File outputFile)
Sets the file to output the sql to. |
| Methods inherited from class org.apache.ddlutils.task.DatabaseCommandWithCreationParameters |
addConfiguredParameter, getFilteredParameters |
| Methods inherited from class org.apache.ddlutils.task.DatabaseCommand |
getDatabaseType, getDataSource, getPlatform, isFailOnError, isRequiringModel, setFailOnError, setPlatformConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WriteSchemaSqlToFileCommand()
| Method Detail |
public void setOutputFile(File outputFile)
outputFile - The output fileprotected boolean isAlterDatabase()
true if to alter the databasepublic void setAlterDatabase(boolean alterTheDb)
alterTheDb - true if to alter the databaseprotected boolean isDoDrops()
true if drops shall be performed if necessarypublic void setDoDrops(boolean doDrops)
doDrops - true if drops shall be performed if necessary
public void execute(org.apache.tools.ant.Task task,
Database model)
throws org.apache.tools.ant.BuildException
task - The executing taskmodel - The database model
org.apache.tools.ant.BuildException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||