> List of tutorials

Index for Advanced Java Fat-Client-Development

Business Object, General Class - Advanced Java Fat-Client-Development

* For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

  • The owner of this web-site (www.javascout.biz) is not responsible for the content of web-sites linked within this document or other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes your rights or you think that rights of others (third parties) are infringed, please inform the author.
    An e-mail can be sent by clicking onto the 'hungry mailbox' in the upper right corner.

Last revision of this document:
2006-07-14

This document
* describes the mission of the General Class of a Business Object and
* gives a To-Do-List for the steps necessary to code the class.

Prerequisites:

Mission of the General Class:

The General Class of the Business Object, designed for a business entity, comprehends
* variables,
* constants for Stati that might occur when a method is performed and
* methods that are needed both on the subclass for the Client-Side and on the subclass for the Server-Side.

To-Do-List to implement the class:

Please obey, that all General Classes for Business Objects are put into a package (suggestion: application.bo) that is different for those for Client-Side Classes (suggestion: application.boc) and Server-Side Classes (suggestion: application.bos).
This is done to simplify the packaging-script when the application is versioned to run as Client/Server.
The General Classes are needed on both the Client-Application as on the EJB (Enterprise Java Bean) that is running under a JAS (Java Application Server).
The Client-Side Classes are only needed on the Client Application (and packed into the JAR-file for it) while the Server-Side Classes are only needed within the EJB.

A fast way to get the code is to copy from an existing class and modify it.
A class with working code (from the tutorial Develop a Fat-Client in Java) is JS_ErrDB_Project_BO.

Steps to code the class:

The next implementation steps (for this class) may arise as the specifications are more detailed analyzed.
If you are going to have a feedback how the basic implementation works (e.g. to see and correct semantical misconceptions), it is recommended to start coding the Client-Side Class of the Business Object.

To to this, please follow this link.

top.

Related Documents: