Lesson 3.4: Create the package structure of the business design layer
About this task
The itso.ad.business layer contains the implementation of the business logic for the PiggyBank online banking system and contains the subpackages that the following table lists:
|delegate.ejb||This subpackage contains the framework implementation for accessing the PiggyBank EJB.|
|ejb||This subpackage contains the persistent storage model for PiggyBank transactions and customer data.|
|framework||This subpackage describes the isolation layer between the presentation layer of the PiggyBank user interface and the persistence model. The framework layer provides the abstraction between the client interface and the implementation.|
In this lesson, you identify the structure of the itso.ad.business implementation design subpackage by creating the itso.ad.business design-elements overview diagram.
Create the itso.ad.business subpackage
- In the Project Explorer view, expand Enterprise IT Design Model and expand PiggyBank Implementation Designs.
- In the itso.ad.business subpackage, delete the control, domain, presentation, and resource subpackages. These packages are included in the template and are not used in the itso.ad.business subpackage.
- In the Project Explorer view, double-click the itso.ad.business Design Elements diagram.
- In the Palette, double-click Package and name the package framework.
- In the Palette, double-click Package and name the package delegate.ejb.
- In the Palette, double-click Package and name the package ejb.
- In the Palette, click Dependency.
- In the diagram editor, click the delegate.ejb package and drag it to the framework package.
- In the Palette, beside Dependency, click the down arrow and click Usage.
- In the diagram editor, click the delegate.ejb package and drag it to the ejb package.
You identified the basic structure of the itso.ad.business subpackage by creating the basic outline of the itso.ad.business Design Elements diagram. The diagram shows the structure of the subpackage, but also the relationships that exist between packages. You add to this diagram as you continue to model the itso.ad.business subpackage. Your diagram should look similar to the following figure: