Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All business objects should be placed under com.crm.businessobject.* named packages and extend com.crm.businessobject.CRMBO.

 

Expand
titleCreating CRMBOBankBean.java

 Note that on EJB creation, we also specify the super class of the class we are creating, depending on the business logic of our class. In this case we select the com.crm.businessobject.CRMBO as the super class.

Defining Bussiness Object Methods

 

To implement the basic business logic in our class, we will need to create the following methods:

 

Code Block
themeEclipse
languagejava
titleconstructDO
collapsetrue
    /**
     * Constructs a bank.
     * 
     * @param mainDTO - the main data object
     * @return a bank
     * @throws Exception
     */
	@Override
	protected CRMDO constructDO(CRMDO mainDTO) throws Exception {
		...
	}

...