Taking a closer look at entity objects
We have discussed the basics of entity objects in Chapter 2, Introduction to ADF Business Components. It is now time for us to understand the concepts better. We will need to take a deep dive into entity objects in this section. Take a deep breath and prepare yourself.
Lifecycle of an entity object
In this section, we will learn what happens to the state of an entity object when you, as a developer, create, update or delete an entity instance, and commit the transaction later.
When a client starts a new business transaction or commits a business transaction, entity objects go through certain stages in the lifecycle. Let us explore the different states of an entity row when it participates in a typical business transaction.
Create a new entity row: Consider the following code snippet that creates a department entity row:
//In application module implementation class public void createDeptEntity() { //Get entity definition object EntityDefImpl departmentEODef...