Detailed Description of Jdbc Writer

The standard output for this step are data records written to a database table. Saving to the database is done utilizing the SQL INSERT command. All data is written in batches to speed up the process. The following databases have been tested with the step: Oracle, Sybase, MS SQL, DB2, Excel file (via ODBC), mySQL and postgreSQL.

For better error management, the parameter errorHandler handles error situations when writing to the DB. If this property is defined then the step has one mandatory output, err_out. Otherwise it has no output.

Important notes:


Top of page

Example: Example
<step className="cz.adastra.cif.tasks.io.jdbc.write.JdbcWriter" id="algorithm_1">
  <properties dataSourceName="excel-test" commitSize="45" batchSize="15" 
                          writeAllColumns="false" tableName="table_test">
    <columns>
      <columnExprDef name="cislo" expression="cisla"/>
      <columnExprDef name="text1"/>
      <columnExprDef name="text2"/>
    </columns>
    <errorHandler errorAction="CONTINUE" errorReporting="ERROR" errorFieldName="chyba"/>
  </properties>
</step>

iWay Software