|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An entity that wishes to be notified when PersistenceManagers associated with remote PersistenceManagerFactories commit.
A RemoteCommitListener is not notified of commits that originated with a PersistenceManager created from the PersistenceManagerFactory that it is registered with. (Of course, if a listener is registered with multiple factories, this situation might be complicated a bit.)
Usage:
import kodo.event.*;
import kodo.conf.*;
JDOConfiguration
conf =
((KodoPersistenceManagerFactory) pmf).getConfiguraiton ();
RemoteCommitListener l = new RemoteCommitListener () {
public void afterCommit (RemoteCommitEvent
e) {
// update a Swing widget when remote PMs make
// changes to reference data
}
public void close () { }
};
conf.getRemoteCommitEventManager ().registerListener (l);
Method Summary | |
void |
afterCommit(RemoteCommitEvent event)
Notification that a transaction associated with a different PersistenceManagerFactory has successfully committed. |
void |
close()
Close any resources used by this listener. |
Method Detail |
public void afterCommit(RemoteCommitEvent event)
public void close()
close
in interface com.solarmetric.util.Closeable
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |