Lines Matching defs:txn
1 package persist.txn;
45 Transaction txn = null;
59 txn = myEnv.beginTransaction(null, null);
80 pdKey.put(txn, pd);
84 System.out.println(getName() + " : committing txn : " + i);
86 countObjects(txn) + " objects in the store.");
88 txn.commit();
89 txn = null;
91 System.err.println("Error on txn commit: " +
119 if (txn != null) {
121 txn.abort();
137 // First call it with an active txn handle.
146 private int countObjects(Transaction txn) throws DatabaseException {
153 EntityCursor<PayloadDataEntity> cursor = pdKey.entities(txn, cc);