|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.qfs.lib.transaction.CommitableNotify
A CommitableNotify delays the notification of an Observable's
Observer
to the time of commit.
Field Summary | |
protected java.lang.Object |
arg
The argument for the notifyObservers call. |
protected java.util.Observable |
observable
The Observable that should notify its Observers . |
Constructor Summary | |
CommitableNotify(java.util.Observable observable)
Create a new CommitableNotify. |
|
CommitableNotify(java.util.Observable observable,
java.lang.Object arg)
Create a new CommitableNotify. |
Method Summary | |
void |
commit()
Call the java.util.Observable.notifyObservers on the Observable . |
void |
rollback()
This is a noop, since nothing has happened yet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Observable observable
Observers
.
protected java.lang.Object arg
notifyObservers
call.
Constructor Detail |
public CommitableNotify(java.util.Observable observable)
observable
- The Observable that should notify its
Observers
.public CommitableNotify(java.util.Observable observable, java.lang.Object arg)
observable
- The Observable that should notify its
Observers
.arg
- The argument for the
notifyObservers
call.Method Detail |
public void commit()
java.util.Observable.notifyObservers
on the Observable
.
commit
in interface Commitable
public void rollback()
rollback
in interface Commitable
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |