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, zeroDurationLockRecordForWrite
protected final LockFactory lf
protected ContainerLocking3(LockFactory lf)
public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException
lockContainer
in interface LockingPolicy
lockContainer
in class NoLocking
t
- 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 policyContainerHandle
public int getMode()
LockingPolicy
getMode
in interface LockingPolicy
getMode
in class NoLocking
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.