Пример #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();
 }