public class RowLockingRR extends RowLocking3
LockingPolicy
lf
MODE_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, zeroDurationLockRecordForWrite
unlockContainer
protected RowLockingRR(LockFactory lf)
protected RowLock getReadLockType()
RowLocking3
This 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 RowLocking3
protected RowLock getUpdateLockType()
RowLocking3
This 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 RowLocking3
protected RowLock getWriteLockType()
RowLocking3
This 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 RowLocking3
public 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 LockingPolicy
unlockRecordAfterRead
in class NoLocking
StandardException
- Standard exception policy.Page
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.