XML Schema for <import>

<import>
The root element for an Import XML Document.
NameTypeRequiredDescription
logstringrequiredThe file that will contain all info, audit and error messages.
badstringrequiredThe file that will contain all rows that could not be imported.
commitCountintegeroptionalThe number of rows to import before calling commit on the connection (default is 1). If the value is less than or equal to 1 then commit will not be called by the JDBCImporter and the connnection will be set to auto commit.
batchCountintegeroptionalThe number of rows to import before calling executeBatch on the ImportEngine (default is 0). If the value is less than or equal to 1 then executeBatch will not be called by the JDBCImporter.
trimValuesbooleanoptionalThe flag indicating that values will trimmed after reading them from the Delimiter Parser
preSQLFilestringoptionalThe filename containing sql statements that will be executed before the import.
postSQLFilestringoptionalThe filename containing sql statements that will be executed after the import.
arrow1
<connection>
The connection definition used by JDBCImporter.
NameTypeRequiredDescription
typestringrequiredThe type of connection definition. The value should map to the class that implements ConnectionDef.
arrow0..*
<property>
The properties applied to the connection definition object.
NameTypeRequiredDescription
namestringrequiredThe name of the property.
valuestringrequiredThe value of the property.
arrow1..*
<entity>
The list of tables to be imported.
NameTypeRequiredDescription
tablestringrequiredThe table name that will contain the imported data.
sourcestringrequiredThe source file containing the rows to be imported.
encodingstringoptionalThe source file's encoding charset.
schemastringoptionalThe schema name of the table.
catalogstringoptionalThe catalog name of the table.
enginestringoptionalThe import engine classname to use when importing rows for the entity.
arrow0..*
<property>
The properties defined for an entity which may be used by the ImportEngine.
NameTypeRequiredDescription
namestringrequiredThe name of the property.
valuestringrequiredThe value of the property.
arrow1
<delimiter>
The delimiter parser definition used to parse the source file.
NameTypeRequiredDescription
typestringrequiredThe type of delimiter parser. The value should map to the class that implements DelimiterParser.
arrow0..*
<property>
The properties applied to the delimiter parser.
NameTypeRequiredDescription
namestringrequiredThe name of the property.
valuestringrequiredThe value of the property.
arrow0..1
<translator>
The row translator that will be used to translate row values.
NameTypeRequiredDescription
typestringrequiredThe type of column translator. The value should map to the class that implements RowTranslator.
arrow0..*
<property>
The properties applied to the row translator.
NameTypeRequiredDescription
namestringrequiredThe name of the property.
valuestringrequiredThe value of the property.
arrow1..*
<column>
The list of columns in the table and source file
NameTypeRequiredDescription
namestringrequiredThe name of the column.
SQLTypesqlTypeoptionalThe type of the column.
defaultValuestringoptionalThe default value of the column.
translatorstringoptionalThe class that will translate the values before they are imported.
formatstringoptionalThe format pattern used to describe how to parse numbers or dates.
generatebooleanoptionalThe flag indicating that the column will be generated instead of read from the source file.
arrow0..1
<translator>
The column translator that will be used to translate column values.
NameTypeRequiredDescription
typestringrequiredThe type of column translator. The value should map to the class that implements ColumnTranslator.
arrow0..*
<property>
The properties applied to the column translator.
NameTypeRequiredDescription
namestringrequiredThe name of the property.
valuestringrequiredThe value of the property.
arrow0..1
<generator>
The column generator that will be used to generate values if the 'generate' attribute is set to true.
NameTypeRequiredDescription
typestringrequiredThe type of column generator. The value should map to the class that implements ColumnValueGenerator.
arrow0..*
<property>
The properties applied to the column generator.
NameTypeRequiredDescription
namestringrequiredThe name of the property.
valuestringrequiredThe value of the property.
arrow0..*
<property>
The properties defined for a column that may be used by the ImportEngine.
NameTypeRequiredDescription
namestringrequiredThe name of the property.
valuestringrequiredThe value of the property.