org.apache.ojb.odmg.locking
Interface LockMap

All Superinterfaces:
Configurable
All Known Implementing Classes:
InMemoryLockMapImpl, RemoteLockMapImpl

Deprecated.

public interface LockMap
extends Configurable


Method Summary
 boolean addReader(TransactionImpl tx, Object obj)
          Deprecated. Add a reader lock entry for transaction tx on object obj to the persistent storage.
 Collection getReaders(Object obj)
          Deprecated. returns a collection of Reader LockEntries for object obj.
 LockEntry getWriter(Object obj)
          Deprecated. returns the LockEntry for the Writer of object obj.
 boolean hasReadLock(TransactionImpl tx, Object obj)
          Deprecated. check if there is a reader lock entry for transaction tx on object obj in the persistent storage.
 void removeReader(TransactionImpl tx, Object obj)
          Deprecated. remove a reader lock entry for transaction tx on object obj from the persistent storage.
 void removeWriter(LockEntry writer)
          Deprecated. remove a writer lock entry for transaction tx on object obj from the persistent storage.
 boolean setWriter(TransactionImpl tx, Object obj)
          Deprecated. generate a writer lock entry for transaction tx on object obj and write it to the persistent storage.
 boolean upgradeLock(LockEntry reader)
          Deprecated. upgrade a reader lock entry for transaction tx on object obj and write it to the persistent storage.
 
Methods inherited from interface org.apache.ojb.broker.util.configuration.Configurable
configure
 

Method Detail

getWriter

LockEntry getWriter(Object obj)
Deprecated. 
returns the LockEntry for the Writer of object obj. If now writer exists, null is returned.


getReaders

Collection getReaders(Object obj)
Deprecated. 
returns a collection of Reader LockEntries for object obj. If now LockEntries could be found an empty Vector is returned.


addReader

boolean addReader(TransactionImpl tx,
                  Object obj)
Deprecated. 
Add a reader lock entry for transaction tx on object obj to the persistent storage.


removeReader

void removeReader(TransactionImpl tx,
                  Object obj)
Deprecated. 
remove a reader lock entry for transaction tx on object obj from the persistent storage.


removeWriter

void removeWriter(LockEntry writer)
Deprecated. 
remove a writer lock entry for transaction tx on object obj from the persistent storage.


upgradeLock

boolean upgradeLock(LockEntry reader)
Deprecated. 
upgrade a reader lock entry for transaction tx on object obj and write it to the persistent storage.


setWriter

boolean setWriter(TransactionImpl tx,
                  Object obj)
Deprecated. 
generate a writer lock entry for transaction tx on object obj and write it to the persistent storage.


hasReadLock

boolean hasReadLock(TransactionImpl tx,
                    Object obj)
Deprecated. 
check if there is a reader lock entry for transaction tx on object obj in the persistent storage.



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.