This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Result Set not responding

 
Robert Haynes
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am attempting to merely initialize some values, however the result set is not responding to the .isBeforeFirst or .BeforeFirst statements though the CachedRowSet does. I have put in print statements just to mark the progress.

Code:


Output:
from page size --> class com.xxxx.pagingPanel > page=100
from cache set --> class com.xxxx.pagingPanel > true

-------------
*update: as I was restructuring my code and the result set was fed from another class, I failed to rename a local variable to the global result set that was being passed.
[Edit - added code tags - see UseCodeTags for details]
 
Tina Smith
Ranch Hand
Posts: 208
9
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So does that mean isBeforeFirst() is returning false? Or it's hanging, or throwing an exception, or what?

I know that some of the JDBC stuff is driver-dependent. I haven't had much luck with any of the positional (isBeforeFirst, isAfterLast....) queries to a resultset against an Oracle DB for example. Particularly so with empty resultsets, but I'm guessing this resultset isn't empty?

And welcome to the ranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic