code: @Override
  	public void writeRecord(Record record) throws IOException {
  		try {
  			for (int x = 0; x < record.getNumFields(); x++) {
  				Value temp = record.getField(x, fieldClasses[x]);
  				addValue(x + 1, temp);
  			}
  			upload.addBatch();
  			batchCount++;
  			if(batchCount >= batchInterval) {
  				upload.executeBatch();
  				batchCount = 0;
  			}
  		} catch (SQLException sqe) {
  			throw new IllegalArgumentException("writeRecord() failed:\t", sqe);
  		} catch (IllegalArgumentException iae) {
  			throw new IllegalArgumentException("writeRecord() failed:\t", iae);
  		}
  	}
docs: Adds a record to the prepared statement.
  <p>
  When this method is called, the output format is guaranteed to be opened.
  
  @param record The records to add to the output.
  @throws IOException Thrown, if the records could not be added due to an
  I/O problem.