Overriding doDML() to populate an attribute with a gapless sequence

In this recipe, we will go over a generic programming technique that you can use to assign gapless database sequence values to entity object attributes. A gapless sequence will produce values with no gaps in between them. The difference between this technique and the one presented in the Using a custom property to populate a sequence attribute recipe, is that the sequence values are assigned during the transaction commit cycle instead of during component creation.

Getting ready

We will add this generic functionality to the custom entity framework class that we created in the Setting up BC base classes recipe in Chapter 1, Pre-requisites to Success: ADF Project ...

Get Oracle JDeveloper 11gR2 Cookbook 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.