public class DumpMetadataTask
extends org.apache.tools.ant.Task
| Constructor and Description |
|---|
DumpMetadataTask() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic 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)
DatabaseMetaData.getTables(String, String, String, String[]).tablePattern - The table patternpublic void setProcedurePattern(String procedurePattern)
DatabaseMetaData.getProcedures(String, String, String).procedurePattern - The procedure patternpublic void setColumnPattern(String columnPattern)
DatabaseMetaData.getColumns(String, String, String, String).columnPattern - The column patternpublic void setTableTypes(String tableTypes)
DatabaseMetaData.getTables(String, String, String, String[]).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.Taskorg.apache.tools.ant.BuildExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.