Ibatis相关

XML中的#和$的区别

http://shenzhenchufa.blog.51cto.com/730213/254561

 

poolMaximumActiveConnections和poolMaximumIdleConnections

http://luxuryzh.iteye.com/blog/1664407

 

 

ibatis 的批处理是事务的。

SqlMapClient.startBatch() 和SqlMapClient..executeBatch()

 

ibatis 事务

 1  try {
 2             client.startTransaction();
 3             client.insertArgs("insertTran", eventNo, eventType, eventStatus,
 4                 enterDate);
 5             client.insertArgs("insertTranError", eventTypeError,
 6                 eventStatusErrot);
 7             client.commitTransaction();
 8         } catch (SQLException e) {
 9             // TODO Auto-generated catch block
10             e.printStackTrace();
11         } finally {
12             try {
13                 client.endTransaction();
14             } catch (SQLException e) {
15                 // TODO Auto-generated catch block
16                 e.printStackTrace();
17             }
18         }

 

posted on 2014-10-31 11:27  迷茫中寻找方向  阅读(164)  评论(0编辑  收藏  举报

导航