How Do I Handle Transactions?
Now that we’ve explained the basics of querying and updating, it is time to see how ADF BC handles some of the key transactional concepts, such as committing and locking.
The ADF Business Components tester provides Commit and Rollback buttons, but what are they doing and what is their scope? In order to explore this, we’ll need to look at a little code.
The Transaction Object
In ADF Business Components, the application module is the unit of transactional scope. When a commit is issued, that event will affect all entity objects encapsulated within view objects instantiated in that application module. Additionally, if you have nested application modules (See the sidebar “Nested Application Modules”), then these will ...
Get Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.