|
||||||||||
| 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
net.sourceforge.jdbcexporter.ant.JDBCExporterTask
The JDBCExporterTask class is the Ant task that controls the export of data from the database.
| Field Summary | |
protected ConnectionDefElement |
connectionElement
The ConnectionDefElement containing the connection definition. |
protected java.lang.String |
engineClassname
The class name of the engine used for the export. |
protected java.util.List |
entityElements
The list of entities to be exported. |
protected ExportDef |
exportDef
The export definition. |
protected static org.apache.commons.logging.Log |
LOG
The log for debug information. |
protected java.util.Map |
plugins
The mapping between connection definition/column translator/delimiter formatter types and implementations. |
| 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 | |
JDBCExporterTask()
Creates a JDBCExporter Ant task. |
|
| Method Summary | |
void |
addConfiguredProperty(PropertyElement element)
Adds a property to the plugin properties. |
ConnectionDefElement |
createConnection()
Creates an empty ConnectionDefElement and returns it. |
ExportEntityDefElement |
createEntity()
Creates an empty EntityDefElement and returns it. |
void |
execute()
Export data into the database by processing each entity definition via the export engine. |
void |
setEngine(java.lang.String className)
Sets the class name of the engine used for the export. |
| 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 |
| Field Detail |
protected static org.apache.commons.logging.Log LOG
protected java.lang.String engineClassname
protected ExportDef exportDef
protected ConnectionDefElement connectionElement
protected java.util.List entityElements
protected java.util.Map plugins
| Constructor Detail |
public JDBCExporterTask()
| Method Detail |
public void setEngine(java.lang.String className)
className - public ConnectionDefElement createConnection()
public ExportEntityDefElement createEntity()
public void addConfiguredProperty(PropertyElement element)
element - the property element
public void execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if the export could not be processed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||