|
||||||||||
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.WriteSchemaToDatabaseCommand
Command for writing a database schema into the database.
Constructor Summary | |
WriteSchemaToDatabaseCommand()
|
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. |
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 WriteSchemaToDatabaseCommand()
Method Detail |
protected 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 performedpublic void setDoDrops(boolean doDrops)
doDrops
- true
if drops shall be performedpublic 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 |