lockmgr
Interface ILockManager

All Known Implementing Classes:
CopyOfLockManager, LockManager

public interface ILockManager


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.
 

Method Detail

lock

boolean lock(int xid,
             java.lang.String strData,
             LockType lockType)
             throws DeadlockException
Locks a data object in read or write mode blocking the caller if lock cannot be acquired.

Parameters:
xid - The id of the transaction on which behalf the data object should be locked
strData - The unique name of the data object
lockType - The type of lock which is to be acquired (read or write lock)
Returns:
true
Throws:
DeadlockException - thrown if a cycle will occur in the waiting graph due to this operation

unlockAll

boolean unlockAll(int xid)
Releases all locks held by the specified transaction.

Parameters:
xid - The id of the transaction
Returns:
true