Databases Reference
In-Depth Information
5. The next screen can be used to create a Java class for the applicaion module, which
we do not need right now.
6. At the end is the summary page, and clicking on the Finish buton will create the
applicaion module for you.
What just happened?
We have now learnt to create an applicaion module without using the wizard. The applicaion
module is essenial for the project, in order to maintain the transacion in a secured way.
The applicaion module that is created can be nested within another applicaion module to
share the transacional informaion with the parent applicaion module. Applicaion modules
can have Java classes that can override the framework code to bypass the business logic on
commit() and rollback() operaions.
Time for action - adding the view link to the application module
Now we are going to add EmpVOToDeptVOLink to the applicaion module to display the
master-detail relaionship between the EmpVO and DeptVO objects. Adding the view link to
the applicaion module will help in retrieving the employees within a paricular department.
The following steps show how to add a view link to the applicaion module:
1. Double-click on the EmpDirectoryModule.xml file from com.empdirectory.
model.am .
2. Open the Data Model secion to select the view object instances.
3. Select the view link accessor for the DeptVO in the Available View Objects: secion.
In the Data Model secion, select DeptVO1 (which is the view object instance name
in EmpDirectoryModule ).
4. Shutle the view object to the Data Model secion. Now the EmoVO2 object will be
added as a child to DeptVO1 . This represents the view link associaion between
DeptVO and EmpVO .
5. The instance name for the view link is EmpVO3 , in my case.
 
Search WWH ::




Custom Search