277278279280281282283284285286287
* * @throws Exception ... */ public synchronized void begin(String name) throws Exception { if (killed) { throw new DatabaseException("Transaction started on killed thread"); } else if (active) { abort(); } dirtyNodes.clear();
298299300301302303304305306307308
* * @throws Exception ... */ public synchronized void commit() throws Exception { if (killed) { throw new DatabaseException("commit() called on killed transactor thread"); } else if (!active) { return; } int inserted = 0; int updated = 0;