|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockManager
This interface declares the functionality of the OJB internal Locking mechanism. A default implementaion LockManagerDefaultImpl is provided. This implementaion keeps distributed locks in the database. The locking mechanisms thus involves a lot of database lookups and writes. For some environments this solution may not be adequate. OJB allows to provide user defined implementations of this interface. To activate a user defined LockManagerDefaultImpl it must be configured in the OJB.properties file.
Method Summary | |
---|---|
boolean |
checkRead(TransactionImpl tx,
Identity oid,
Object obj)
checks if there is a readlock for transaction tx on object obj. |
boolean |
checkRead(TransactionImpl tx,
Object obj)
checks if there is a readlock for transaction tx on object obj. |
boolean |
checkWrite(TransactionImpl tx,
Identity oid,
Object obj)
checks if there is a writelock for transaction tx on object obj. |
boolean |
checkWrite(TransactionImpl tx,
Object obj)
checks if there is a writelock for transaction tx on object obj. |
boolean |
readLock(TransactionImpl tx,
Identity oid,
Object obj)
aquires a readlock for transaction tx on object obj. |
boolean |
readLock(TransactionImpl tx,
Object obj)
aquires a readlock for transaction tx on object obj. |
boolean |
releaseLock(TransactionImpl tx,
Identity oid,
Object obj)
releases a lock for transaction tx on object obj. |
boolean |
releaseLock(TransactionImpl tx,
Object obj)
releases a lock for transaction tx on object obj. |
boolean |
upgradeLock(TransactionImpl tx,
Identity oid,
Object obj)
upgrades readlock for transaction tx on object obj to a writelock. |
boolean |
upgradeLock(TransactionImpl tx,
Object obj)
upgrades readlock for transaction tx on object obj to a writelock. |
boolean |
writeLock(TransactionImpl tx,
Identity oid,
Object obj)
aquires a writelock for transaction tx on object obj. |
boolean |
writeLock(TransactionImpl tx,
Object obj)
aquires a writelock for transaction tx on object obj. |
Method Detail |
---|
boolean readLock(TransactionImpl tx, Object obj)
boolean readLock(TransactionImpl tx, Identity oid, Object obj)
boolean writeLock(TransactionImpl tx, Object obj)
boolean writeLock(TransactionImpl tx, Identity oid, Object obj)
boolean upgradeLock(TransactionImpl tx, Object obj)
boolean upgradeLock(TransactionImpl tx, Identity oid, Object obj)
boolean releaseLock(TransactionImpl tx, Object obj)
boolean releaseLock(TransactionImpl tx, Identity oid, Object obj)
boolean checkRead(TransactionImpl tx, Object obj)
boolean checkRead(TransactionImpl tx, Identity oid, Object obj)
boolean checkWrite(TransactionImpl tx, Object obj)
boolean checkWrite(TransactionImpl tx, Identity oid, Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |