Lines Matching defs:txn
1 package db.txn;
41 // txn handle should be handed to countRecords()
66 Transaction txn = null;
80 txn = myEnv.beginTransaction(null, null);
96 myDb.put(txn, key, data);
100 System.out.println(getName() + " : committing txn : " + i);
102 // This code block allows us to decide if txn handle is
105 // TxnGuideInMemory requires a txn handle be handed to
110 if (passTxn) { txnHandle = txn; }
115 txn.commit();
116 txn = null;
118 System.err.println("Error on txn commit: " +
146 if (txn != null) {
148 txn.abort();
164 // First call it with an active txn handle.
177 private int countRecords(Transaction txn) throws DatabaseException {
190 cursor = myDb.openCursor(txn, cc);