Java Reference
In-Depth Information
user holds
stock
addStock()
method
stock not in
database
stock
already in
database
FIGURE 12-52
2. Click the Save button. Enter lines 506 through 522 as shown in
Figure 12-40 on page 825.
TextPad displays the code to add a stock description (Figure 12-53). After
adding a new stock and description, the stock is added to the user's stock
holdings. A new list of stock holdings is added as the stock's attribute. If the
stock's attribute previously existed, it is replaced.
addStockDesc()
method
synchronized
on db object
session attribute for
list of stock holdings
FIGURE 12-53
(continued)
 
Search WWH ::




Custom Search