@Override public boolean txnLockExclusive(long txnId, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { txn.lockExclusive(indexId, key); } return true; }
@Override public boolean txnLockExclusive(long txnId, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { txn.lockExclusive(indexId, key); } return true; }
@Override public boolean txnLockExclusive(long txnId, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { txn.lockExclusive(indexId, key); } return true; }
@Override public boolean txnLockExclusive(long txnId, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { txn.lockExclusive(indexId, key); } return true; }
@Override public boolean txnCustomLock(long txnId, byte[] message, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { LocalDatabase db = mDatabase; TransactionHandler handler = db.mCustomTxnHandler; if (handler == null) { throw new DatabaseException("Custom transaction handler is not installed"); } txn.lockExclusive(indexId, key); handler.redo(db, txn, message, indexId, key); } return true; }
@Override public boolean txnCustomLock(long txnId, byte[] message, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { LocalDatabase db = mDatabase; TransactionHandler handler = db.mCustomTxnHandler; if (handler == null) { throw new DatabaseException("Custom transaction handler is not installed"); } txn.lockExclusive(indexId, key); handler.redo(db, txn, message, indexId, key); } return true; }
@Override public boolean txnCustomLock(long txnId, byte[] message, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { _LocalDatabase db = mDatabase; TransactionHandler handler = db.mCustomTxnHandler; if (handler == null) { throw new DatabaseException("Custom transaction handler is not installed"); } txn.lockExclusive(indexId, key); handler.redo(db, txn, message, indexId, key); } return true; }
@Override public boolean txnCustomLock(long txnId, byte[] message, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { _LocalDatabase db = mDatabase; TransactionHandler handler = db.mCustomTxnHandler; if (handler == null) { throw new DatabaseException("Custom transaction handler is not installed"); } txn.lockExclusive(indexId, key); handler.redo(db, txn, message, indexId, key); } return true; }
@Override public boolean txnCustomLock(long txnId, byte[] message, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { LocalDatabase db = mDatabase; TransactionHandler handler = db.mCustomTxnHandler; if (handler == null) { throw new DatabaseException("Custom transaction handler is not installed"); } txn.lockExclusive(indexId, key); handler.redo(db, txn, message, indexId, key); } return true; }
@Override public boolean txnCustomLock(long txnId, byte[] message, long indexId, byte[] key) throws IOException { Transaction txn = txn(txnId); if (txn != null) { _LocalDatabase db = mDatabase; TransactionHandler handler = db.mCustomTxnHandler; if (handler == null) { throw new DatabaseException("Custom transaction handler is not installed"); } txn.lockExclusive(indexId, key); handler.redo(db, txn, message, indexId, key); } return true; }
byte[] key = new byte[8]; encodeLongBE(key, 0, index); txn.lockExclusive(mPageCopyIndex.getId(), key);
byte[] key = new byte[8]; encodeLongBE(key, 0, index); txn.lockExclusive(mPageCopyIndex.getId(), key);
byte[] key = new byte[8]; encodeLongBE(key, 0, index); txn.lockExclusive(mPageCopyIndex.getId(), key);
byte[] key = new byte[8]; encodeLongBE(key, 0, index); txn.lockExclusive(mPageCopyIndex.getId(), key);