org.apache.derby.iapi.store.raw.LockingPolicy
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: 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.Transaction to associate lock with. t, ContainerHandle Container to lock. container, boolean Ignored - will never wait for a lock. waitForLock, boolean Ignored, mode determined from current lock state. forUpdate)Overrides org. Implements org. Escalates Row Locking 3 to Container Locking 3. |
| RowLocking3Escalate | back to summary |
|---|---|
| protected RowLocking3Escalate(LockFactory lf) | |
| lockContainer | back to summary |
|---|---|
| public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException Overrides org. Implements org. 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.
| |