code: public int[] executeBatch(PreparedStatement stmt) throws PlatformException
      {
          // Check for Oracle batching support
          final Method methodSendBatch = (Method) m_batchStatementsInProgress.remove(stmt);
          final boolean statementBatchingSupported = methodSendBatch != null;
  
          int[] retval = null;
          if (statementBatchingSupported)
          {
              try
              {
                  // sendBatch() returns total row count as an Integer
                  methodSendBatch.invoke(stmt, null);
              }
              catch (Exception e)
              {
                  throw new PlatformException(e.getLocalizedMessage(), e);
              }
          }
          else
          {
              retval = super.executeBatch(stmt);
          }
          return retval;
      }
docs: Try Oracle update batching and call sendBatch or revert to
  JDBC update batching.
  @param stmt the batched prepared statement about to be executed
  @return always <code>null</code> if Oracle update batching is used,
  since it is impossible to dissolve total row count into distinct
  statement counts. If JDBC update batching is used, an int array is
  returned containing number of updated rows for each batched statement.
  @throws PlatformException upon JDBC failure