|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.odmg.locking.AbstractLockStrategy
org.apache.ojb.odmg.locking.ReadUncommittedStrategy
The implementation of the Uncommited Reads Locking strategy. * This strategy is the loosest of them all. It says * you shouldn't need to get any Read locks whatsoever, * but since it will probably try to get them, it will * always give it to them. * * Locks are obtained on modifications to the database and held until end of * transaction (EOT). Reading from the database does not involve any locking. * * Allows: * Dirty Reads * Non-Repeatable Reads * Phantom Reads * * @author Thomas Mahler & David Dixon-Peugh
Field Summary |
Fields inherited from class org.apache.ojb.odmg.locking.AbstractLockStrategy |
DEFAULT_LOCK_TIMEOUT |
Constructor Summary | |
ReadUncommittedStrategy()
|
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. |
Methods inherited from class org.apache.ojb.odmg.locking.AbstractLockStrategy |
addReader, getReaders, getWriter, hasReadLock, removeReader, removeWriter, setWriter, upgradeLock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReadUncommittedStrategy()
Method Detail |
public boolean readLock(TransactionImpl tx, java.lang.Object obj)
public boolean writeLock(TransactionImpl tx, java.lang.Object obj)
public boolean upgradeLock(TransactionImpl tx, java.lang.Object obj)
public boolean releaseLock(TransactionImpl tx, java.lang.Object obj)
public boolean checkRead(TransactionImpl tx, java.lang.Object obj)
public boolean checkWrite(TransactionImpl tx, java.lang.Object obj)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |