public class ContainerLocking3 extends NoLocking
LockingPolicy| Modifier and Type | Field and Description |
|---|---|
protected LockFactory |
lf |
MODE_CONTAINER, MODE_NONE, MODE_RECORD| Modifier | Constructor and Description |
|---|---|
protected |
ContainerLocking3(LockFactory lf) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMode()
Get the mode of this policy
|
boolean |
lockContainer(Transaction t,
ContainerHandle container,
boolean waitForLock,
boolean forUpdate)
Obtain a Container shared or exclusive lock until
the end of the nested transaction.
|
lockRecordForRead, lockRecordForWrite, unlockContainer, unlockRecordAfterRead, zeroDurationLockRecordForWriteprotected final LockFactory lf
protected ContainerLocking3(LockFactory lf)
public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException
lockContainer in interface LockingPolicylockContainer in class NoLockingt - Transaction to associate lock with.container - Container to lock.waitForLock - Should lock request wait until granted?forUpdate - Should container be locked for update, or read?StandardException - Standard Derby error policyContainerHandlepublic int getMode()
LockingPolicygetMode in interface LockingPolicygetMode in class NoLockingApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.