|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.ddlutils.task.DatabaseTaskBase
org.apache.ddlutils.task.DdlToDatabaseTask
Ant task for working with DDL, e.g. generating the database from a schema, inserting data.
| Field Summary |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
DdlToDatabaseTask()
|
|
| Method Summary | |
void |
addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
Adds a fileset. |
void |
addCreateDatabase(CreateDatabaseCommand command)
Adds the "create database"-command. |
void |
addDropDatabase(DropDatabaseCommand command)
Adds the "drop database"-command. |
void |
addWriteDataToDatabase(WriteDataToDatabaseCommand command)
Adds the "write data to database"-command. |
void |
addWriteDataToFile(WriteDataToFileCommand command)
Adds the "write data to file"-command. |
void |
addWriteDtdToFile(WriteDtdToFileCommand command)
Adds the "write dtd to file"-command. |
void |
addWriteSchemaSqlToFile(WriteSchemaSqlToFileCommand command)
Adds the "write schema sql to file"-command. |
void |
addWriteSchemaToDatabase(WriteSchemaToDatabaseCommand command)
Adds the "write schema to database"-command. |
protected Database |
readModel()
Reads the database model on which the commands will work. |
void |
setSchemaFile(File schemaFile)
Set the xml schema describing the application model. |
void |
setUseInternalDtd(boolean useInternalDtd)
Specifies whether XML input files are validated against the internal or an external DTD. |
void |
setValidateXml(boolean validateXml)
Specifies whether XML input files are validated at all. |
| Methods inherited from class org.apache.ddlutils.task.DatabaseTaskBase |
addCommand, addConfiguredDatabase, execute, executeCommands, getCommands, getDatabaseType, getDataSource, getPlatform, hasCommands, isUseDelimitedSqlIdentifiers, setDatabaseType, setUseDelimitedSqlIdentifiers |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DdlToDatabaseTask()
| Method Detail |
public void setUseInternalDtd(boolean useInternalDtd)
useInternalDtd - true if input files are to be validated against the internal DTDpublic void setValidateXml(boolean validateXml)
validateXml - true if input files are to be validatedpublic void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
fileset - The additional input filespublic void setSchemaFile(File schemaFile)
schemaFile - The schemapublic void addCreateDatabase(CreateDatabaseCommand command)
command - The commandpublic void addDropDatabase(DropDatabaseCommand command)
command - The commandpublic void addWriteDtdToFile(WriteDtdToFileCommand command)
command - The commandpublic void addWriteSchemaToDatabase(WriteSchemaToDatabaseCommand command)
command - The commandpublic void addWriteSchemaSqlToFile(WriteSchemaSqlToFileCommand command)
command - The commandpublic void addWriteDataToDatabase(WriteDataToDatabaseCommand command)
command - The commandpublic void addWriteDataToFile(WriteDataToFileCommand command)
command - The commandprotected Database readModel()
readModel in class DatabaseTaskBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||