Challenge Overview
A new Java batch job is needed to import records from a text file. The first two modules in this job (out of scope of this module) will obtain and parse the text file into CAMRecord.java (provided) instances and make sure they are fully populated for processing by this module.
This module is responsible for accepting incoming CAMRecord objects and inserting them into a database table using data inside each object.
It should be assumed that the input text file can have up to 200,000 records to import, so this job needs to perform actions in batch wherever possible (as applicable for this module). For example, setting up commits for every 100 inserts (example), or querying for the missing data in batches of 200 (example). These batch values should be externally configurable.
This batch job should be designed as one or more Task implementations as part of the provided Java Batch Job Infrastructure (JBJI).
Logging should be performed through the provided log4j-based logger in the provided JBJI.
This module should keep track of the number of successful (and failed) inserts as well as how many were found to be duplicates, if any.
Final Submission Guidelines
NA