|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.store.raw.xact.NoLocking
org.apache.derby.impl.store.raw.xact.ContainerLocking3
public class ContainerLocking3
A locking policy that implements container level locking with isolation degree 3.
LockingPolicy| Field Summary | |
|---|---|
protected LockFactory |
lf
|
| Fields inherited from interface org.apache.derby.iapi.store.raw.LockingPolicy |
|---|
MODE_CONTAINER, MODE_NONE, MODE_RECORD |
| Constructor Summary | |
|---|---|
protected |
ContainerLocking3(LockFactory lf)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.derby.impl.store.raw.xact.NoLocking |
|---|
lockRecordForRead, lockRecordForWrite, unlockContainer, unlockRecordAfterRead, zeroDurationLockRecordForWrite |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final LockFactory lf
| Constructor Detail |
|---|
protected ContainerLocking3(LockFactory lf)
| Method Detail |
|---|
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()
LockingPolicy
getMode in interface LockingPolicygetMode in class NoLocking
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||