public int insert() { try { int n = inserter.insert(); t.commit(); return n; } finally { IOHelper.closeQuietly(t); } }
public AutoCloseInserter(ITrans t) { this.t = t; inserter = t.getInserter(); }