|
||||||||||
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 |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, 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(java.lang.String catalogPattern)
Sets the catalog pattern used when accessing the database. |
void |
setColumnPattern(java.lang.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(java.lang.String encoding)
Specifies the encoding of the output file. |
void |
setOutputFile(java.io.File outputFile)
Specifies the output file to which the database metadata is written to. |
void |
setProcedurePattern(java.lang.String procedurePattern)
Specifies the procedures to be processed. |
void |
setSchemaPattern(java.lang.String schemaPattern)
Sets the schema pattern used when accessing the database. |
void |
setTablePattern(java.lang.String tablePattern)
Specifies the table to be processed. |
void |
setTableTypes(java.lang.String tableTypes)
Specifies the table types to be processed. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
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(java.io.File outputFile)
outputFile
- The output filepublic void setOutputEncoding(java.lang.String encoding)
encoding
- The encodingpublic void setCatalogPattern(java.lang.String catalogPattern)
catalogPattern
- The catalog patternpublic void setSchemaPattern(java.lang.String schemaPattern)
schemaPattern
- The schema patternpublic void setTablePattern(java.lang.String tablePattern)
tablePattern
- The table patternpublic void setProcedurePattern(java.lang.String procedurePattern)
procedurePattern
- The procedure patternpublic void setColumnPattern(java.lang.String columnPattern)
columnPattern
- The column patternpublic void setTableTypes(java.lang.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 readpublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |