code: private void processBatch(final List<BatchEntry> batchEntries) throws DatabaseEngineException {
          // begin the transaction before the addBatch calls in order to force the retry
          // of the connection if the same was lost during or since the last batch. Otherwise
          // the addBatch call that uses a prepared statement will fail
          de.beginTransaction();
  
          for (final BatchEntry entry : batchEntries) {
              de.addBatch(entry.getTableName(), entry.getEntityEntry());
          }
  
          de.flush();
          de.commit(); // automatically ends transaction
      }
docs: Processes all batch entries.
  <p>
  This is done by creating a transaction (by disabling auto-commit), adding all {@link BatchEntry batch entries} to
  their respective prepared statements, flush them and finally perform a commit on the transaction (which will
  enable auto-commit again afterwards).
  
  @param batchEntries The list of batch entries to be flush on the DB
  @throws DatabaseEngineException If the operation failed