EJB finder view links implement hierarchical relationships between EJB finder view objects. Like BC4J view links, an EJB finder view links can be used to construct an application module. Usages of EJB finder view objects joined by EJB finder view links will be automatically synchronized.
For example, consider two EJB finder view objects:
DepartmentsView
, which uses the findAll()
finder to create lists of DepartmentsFacade
facades
EmployeesView
, which uses the findByDepartment_id()
finder to create lists of EmployeesFacade
facades
You can create an EJB finder view link, DeptEmpLink
, to
join these EJB finder view objects in a hierarchical relationship.
Now, suppose you create an application module containing a usage of
DepartmentsView
as the master, and a usage of EmployeesView
, bound by DeptEmpLink, as the detail.
When the client selects a particular row in the DepartmentsView
usage (such as a row with DepartmentId
30), that row's
DepartmentId
attribute (30) will be automatically passed to
EmployeesView
's finder method, keeping the two view objects
synchronized. EmployeesView
will contain exactly the entity
facades corresponding to entity beans with Department ID 30.
To create an EJB finder view link, see Creating Hierarchical Relationships Between Lists of Entity Facades.
Warning: You cannot create an EJB finder view link that expresses the same relationship as a CMR.
Related topics
Developing Enterprise Java Beans
Understanding Entity Bean Data Bindings
Creating Hierarchical Relationships Between Lists of Entity Facades
About EJB Entity Facades
About EJB Finder
View Objects
About EJB Application
Modules
About Oracle ADF Business Components View Links
Copyright © 1997, 2004, Oracle. All rights reserved.