How To Use Commit-Time Callbacks

The general usage of external callbacks is described in Event Registry API. Commit-time event handlers can be defined:

Java: 

registry.committing().addListener(new EventListener4() { ... });

registry.committed().addListener(new EventListener4() { ... });

Event arguments can be reached through CommitEventArgs parameter. CommitEventArgs class provides the following properties:

added - lists the objects added in the current transaction.

deleted - lists the objects deleted in the current transaction.

updated - lists the objects updated in the current transaction.

transaction - returns the current transaction.