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