コード例 #1
0
  /** Perform post execute processing for the CallableSql. */
  public void postExecute() throws SQLException {

    if (transaction.isLogSummary()) {
      String m =
          "CallableSql label["
              + callableSql.getLabel()
              + "]"
              + " rows["
              + rowCount
              + "]"
              + " bind["
              + bindLog
              + "]";
      transaction.logSummary(m);
    }

    // register table modifications with the transaction event
    TransactionEventTable tableEvents = callableSql.getTransactionEventTable();

    if (tableEvents != null && !tableEvents.isEmpty()) {
      transaction.getEvent().add(tableEvents);
    } else {
      transaction.markNotQueryOnly();
    }
  }
コード例 #2
0
  /** Execute the statement in normal non batch mode. */
  public int executeUpdate() throws SQLException {

    // check to see if the execution has been overridden
    // only works in non-batch mode
    if (callableSql.executeOverride(cstmt)) {
      return -1;
      // // been overridden so just return the rowCount
      // rowCount = callableSql.getRowCount();
      // return rowCount;
    }

    rowCount = cstmt.executeUpdate();

    // only read in non-batch mode
    readOutParams();

    return rowCount;
  }