Creating the StockInfo business object
Follow these instructions to create, in the eMerged_Library library, the StockInfo business object which has these attributes:
symbol (string)
quantity (int)
pricePerShare (double)
From the menu, select
File > New > Other
. The
New
window opens.
In the navigation tree, click
Business Integration > Business Object
.
Click
Next
.
From the
Module
list, click
eMergedLibrary
. The
Inherit from
field is set to
<none>
.
In the
Folder
field, type
com.emerged.portal
.
In the
Name
field, type
StockInfoBO
.
The
Namespace
field is set to
http://eMergedLibrary/com/emerged/portal
.
Click
Finish
. The editor opens for
StockInfoBO
.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
symbol
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the StockInfoBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
quantity
.
In the
Type
list, type
int
.
From the list, click
int
.
Switch to the StockInfoBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
pricePerShare
.
In the
Type
list, type
double
.
From the list, click
double
.
From the menu, select
File > Save
(or press
Ctrl+S
).
From the menu, select
File > Close
(or press
Ctrl+F4
). The editor closes for
StockInfoBO
.
Parent topic:
Creating interfaces and business objects
Previous topic:
Creating the NewsArticleList business object
Next topic:
Creating the StockPortfolioBO business object