|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jdbcimporter.ant.EntityDefElement
net.sourceforge.jdbcexporter.ant.ExportEntityDefElement
The ExportEntityDefElement provides an Ant wrapper for setting a ExportEntityDef object from Ant.
| Field Summary | |
protected java.util.List |
columnElements
The list of column def elements. |
protected DelimiterFormatterElement |
delimiterElement
The delimiter formatter element. |
protected java.lang.String |
engineClassname
The class name of the engine used for the export of this entity. |
protected static org.apache.commons.logging.Log |
LOG
The log for debug information. |
protected java.util.Map |
plugins
The mapping between connection definition/delimiter formatter types and implementations. |
| Fields inherited from class net.sourceforge.jdbcimporter.ant.EntityDefElement |
entityDef |
| Constructor Summary | |
ExportEntityDefElement(java.util.Map plugins)
Constructs an EntityDefElement with the given mapping between connection definition/delimiter formatter types and implementations. |
|
| Method Summary | |
ExportColumnDefElement |
createColumn()
Creates an empty ExportColumnDefElement and returns it. |
DelimiterFormatterElement |
createDelimiter()
Creates an empty DelimiterFormatterElement and returns it. |
ExportEntityDef |
getEntityDef()
Returns the wrapped entity definition. |
void |
setEncoding(java.lang.String encoding)
Sets the target file's encoding. |
void |
setEngine(java.lang.String className)
Sets the class name of the engine used for the export of the entity. |
void |
setTarget(java.io.File file)
Sets the target file of the exported data. |
void |
setWhere(java.lang.String clause)
Sets the where clause used by the select statement. |
| Methods inherited from class net.sourceforge.jdbcimporter.ant.EntityDefElement |
addConfiguredProperty, setCatalog, setSchema, setTable |
| 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.util.Map plugins
protected DelimiterFormatterElement delimiterElement
protected java.util.List columnElements
protected java.lang.String engineClassname
| Constructor Detail |
public ExportEntityDefElement(java.util.Map plugins)
plugins - the plugin mappings| Method Detail |
public ExportColumnDefElement createColumn()
public DelimiterFormatterElement createDelimiter()
public void setTarget(java.io.File file)
file - The file that will contain the exported datapublic void setEncoding(java.lang.String encoding)
encoding - the encoding charsetpublic void setWhere(java.lang.String clause)
clause - the where clausepublic void setEngine(java.lang.String className)
className - the class name
public ExportEntityDef getEntityDef()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if the entity definition's table, delimiter formatter or column definitions
are invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||