Creating the Account business object
Follow these steps to create the Account business object which has these attributes:
accountNumber (string)
type (string)
maxDailyWithdrawalLimit (double)
balance (double)
description (string)
From the menu, select
File > New > Other
. The
New
window opens.
In the navigation tree, click
Business Integration > Business Object
.
From the
Module
list, click
BankModule
. The
Inherit from
field is set to
<none>
.
In the
Folder
field, type
com.emerged.bank
.
In the
Name
field, type
AccountBO
.
Click
Finish
. The editor opens for
AccountBO
.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
accountNumber
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the AccountBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
type
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the AccountBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
maxDailyWithdrawalLimit
.
In the
Type
list, type
double
.
From the list, click
double
.
Switch to the AccountBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
balance
.
In the
Type
list, type
double
.
From the list, click
double
.
Switch to the AccountBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
description
.
In the
Type
list, type
string
.
From the list, click
string
.
From the menu, select
File > Save
(or press
Ctrl+S
).
From the menu, select
File > Close
(or press
Ctrl+F4
). The editor closes for
AccountBO
.
Parent topic:
Creating interfaces and business objects
Next topic:
Creating the AccountList business object