日期:2014-05-16  浏览次数:20432 次

java批量更新小记录

  1. ?public?void?addEmployees(Connection?conn,?List<Employee>?empList,?int?batchSize)??
  2. ????????????throws?SQLException?{??
  3. ????????long?bt?=?System.currentTimeMillis();??
  4. ????????PreparedStatement?stmt?=?null;??
  5. ????????try?{??
  6. ????????????String?sql?=?SqlParser.getInstance().getSql("Employee.insert");??
  7. ???????????