org.apache.derby.iapi.store.raw.LockingPolicy
| Modifier and Type | Field and Description |
|---|---|
| private final LockFactory |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public int | getMode()
Overrides org. Implements org. Get the mode of this policy |
| public boolean | lockContainer(Transaction
Transaction to associate lock with. t, ContainerHandle Container to lock. container, boolean Should lock request wait until granted? waitForLock, boolean Should container be locked for update, or read? forUpdate)Overrides org. Implements org. Obtain a Container shared or exclusive lock until the end of the nested transaction. |
| public void | unlockContainer(Transaction
The transaction to associate the lock with. t, ContainerHandle Container to unlock. container)Overrides org. Implements org. Unlock read locks. |
| lf | back to summary |
|---|---|
| private final LockFactory lf | |
| ContainerLocking2 | back to summary |
|---|---|
| protected ContainerLocking2() | |
| ContainerLocking2 | back to summary |
|---|---|
| protected ContainerLocking2(LockFactory lf) | |
| getMode | back to summary |
|---|---|
| public int getMode() Overrides org. Implements org. Doc from org. Get the mode of this policy | |
| lockContainer | back to summary |
|---|---|
| public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException Overrides org. Implements org. Obtain a Container shared or exclusive lock until the end of the nested transaction.
| |
| unlockContainer | back to summary |
|---|---|
| public void unlockContainer(Transaction t, ContainerHandle container) Overrides org. Implements org. Unlock read locks. In Cursor stability release all read locks obtained. unlockContainer() will be called when the container is closed.
| |