Override the Application Module
beforeCommit() method in your custom Application Module implementation class to execute any custom code that depends on data already posted to the database. Such code may include - but not limited to - validations done in the database via a stored procedure for example. The framework calls this method after
doDML() which means that posted data are available but not yet committed.
Example:
// in your Application Module Implementation class
@Override
public void beforeCommit(TransactionEvent transactionEvent) {
// call some stored procedure here
super.beforeCommit(transactionEvent);
}
Context:
Application Module Implementation Class
No comments:
Post a Comment