public class RowLockingRR extends RowLocking3
LockingPolicylfMODE_CONTAINER, MODE_NONE, MODE_RECORD| Modifier | Constructor and Description |
|---|---|
protected |
RowLockingRR(LockFactory lf) |
| Modifier and Type | Method and Description |
|---|---|
protected RowLock |
getReadLockType()
Get type of lock to get while reading data.
|
protected RowLock |
getUpdateLockType()
Get type of lock to get while requesting "update" lock.
|
protected RowLock |
getWriteLockType()
Get type of lock to get while writing data.
|
void |
unlockRecordAfterRead(Transaction t,
ContainerHandle container_handle,
RecordHandle record,
boolean forUpdate,
boolean row_qualified)
Unlock a record after it has been locked for read.
|
getMode, lockContainer, lockRecordForRead, lockRecordForWrite, zeroDurationLockRecordForWriteunlockContainerprotected RowLockingRR(LockFactory lf)
protected RowLock getReadLockType()
RowLocking3This routine is provided so that class's like RowLockingRR can override just this routine to get RS2 locks vs RS3 locks, and still reuse all the other code in this class.
getReadLockType in class RowLocking3protected RowLock getUpdateLockType()
RowLocking3This routine is provided so that class's like RowLockingRR can override just this routine to get RU2 locks vs RU3 locks, and still reuse all the other code in this class.
getUpdateLockType in class RowLocking3protected RowLock getWriteLockType()
RowLocking3This routine is provided so that class's like RowLockingRR can override just this routine to get RX2 locks vs RX3 locks, and still reuse all the other code in this class.
getWriteLockType in class RowLocking3public void unlockRecordAfterRead(Transaction t, ContainerHandle container_handle, RecordHandle record, boolean forUpdate, boolean row_qualified) throws StandardException
In repeatable read only unlock records which "did not qualify". For example in a query like "select * from foo where a = 1" on a table with no index it is only necessary to hold locks on rows where a=1, but in the process of finding those rows the system will get locks on other rows to verify they are committed before applying the qualifier. Those locks can be released under repeatable read isolation.
unlockRecordAfterRead in interface LockingPolicyunlockRecordAfterRead in class NoLockingStandardException - Standard exception policy.PageApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.