docs: public int[] executeBatch() throws SQLException {
      checkClose();
      int size;
      if (batchQueries == null || (size = batchQueries.size()) == 0) {
        return new int[0];
      }
  
      lock.lock();
      try {
        internalBatchExecution(size);
        return results.getCmdInformation().getUpdateCounts();
      } catch (SQLException initialSqlEx) {
        throw executeBatchExceptionEpilogue(initialSqlEx, size);
      } finally {
        executeBatchEpilogue();
        lock.unlock();
      }
    }