Add a schemewhere objects can register to be notified before commit, rollback, savepoint/statement rollback. This would be at the LCC layer so that it can be used by language elements and JDBC elements. Benefits are code clarity, performance and consistent behaviour.
Some discussion at:
|Clarify transaction management in LanguageConnectionContext.||Open||Unassigned|