> List of tutorials


Develop the Client-Side-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-14

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 Client-Side Class inherits from the General Class and implements methods which are needed on the client side of an application.

Furthermore, this document deals how the Client-Side Buseiness Object is defined as a variable in a Task-Frame and what methods have to be called when the user clicks the 'Store' button.

Preface:

If you are 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, Client-Sidel 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 Client-Side Business Object for 'Project':

As lined out in Using Business Objects to handle data-storage and retrieval, a Business Object will be derived into a Server-Side- and a Client-Side-Version.

top.

Code the variable for the (calling) Task-Frame and the constructor:

top.

Code the method to transfer values from GUI-elements to the variables of this Business Object:

top.

Code the method to 'store' the Business Object on the database:

top.

Define the Business Object as a variable of the Task-Frame:

top.

Implementing the Action-Listener and the method to be triggered when a button is clicked:

top.

Call the methods of the Business Object when the button 'store' is clicked:

top.

Next Steps: