| java.lang.Object org.apache.ojb.odmg.locking.RemoteLockMapImpl
RemoteLockMapImpl | public class RemoteLockMapImpl implements LockMap,Configurable(Code) | | Servlet based lock mechanism for usage in distributed environment.
author: Thomas Mahler version: $Id: RemoteLockMapImpl.java,v 1.4.2.3 2005/12/21 22:29:51 tomdz Exp $ |
addReader | public boolean addReader(TransactionImpl tx, Object obj)(Code) | | Add a reader lock entry for transaction tx on object obj
to the persistent storage.
|
getReaders | public Collection getReaders(Object obj)(Code) | | returns a collection of Reader LockEntries for object obj.
If now LockEntries could be found an empty Vector is returned.
|
getWriter | public LockEntry getWriter(Object obj)(Code) | | returns the LockEntry for the Writer of object obj.
If now writer exists, null is returned.
|
hasReadLock | public boolean hasReadLock(TransactionImpl tx, Object obj)(Code) | | check if there is a reader lock entry for transaction tx on object obj
in the persistent storage.
|
removeReader | public void removeReader(TransactionImpl tx, Object obj)(Code) | | remove a reader lock entry for transaction tx on object obj
from the persistent storage.
|
removeWriter | public void removeWriter(LockEntry writer)(Code) | | remove a writer lock entry for transaction tx on object obj
from the persistent storage.
|
setWriter | public boolean setWriter(TransactionImpl tx, Object obj)(Code) | | generate a writer lock entry for transaction tx on object obj
and write it to the persistent storage.
|
upgradeLock | public boolean upgradeLock(LockEntry reader)(Code) | | upgrade a reader lock entry for transaction tx on object obj
and write it to the persistent storage.
|
|
|