Package org.apache.commons.dbutils

Examples of org.apache.commons.dbutils.QueryRunner.batch()


      params[i] = pearParams(argsList.get(i));
    }
    QueryRunner qr = getQueryRunner();
    logger.trace("BatchUpdate SQL:{}, args size:{}", sql, argsList.size());
    try {
      return qr.batch(sql, params);
    } catch (SQLException e) {
      throw new DataAccessException("BatchUpdate error! sql:" + sql + ";", e);
    }
  }
 
View Full Code Here


      params[i] = pearParams(argsList.get(i));
    }
    QueryRunner qr = getQueryRunner();
    logger.trace("BatchUpdate SQL:{}, args size:{}", sql, argsList.size());
    try {
      return qr.batch(conn, sql, params);
    } catch (SQLException e) {
      throw new DataAccessException("BatchUpdate error! sql:" + sql + ";", e);
    }
  }
 
View Full Code Here

        params[17] = updatedAt;
        params[18] = createdAt;
        params[19] = updatedAt;
        allParams.add(params);
      }
      runner.batch(writeConnection, SQL_INSERT_ISSUE, allParams.toArray(new Object[allParams.size()][]));
      insertComments(writeConnection, allComments);
      runner.update(writeConnection, SQL_DELETE_RULE_FAILURES, violationIds);
      writeConnection.commit();
      progress.increment(rows.size());
View Full Code Here

      params[i] = pearParams(argsList.get(i));
    }
    QueryRunner qr = getQueryRunner();
    logger.trace("BatchUpdate SQL:{}, args size:{}", sql, argsList.size());
    try {
      return qr.batch(sql, params);
    } catch (SQLException e) {
      throw new DataAccessException("BatchUpdate error! sql:" + sql + ";", e);
    }
  }
 
View Full Code Here

      params[i] = pearParams(argsList.get(i));
    }
    QueryRunner qr = getQueryRunner();
    logger.trace("BatchUpdate SQL:{}, args size:{}", sql, argsList.size());
    try {
      return qr.batch(conn, sql, params);
    } catch (SQLException e) {
      throw new DataAccessException("BatchUpdate error! sql:" + sql + ";", e);
    }
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.