org.apache.derby.iapi.store.raw.LockingPolicy
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected RowLock | getReadLockType()
Overrides org. Get type of lock to get while reading data. |
| protected RowLock | getUpdateLockType()
Overrides org. Get type of lock to get while requesting "update" lock. |
| protected RowLock | getWriteLockType()
Overrides org. Get type of lock to get while writing data. |
| public void | unlockRecordAfterRead(Transaction t, ContainerHandle container_handle, RecordHandle record, boolean forUpdate, boolean row_qualified)
Overrides org. Implements org. Unlock a record after it has been locked for read. |
| RowLockingRR | back to summary |
|---|---|
| protected RowLockingRR(LockFactory lf) | |
| getReadLockType | back to summary |
|---|---|
| protected RowLock getReadLockType() Overrides org. Doc from org. Get type of lock to get while reading data. 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.
| |
| getUpdateLockType | back to summary |
|---|---|
| protected RowLock getUpdateLockType() Overrides org. Doc from org. Get type of lock to get while requesting "update" lock. 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.
| |
| getWriteLockType | back to summary |
|---|---|
| protected RowLock getWriteLockType() Overrides org. Doc from org. Get type of lock to get while writing data. 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.
| |
| unlockRecordAfterRead | back to summary |
|---|---|
| public void unlockRecordAfterRead(Transaction t, ContainerHandle container_handle, RecordHandle record, boolean forUpdate, boolean row_qualified) throws StandardException Overrides org. Implements org. Unlock a record after it has been locked for read. 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.
| |