Java Reference
In-Depth Information
To Process the ResultSet of a Query
1. Enter lines 167 through 200 as shown in Figure 11-17 on page 711 and
712.
The results of a query are obtained from a ResultSet object and displayed
(Figure 11-31). Additional steps are included to deserialize a Password
object and then obtain instance values by calling Password class accessor
methods.
next()
method
getString()
method
getString()
method
getBytes()
method
getBoolean()
method
deserializeObj()
method
downcast
FIGURE 11-31
2. Enter lines 201 through 216 as shown in Figure 11-17.
Code is displayed for additional queries made to verify that the Stocks and
UserStocks tables are empty (Figure 11-32).
check Stocks
table for no
records
check
UserStocks table
for no records
FIGURE 11-32
 
Search WWH ::




Custom Search