Java Reference
In-Depth Information
3. Enter lines 236 through 248 as shown in Figure 11-36 on page 737.
TextPad displays the code to delete the user record (Figure 11-48). All stock
holdings for this user, and any of the same stocks no longer held by any
user, are deleted.
SQL delete of
user record
FIGURE 11-48
4. Enter lines 249 through 257 as shown in Figure 11-36.
TextPad displays the code to commit the transaction (Figure 11-49). If the
commit fails, a new SQLException is thrown to trigger the rollback.
commit() method
FIGURE 11-49
(continued)
 
Search WWH ::




Custom Search