|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcimporter.ant.EntityDefElement net.sourceforge.jdbcimporter.ant.ImportEntityDefElement
The ImportEntityDefElement provides an Ant wrapper for setting a ImportEntityDef object from Ant.
Field Summary | |
protected java.util.List |
columnElements
The list of columns. |
protected DelimiterParserElement |
delimiterElement
The delimiter parser element. |
protected java.lang.String |
engineClassname
The class name of the engine used for the import 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 parser types and implementations. |
protected RowTranslatorElement |
rowTranslatorElement
The row translator element. |
Fields inherited from class net.sourceforge.jdbcimporter.ant.EntityDefElement |
entityDef |
Constructor Summary | |
ImportEntityDefElement(java.util.Map plugins)
Constructs an EntityDefElement with the given mapping between connection definition/delimiter parser types and implementations. |
Method Summary | |
DelegateColumnDefElement |
createColumn()
Creates an empty ImportColumnDefElement and returns it. |
DelimiterParserElement |
createDelimiter()
Creates an empty DelimiterParserElement and returns it. |
RowTranslatorElement |
createTranslator()
Creates an empty RowTranslatorElement and returns it. |
ImportEntityDef |
getEntityDef()
Returns the wrapped entity definition. |
void |
setEncoding(java.lang.String encoding)
Sets the encoding of the source file. |
void |
setEngine(java.lang.String className)
Sets the class name of the engine used for the import of the entity. |
void |
setSource(java.io.File file)
Sets the source of the import data. |
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 DelimiterParserElement delimiterElement
protected RowTranslatorElement rowTranslatorElement
protected java.util.List columnElements
protected java.lang.String engineClassname
Constructor Detail |
public ImportEntityDefElement(java.util.Map plugins)
plugins
- the plugin mappingsMethod Detail |
public DelegateColumnDefElement createColumn()
public DelimiterParserElement createDelimiter()
public RowTranslatorElement createTranslator()
public void setSource(java.io.File file)
file
- the file containing the data to importpublic void setEncoding(java.lang.String encoding)
encoding
- the encoding charsetpublic void setEngine(java.lang.String className)
className
- the class namepublic ImportEntityDef getEntityDef() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if the entity's table, delimiter parser is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |