Using a custom database transaction
In the Setting up BC base classes recipe in Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations, we introduced a number of custom framework extension classes for most of the ADF business components. Among these are classes that can be used to extend the global ADF framework transaction implementation, in particular the ExtDatabaseTransactionFactory
and ExtDBTransactionImpl2
classes. In this recipe, we will cover how to use these classes, so that we can implement our own custom transaction implementation. The use case for this recipe will be to provide logging support for all transaction commit and rollback operations.
Getting ready
You will need to have access to the SharedComponents
workspace that was developed in the Breaking up the application in multiple workspaces recipe in Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations. Additional functionality will be added to the ExtDatabaseTransactionFactory
and ExtDBTransactionImpl2...