|
|
|
Last
revision of this document: |
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.
In
the Base Class (which is developed in this step), variables and
methods that are used by all Business Objects are developed.
Preface:In
former steps code was written for understanding in favour of
performance.
As this class is intended to be inhereted by a heap
of Business Objects, 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.
This
step can be done independant from previous steps;
recommended
is, to have JS_FC01i
- Create and code the class for the 'Task-Frame' to maintain
'Projects' completed - and its
prerequisites too.
To
get the ideas and the theory of Business Objects it is recommended
to browse the following documents:
Using
Business Objects to handle data-storage and retrieval
and
Business
Object, Overview – Advanced Java Fat-Client-Development.
Create
the (base-)class for Business Objects:There
are some variables that are common to all Business Objects.
Those
are defined in a base-class.
Right
click onto the project 'JS_Base' and select
>New>Class
Enter
the Package (js_base.bo),
the (Class-)Name (JSBS_BO),
check that no checkbox is selected; then click the [Finish]
button.
Eclipse
has already generated a template and the individual code can be
entered.
Please see the code to be entered at JSBS_BO
- or copy it from there ;-) .
Next
Steps:It
is time to deal with the Business Object specifically designed for
this business task: 'Project'.
First a General Class for the
Business Objecthas to be created.
JS_FC01k
– Develop the General Class for the Business Object 'Project'.