|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoodsjpi.Metaobject
goodsjpi.BasicMetaobject
goodsjpi.PessimisticMetaobject
goodsjpi.PessimisticRepeatableReadMetaobject
PessimisticRepeatableReadMetaobject
for pessimistic scheme of
synchronization with repeatable read isolation level
While extending the Multiple Reader, one writer aproach, this strategy obtains
shred locks for reading, thus ensuring that no write is going on at the same time.
Field Summary |
Fields inherited from class goodsjpi.Metaobject |
CONSTRUCTOR, EXCEPTION, MUTATOR, VARIABLE |
Constructor Summary | |
PessimisticRepeatableReadMetaobject()
|
Method Summary | |
void |
beginReadAccess(Persistent obj)
beginReadAccess locks the object in shared mode. |
void |
endAccess(Persistent obj)
endAccess adds the object to the transaction list, also when the
object was not modified. |
Methods inherited from class goodsjpi.PessimisticMetaobject |
beginWriteAccess |
Methods inherited from class goodsjpi.Metaobject |
modify, mutator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PessimisticRepeatableReadMetaobject()
Method Detail |
public void beginReadAccess(Persistent obj)
beginReadAccess
locks the object in shared mode.
beginReadAccess
in class PessimisticMetaobject
obj
- a Persistent
object to be read.public void endAccess(Persistent obj)
endAccess
adds the object to the transaction list, also when the
object was not modified. Thus the (shared) lock is released.
endAccess
in class PessimisticMetaobject
obj
- a Persistent
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |