code: private void doFlush() throws SQLException {
  		if (batchCount > 0) {
  			try {
  				statement.executeBatch();
  				batchCount = 0;
  			} catch (SQLException ex) {
  				resetConnection();
  				throw ex;
  			}
  		}
  	}
docs: Unsynchronized method for flushing all cached batch insert statements.
  
  @throws SQLException
  Database access failed