Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

returning resultsets

 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a method which should do a "select" query and return the resultant rows as it is in the form of a table. Since i cannot use ResultSet to shuttle data between methods, what could be a possible solution to this problem?? I was reading abt CachedRowSet which is a kind of a "disconnected" result set. So can I return a cached rowset from my method?? And then the caller of my method can use it....Before getting into the code details, I just wanted to know if there is any other possible or better solution?
Regards,
Shanakar.
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at this article
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mani Ram:
Look at this article

thanx,guess i am on the right track.
======
shankar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic