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
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
ConstructorsConstructorDescriptionB2IRowLocking2
(Transaction rawtran, int lock_level, LockingPolicy locking_policy, ConglomerateController base_cc, OpenBTree open_btree) Constructors for This class: -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
B2IRowLocking2
B2IRowLocking2(Transaction rawtran, int lock_level, LockingPolicy locking_policy, ConglomerateController base_cc, OpenBTree open_btree) Constructors for This class:
-
-
Method Details
-
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:
pos
- Data structure that defines the current position in the scan to be unlocked.forUpdate
- Is the scan for update or for read only.- Throws:
StandardException
- Standard exception policy.
-