> List of tutorials


Develop the General-Class for the Business Object 'Project' - 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 linked within 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-08-15

Business Objects are entities that keep together data belonging to one 'business-area'; e.g. an invoice with a 'header' and several 'positions'.
Business Objects can contain data that is physically stored on different database-tables.

For the theory about Business Objects please consult Using Business Objects to handle data-storage and retrieval.

The General Class, which is developed in this step, contents all variables and methods of a Business Object that are needed on both the Client-Side and the Server-Side.
It also contains Constants to signal a completion-status (either a completion as expected or unexpected errors) of the method.

Preface:

If you came to this document to get a guideline for developing a Business Object, I recommend to start with the document Business Object, Overview – Advanced Java Fat-Client-Development or go directly to the ToDo-List in document Business Object, General Class – Advanced Java Fat-Client-Development.

As classes for Business Objects have a critical mission within an application, preference was given to performance if there has to be made a decision between understandability and performance.
I hope, that the comments placed in the code will help you to understand what intention is behind the code.

Credits:

Too numerous to mention; the idea is available in dozens of versions – I refined a lot of ideas into my system.

Prerequisites:

Create the General Class for the Business Object 'Project':

Let us start with a very small Business Object; it just contains 3 variables:
* the Project-Code which identifies the Project the Error-Messages (designed later) are for;
* the Language-Code which is the 2 character ISO-code for the language the Error-Messages are and
* the directory where the file with the language-specific Error-Message in XML-structure is written out.

top.

Code a method to copy the values from one object to another:

Code a method to copy the values from one object to another:

Code a method to compare if the values of two Business Objects are different:

top.

Next Steps: