private LocalTransaction txn(long txnId) { checkHighest(txnId); return mTransactions.getValue(txnId); }
private LocalTransaction txn(long txnId) { checkHighest(txnId); return mTransactions.getValue(txnId); }
private LocalTransaction txn(long txnId) { checkHighest(txnId); return mTransactions.getValue(txnId); }
@Override public boolean renameIndex(long txnId, long indexId, byte[] newName) throws IOException { checkHighest(txnId); Index ix = openIndex(indexId); if (ix != null) { mDatabase.renameIndex(ix, newName, txnId); } return true; }
@Override public boolean txnCommitFinal(long txnId) throws IOException { checkHighest(txnId); LocalTransaction txn = mTransactions.removeValue(txnId); if (txn != null) { txn.commitAll(); } return true; }
@Override public boolean txnRollbackFinal(long txnId) throws IOException { checkHighest(txnId); Transaction txn = mTransactions.removeValue(txnId); if (txn != null) { txn.reset(); } return true; }
@Override public boolean txnCommitFinal(long txnId) throws IOException { checkHighest(txnId); LocalTransaction txn = mTransactions.removeValue(txnId); if (txn != null) { txn.commitAll(); } return true; }
@Override public boolean txnRollbackFinal(long txnId) throws IOException { checkHighest(txnId); Transaction txn = mTransactions.removeValue(txnId); if (txn != null) { txn.reset(); } return true; }
@Override public boolean renameIndex(long txnId, long indexId, byte[] newName) throws IOException { checkHighest(txnId); Index ix = openIndex(indexId); if (ix != null) { mDatabase.renameIndex(ix, newName, txnId); } return true; }
@Override public boolean renameIndex(long txnId, long indexId, byte[] newName) throws IOException { checkHighest(txnId); Index ix = openIndex(indexId); if (ix != null) { mDatabase.renameIndex(ix, newName, txnId); } return true; }
@Override public boolean txnCommitFinal(long txnId) throws IOException { checkHighest(txnId); LocalTransaction txn = mTransactions.removeValue(txnId); if (txn != null) { txn.commitAll(); } return true; }
@Override public boolean txnRollbackFinal(long txnId) throws IOException { checkHighest(txnId); Transaction txn = mTransactions.removeValue(txnId); if (txn != null) { txn.reset(); } return true; }