Class B2IRowLocking2
- java.lang.Object
-
- org.apache.derby.impl.store.access.btree.index.B2IRowLocking3
-
- org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR
-
- org.apache.derby.impl.store.access.btree.index.B2IRowLocking2
-
- All Implemented Interfaces:
BTreeLockingPolicy
- Direct Known Subclasses:
B2IRowLocking1
class B2IRowLocking2 extends B2IRowLockingRR implements BTreeLockingPolicy
The btree locking policy which implements read committed isolation level. It inherits all functionality from B2IRowLockingRR (repeatable read) except that it releases read locks after obtaining them. It provides a single implementation of unlockScanRecordAfterRead() which releases a read lock after it has been locked and processed.
-
-
Field Summary
-
Fields inherited from class org.apache.derby.impl.store.access.btree.index.B2IRowLocking3
base_cc, open_btree
-
-
Constructor Summary
Constructors Constructor Description B2IRowLocking2(Transaction rawtran, int lock_level, LockingPolicy locking_policy, ConglomerateController base_cc, OpenBTree open_btree)
Constructors for This class:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
unlockScanRecordAfterRead(BTreeRowPosition pos, boolean forUpdate)
Release read lock on a row.-
Methods inherited from class org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR
lockScanRow
-
Methods inherited from class org.apache.derby.impl.store.access.btree.index.B2IRowLocking3
_lockScanRow, lockNonScanPreviousRow, lockNonScanRow, lockNonScanRowOnPage, lockScanCommittedDeletedRow
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.derby.impl.store.access.btree.BTreeLockingPolicy
lockNonScanPreviousRow, lockNonScanRow, lockNonScanRowOnPage, lockScanCommittedDeletedRow, lockScanRow
-
-
-
-
Constructor Detail
-
B2IRowLocking2
B2IRowLocking2(Transaction rawtran, int lock_level, LockingPolicy locking_policy, ConglomerateController base_cc, OpenBTree open_btree)
Constructors for This class:
-
-
Method Detail
-
unlockScanRecordAfterRead
public void unlockScanRecordAfterRead(BTreeRowPosition pos, boolean forUpdate) throws StandardException
Release read lock on a row.- Specified by:
unlockScanRecordAfterRead
in interfaceBTreeLockingPolicy
- Overrides:
unlockScanRecordAfterRead
in classB2IRowLockingRR
- Parameters:
forUpdate
- Is the scan for update or for read only.pos
- Data structure that defines the current position in the scan to be unlocked.- Throws:
StandardException
- Standard exception policy.
-
-