Panel | ||
---|---|---|
| ||
Business ObjectsBusiness objects (BOs) implement the software's business logic. They are responsible for handling data objects (constructing, loading, saving, deleting) and any other business logic related with to the business module. For every data object, there is a business object that handles it. Business objects do not implement any process flows, but offer offer services to the Controller layer (UI, API, Process) but they do not implement any process flows. In CRM.COM Software, we implement the business object classes are implemented using EJBs (Enterprise Java Beans) J2EE server-side components, and more specifically we use , Stateless Session Beans. More information about EJBs can be found here. |
Table of Contents |
---|
Creating the Business Object Classes
The first thing to do is to create an EJB that will handle our business objects. In order to create our class we must first decide the name of the package to place it in. Based on the business structure, the respective packages should be created. Based on CRM.COM naming conventions, all business objects are stored in the
All business objects should be placed under com.crm.businessobject package. Based on the module we are implementing, further packages are then created in here.
In this case, we will create the package com.crm.businessobject.accounts that will contain the module's business object classes, and create the CRMBOBankBean.java business object class..* named packages .
Expand | ||
---|---|---|
| ||
...