org.apache.derby.impl.store.access.btree.index
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
B2IRowLocking2
B2IRowLocking2(Transaction rawtran,
int lock_level,
LockingPolicy locking_policy,
ConglomerateController base_cc,
OpenBTree open_btree)
- Constructors for This class:
unlockScanRecordAfterRead
public void unlockScanRecordAfterRead(BTreeRowPosition pos,
boolean forUpdate)
throws StandardException
- Release read lock on a row.
- Specified by:
unlockScanRecordAfterRead
in interface BTreeLockingPolicy
- Overrides:
unlockScanRecordAfterRead
in class B2IRowLockingRR
- 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.
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.