Java Reference
In-Depth Information
7. Click the Save button. Enter lines 614 through 626 as shown in
Figure 12-45 on page 828.
TextPad displays the code to delete a valid user (Figure 12-58). If the user
ID is not found, an exception is thrown by the data access class.
thrown
exceptions of
data access class
delUser()
method
FIGURE 12-58
8. Enter lines 627 through 660 as shown in Figure 12-46 on page 829.
TextPad displays the code to update a user's information in the database
(Figure 12-59). Within the synchronized block, a new copy of the user's
information is obtained, changes are applied, and then the database is
updated before the lock is released. This prevents simultaneous updates
of the same user within this application.
parameters for
updateable fields
updUser()
method
synchronized
code block
FIGURE 12-59
 
Search WWH ::




Custom Search