org.apache.derby.impl.store.access.btree.index
Class B2IRowLocking2

java.lang.Object
  extended by org.apache.derby.impl.store.access.btree.index.B2IRowLocking3
      extended by org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR
          extended by 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
B2IRowLocking2(Transaction rawtran, int lock_level, LockingPolicy locking_policy, ConglomerateController base_cc, OpenBTree open_btree)
          Constructors for This class:
 
Method Summary
 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 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.

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.