|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jdbcexporter.config.ExportConfig
The ExportConfig class parses a Node to create an ExportDef. The Node's name must be 'export'.
Field Summary | |
static java.lang.String |
CONNECTION_TAG
The element name that contains the ConnectionDef. |
static java.lang.String |
CONNECTION_TYPE_ATTR
The attribute name in the CONNECTION_TAG element that contains the connection type. |
protected CustomObjectFactory |
connectionDefFactory
The connection definition object factory. |
static java.lang.String |
ENTITY_TAG
The element name that contains the EntityDef. |
protected EntityConfig |
entityConfig
The entity config that parses entity definitons. |
protected ExportEntityConfigDelegate |
entityConfigDelegate
The delegate that helps the entity config parse entity definitions. |
static java.lang.String |
EXPORT_TAG
The element name that contains the ExportDef. |
static java.lang.String |
LOG_FILE_ATTR
The attribute name in the LOG_TAG element that contains the filename of the log file. |
Constructor Summary | |
ExportConfig()
Constructs an ExportConfig. |
Method Summary | |
ExportDef |
getExport(org.w3c.dom.Node node)
Returns the ExportDef defined in the given Node. |
protected void |
initConnection(ExportDef exportDef,
org.w3c.dom.Node connection)
Load the connection definition defined in the given node into the ExportDef. |
void |
setColumnTranslatorFactory(CustomObjectFactory newFactory)
Sets the factory to use when creating column translators. |
void |
setConnectionDefFactory(CustomObjectFactory newFactory)
Sets the factory to use when creating an connection definitions. |
void |
setDelimiterFormatterFactory(CustomObjectFactory newFactory)
Sets the factory to use when creating delimiter formatters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String EXPORT_TAG
public static final java.lang.String CONNECTION_TAG
public static final java.lang.String CONNECTION_TYPE_ATTR
public static final java.lang.String LOG_FILE_ATTR
public static final java.lang.String ENTITY_TAG
protected CustomObjectFactory connectionDefFactory
protected EntityConfig entityConfig
protected ExportEntityConfigDelegate entityConfigDelegate
Constructor Detail |
public ExportConfig()
Method Detail |
public void setConnectionDefFactory(CustomObjectFactory newFactory)
newFactory
- the connection definition factorypublic void setDelimiterFormatterFactory(CustomObjectFactory newFactory)
newFactory
- the delimiter formatter factorypublic void setColumnTranslatorFactory(CustomObjectFactory newFactory)
newFactory
- the column translator factorypublic ExportDef getExport(org.w3c.dom.Node node) throws org.w3c.dom.DOMException, InvalidCustomObjectDefException
node
- the node
org.w3c.dom.DOMException
- if the Node has missing or invalid attributes/elements
InvalidCustomObjectDefException
protected void initConnection(ExportDef exportDef, org.w3c.dom.Node connection) throws org.w3c.dom.DOMException, InvalidCustomObjectDefException
exportDef
- the ExportDefconnection
- the node
org.w3c.dom.DOMException
- if the node is invalid
InvalidCustomObjectDefException
- if the connection definition could not
be created by the connection definition factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |