|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LockStrategy
this interface defines method that a Locking Strategy must implement according to the transaction isolation level it represents.
| Method Summary | |
|---|---|
boolean |
checkRead(TransactionImpl tx,
Object obj)
Deprecated. checks whether the specified Object obj is read-locked by Transaction tx. |
boolean |
checkWrite(TransactionImpl tx,
Object obj)
Deprecated. checks whether the specified Object obj is write-locked by Transaction tx. |
boolean |
readLock(TransactionImpl tx,
Object obj)
Deprecated. acquire a read lock on Object obj for Transaction tx. |
boolean |
releaseLock(TransactionImpl tx,
Object obj)
Deprecated. release a lock on Object obj for Transaction tx. |
boolean |
upgradeLock(TransactionImpl tx,
Object obj)
Deprecated. acquire a lock upgrade (from read to write) lock on Object obj for Transaction tx. |
boolean |
writeLock(TransactionImpl tx,
Object obj)
Deprecated. acquire a write lock on Object obj for Transaction tx. |
| Method Detail |
|---|
boolean readLock(TransactionImpl tx,
Object obj)
tx - the transaction requesting the lockobj - the Object to be locked
boolean writeLock(TransactionImpl tx,
Object obj)
tx - the transaction requesting the lockobj - the Object to be locked
boolean upgradeLock(TransactionImpl tx,
Object obj)
tx - the transaction requesting the lockobj - the Object to be locked
boolean releaseLock(TransactionImpl tx,
Object obj)
tx - the transaction releasing the lockobj - the Object to be unlocked
boolean checkRead(TransactionImpl tx,
Object obj)
tx - the transactionobj - the Object to be checked
boolean checkWrite(TransactionImpl tx,
Object obj)
tx - the transactionobj - the Object to be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||