This example overrides EntityImpl::doDML(int operation, TransactionEvent e) method to track the status of entities and save the log in UserData hash table object from the DBTransaction. The custom AppModuleImpl::commitTransactionWithStatusLog() does the commit and returns the transaction log as Map to the client which is displayed on the UI in the 'statusbar' facet for the table(wrapped by af:panelCollection). If you are interested, take a look at the custom variable binding in the page definition file in the attached sample. This basically does the wiring job for the returned Map by commitTransactionWithStatusLog() method. May be useful for you later :)
You can download the sample workspace from here. [Runs with Oracle JDeveloper 22.214.171.124.0 (11g R2PS1) + HR Schema]
How to run this sample?
1. Run test.jsf
2. Modify rows on the table and click on 'Commit Transaction With Status Log'. Application displays transaction status (rows modified, deleted, inserted) in the status bar.