| java.lang.Object org.apache.derby.impl.store.raw.xact.NoLocking org.apache.derby.impl.store.raw.xact.RowLocking3 org.apache.derby.impl.store.raw.xact.RowLockingRR
All known Subclasses: org.apache.derby.impl.store.raw.xact.RowLocking2,
RowLockingRR | public class RowLockingRR extends RowLocking3 (Code) | | A locking policy that implements row level locking with repeatable read
isolation. Since phantom protection with previous key locking is actually
handled by the upper level access methods, the only difference in repeatable
read is that read locks are of type RowLock.RS2. This type will not
conflict with a previous key insert lock.
See Also: org.apache.derby.iapi.store.raw.LockingPolicy |
unlockRecordAfterRead | public void unlockRecordAfterRead(Transaction t, ContainerHandle container_handle, RecordHandle record, boolean forUpdate, boolean row_qualified) throws StandardException(Code) | | 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.
exception: StandardException - Standard exception policy. |
Methods inherited from org.apache.derby.impl.store.raw.xact.RowLocking3 | public int getMode()(Code)(Java Doc) protected RowLock getReadLockType()(Code)(Java Doc) protected RowLock getUpdateLockType()(Code)(Java Doc) protected RowLock getWriteLockType()(Code)(Java Doc) public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException(Code)(Java Doc) public boolean lockRecordForRead(Transaction t, ContainerHandle container_handle, RecordHandle record, boolean waitForLock, boolean forUpdate) throws StandardException(Code)(Java Doc) public void lockRecordForRead(Latch latch, RecordHandle record, boolean forUpdate) throws StandardException(Code)(Java Doc) public boolean lockRecordForWrite(Transaction t, RecordHandle record, boolean lockForInsert, boolean waitForLock) throws StandardException(Code)(Java Doc) public void lockRecordForWrite(Latch latch, RecordHandle record) throws StandardException(Code)(Java Doc) public boolean zeroDurationLockRecordForWrite(Transaction t, RecordHandle record, boolean lockForInsertPreviousKey, boolean waitForLock) throws StandardException(Code)(Java Doc)
|
Methods inherited from org.apache.derby.impl.store.raw.xact.NoLocking | public int getMode()(Code)(Java Doc) public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException(Code)(Java Doc) public boolean lockRecordForRead(Transaction t, ContainerHandle container, RecordHandle record, boolean waitForLock, boolean forUpdate) throws StandardException(Code)(Java Doc) public void lockRecordForRead(Latch latch, RecordHandle record, boolean forUpdate) throws StandardException(Code)(Java Doc) public boolean lockRecordForWrite(Transaction t, RecordHandle record, boolean lockForInsert, boolean waitForLock) throws StandardException(Code)(Java Doc) public void lockRecordForWrite(Latch latch, RecordHandle record) throws StandardException(Code)(Java Doc) public void unlockContainer(Transaction t, ContainerHandle container)(Code)(Java Doc) public void unlockRecordAfterRead(Transaction t, ContainerHandle container, RecordHandle record, boolean forUpdate, boolean row_qualified) throws StandardException(Code)(Java Doc) public boolean zeroDurationLockRecordForWrite(Transaction t, RecordHandle record, boolean lockForPreviousKey, boolean waitForLock) throws StandardException(Code)(Java Doc)
|
|
|