الثلاثاء، 7 أبريل 2020

Oracle ADF Implementation Files

When we need to write some new business functionalities or validations in the application, we generate the implementation files of the ADF business components and write the code there.
  • Entity Object Implementation Class:

The Implementation file with highest re-usability is Entity Object Impl.
Objective: When the user enters the department name as ‘Administration Test’, the system should throw error.
Table: Departments,
Bc4j object: DepartmentsEO
Generate the Implementation class file for the EO as below.1
2
Open the Impl class file and find the getter/setter methods of the attributes.
In our case, let’s look for the setter method of the DepartmentName attribute.
3
Now, let’s make the ‘AutoSubmit’ property of the DepartmentName item to ‘true’ as below.
4
Let’s enter the DepartmentName as ‘Administration Test’. The system will give us the error message when we tab out.
5
  • View Object Implementation Class:

Objective: To filter the Departments for a Department as default.
Bc4j object: DepartmentsVO
Generate the Implementation class file for the VO as below.
6

We will override an existing method in the VOImpl as below.
8
9
Will write the following code for the method.
10
Let’s run and test the page, the department with departmentNo as 10 will be displayed.

  • Application Module Implementation Class:

Objective: To create a Department record.
Bc4j object: AM
Generate the Implementation class file for the AM as below.
12
13
Write a new method in the AMImpl as below.
14
Expose the above method to client interface.
15
The new method would appear in the Data Controls for this AM Data control.
Let’s drag this method from Data Control to the JSP page as a button.
Time to run and test the page!

ليست هناك تعليقات:

إرسال تعليق

ADF: Programmatic View Object Using Ref Cursor.

ADF: Programmatic View Object Using Ref Cursor. Posted by:  Manish Pandey   April 25, 2013   in  ADF   Leave a comment   3758 Views Sometime...