[转]Ibatis 批量添加修改删除-batch-insert-update-delete
摘要:
publicvoidbatchUpdate(finalStringstatementName,finalListlist){try{if(list!=null){this.getSqlMapClientTemplate().execute(newSqlMapClientCallback(){publicObjectdoInSqlMapClient(SqlMapExecutorexecutor)throwsSQLException{executor.startBatch();for(inti=0,n=list.size();i<n;i++){executor.update(statemen 阅读全文
posted @ 2011-08-01 19:56 gongwei911 阅读(7205) 评论(0) 推荐(0) 编辑