示例#1
0
 public int insert() {
   try {
     int n = inserter.insert();
     t.commit();
     return n;
   } finally {
     IOHelper.closeQuietly(t);
   }
 }
示例#2
0
 public AutoCloseInserter(ITrans t) {
   this.t = t;
   inserter = t.getInserter();
 }