|
||||||||||
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.DatabaseToDdlTask
Ant task for working with a database, e.g. retrieving the schema from a database, dumping data, etc.
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 | |
DatabaseToDdlTask()
|
Method Summary | |
void |
addWriteDataToDatabase(WriteDataToDatabaseCommand command)
Adds the "write data into database"-command. |
void |
addWriteDataToFile(WriteDataToFileCommand command)
Adds the "write data into file"-command. |
void |
addWriteDtdToFile(WriteDtdToFileCommand command)
Adds the "create dtd"-command. |
void |
addWriteSchemaSqlToFile(WriteSchemaSqlToFileCommand command)
Adds the "write schema sql to file"-command. |
void |
addWriteSchemaToFile(WriteSchemaToFileCommand command)
Adds the "write schema to file"-command. |
protected Database |
readModel()
Reads the database model on which the commands will work. |
void |
setCatalog(String catalog)
Sets the database catalog to access. |
void |
setSchema(String schema)
Sets the database schema to access. |
void |
setTableTypes(String tableTypes)
Sets the table types ro recognize. |
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 DatabaseToDdlTask()
Method Detail |
public void setSchema(String schema)
schema
- The schemapublic void setCatalog(String catalog)
catalog
- The catalogpublic void setTableTypes(String tableTypes)
tableTypes
- The table types as a comma-separated listpublic void addWriteDtdToFile(WriteDtdToFileCommand command)
command
- The commandpublic void addWriteSchemaToFile(WriteSchemaToFileCommand 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 |