| java.lang.Object org.apache.derby.impl.store.raw.xact.NoLocking org.apache.derby.impl.store.raw.xact.ContainerLocking3 org.apache.derby.impl.store.raw.xact.RowLocking3Escalate
Method Summary | |
public boolean | lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) Escalates Row Locking 3 to Container Locking 3.
This call is made by code which tracks the number of locks on a
container. |
lockContainer | public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException(Code) | | Escalates Row Locking 3 to Container Locking 3.
This call is made by code which tracks the number of locks on a
container. When the number of locks exceeds the escalate threshold
the caller creates this new locking policy, calls lockContainer(),
and substitues it for the old locking policy. The lockContainer call
determines which table lock to get (S or X), gets that table lock, and
then releases the row locks on the table.
It is assumed that this is called on a open container for lock only.
Parameters: t - Transaction to associate lock with. Parameters: container - Container to lock. Parameters: waitForLock - Ignored - will never wait for a lock. Parameters: forUpdate - Ignored, mode determined from current lock state. true if the lock was obtained, false if it wasn't. False should only be returned if the waitForLock policy was set to"false," and the lock was unavailable. exception: StandardException - Standard exception policy. |
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)
|
|
|