|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlockmgr.LockManager
public class LockManager
Constructor Summary | |
---|---|
LockManager()
|
Method Summary | |
---|---|
boolean |
lock(int xid,
java.lang.String strData,
LockType lockType)
Locks a data object in read or write mode blocking the caller if lock cannot be acquired. |
boolean |
unlockAll(int xid)
Releases all locks held by the specified transaction. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockManager()
Method Detail |
---|
public boolean lock(int xid, java.lang.String strData, LockType lockType) throws DeadlockException
ILockManager
lock
in interface ILockManager
xid
- The id of the transaction on which behalf the data object should be lockedstrData
- The unique name of the data objectlockType
- The type of lock which is to be acquired (read or write lock)
DeadlockException
- thrown if a cycle will occur in the waiting graph due to this operationpublic boolean unlockAll(int xid)
ILockManager
unlockAll
in interface ILockManager
xid
- The id of the transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |