concept introduced in Example 13-6 is the dynamic SQL
call. Because we do not know whether we will be processing a query or
an update, we need to pass the SQL call through the
method. This method returns
true if the statement returned a result set or
false if none was produced. In the example, if it
true, the application gets the returned
ResultSet through a call to
The application can then go on to do normal result set processing.
If, on the other hand, the statement performed some sort of database
modification, you can call
to find out how many rows were modified by the statement.