|
|||||||||
| 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.DumpMetadataTask
public class DumpMetadataTask
A simple helper task that dumps information about a database using JDBC.
| 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 | |
|---|---|
DumpMetadataTask()
|
|
| Method Summary | |
|---|---|
void |
addConfiguredDatabase(org.apache.commons.dbcp.BasicDataSource dataSource)
Adds the data source to use for accessing the database. |
void |
execute()
|
void |
setCatalogPattern(String catalogPattern)
Sets the catalog pattern used when accessing the database. |
void |
setColumnPattern(String columnPattern)
Specifies the columns to be processed. |
void |
setDumpProcedures(boolean readProcedures)
Specifies whether procedures shall be read from the database. |
void |
setDumpTables(boolean readTables)
Specifies whether tables shall be read from the database. |
void |
setOutputEncoding(String encoding)
Specifies the encoding of the output file. |
void |
setOutputFile(File outputFile)
Specifies the output file to which the database metadata is written to. |
void |
setProcedurePattern(String procedurePattern)
Specifies the procedures to be processed. |
void |
setSchemaPattern(String schemaPattern)
Sets the schema pattern used when accessing the database. |
void |
setTablePattern(String tablePattern)
Specifies the table to be processed. |
void |
setTableTypes(String tableTypes)
Specifies the table types to be processed. |
| 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 DumpMetadataTask()
| Method Detail |
|---|
public void addConfiguredDatabase(org.apache.commons.dbcp.BasicDataSource dataSource)
dataSource - The data sourcepublic void setOutputFile(File outputFile)
outputFile - The output filepublic void setOutputEncoding(String encoding)
encoding - The encodingpublic void setCatalogPattern(String catalogPattern)
catalogPattern - The catalog patternpublic void setSchemaPattern(String schemaPattern)
schemaPattern - The schema patternpublic void setTablePattern(String tablePattern)
tablePattern - The table patternpublic void setProcedurePattern(String procedurePattern)
procedurePattern - The procedure patternpublic void setColumnPattern(String columnPattern)
columnPattern - The column patternpublic void setTableTypes(String tableTypes)
tableTypes - The table types to readpublic void setDumpProcedures(boolean readProcedures)
readProcedures - true if procedures shall be readpublic void setDumpTables(boolean readTables)
readTables - true if tables shall be read
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||