Re: NPE on ResultSet update
Posted by: Mark Matthews
Date: December 12, 2004 02:06PM


The API docs (and the spec) are pretty clear that a ResultSet is positioned before the first row, initlally (from my APIDOCs for 1.4.2):

"A ResultSet object maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. The next method moves the cursor to the next row, and because it returns false when there are no more rows in the ResultSet object, it can be used in a while loop to iterate through the result set."

So, without calling some positional method, _what_ row would update*() be working with? :)


Options: ReplyQuote

Written By
December 11, 2004 07:52PM
December 11, 2004 08:16PM
December 11, 2004 08:43PM
December 12, 2004 10:56AM
December 12, 2004 12:13PM
Re: NPE on ResultSet update
December 12, 2004 02:06PM
December 12, 2004 02:24PM
December 12, 2004 11:07AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.