Exit 1Z0-419 Implementation Application Development Framework
Question 5 of 5
0% complete
Q5 Single choice

The EmployeesVO view object is based on the Employees table and includes a Deptld attribute.

However, Deptld is not really meaningful to the end user and so, for each employee returned by EmployeesVO. you need to show the correct DepartmentName, which comes from the Departments table and is referenced by the EmployeesVO Deptld attribute.

How can you achieve this behavior by using the declarative features of ADF Business Components? (Choose the best answer.)

  • A

    Add a transient attribute to EmployeesVO and set its value to select DepartmentName from Departments where Deptld = EmployeesView.Deptld

  • B

    Create a database view to join the Departments and Employees tables and base the view object on that view.

  • C

    Define that EmployeesVO is also based on the Departments entity object. Then select "Add attribute from entity" in the EmployeesVO view object and select DepartmentName from the Departments entity object.

  • D

    For the EmployeesVO view object, select the query and add WHERE Employees DEPARTMENTJD =
    Departments.DEPARTMENTJD

  • E

    Add a transient attribute called DepartmentName in the view object and, in the ViewRowlmpI class,
    override the getDepartmentName() accessor to: return (String) getAttributelnternal
    (DEPARTMENTNAME);