Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ResultSet" Watch "ResultSet" New topic
Author

ResultSet

Donald Wynn
Greenhorn

Joined: Dec 04, 2002
Posts: 29
I want to pass a ResultSet rs to two different methods how can I do that? Currently when I try to do that the ResultSet rs gets passed ok to the first method but not to the second one. Help!
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
In your getResults() method you could call a passToFirstPlace(resultSet) method and then call a passToSecondPlace(resultSet) method. The getResults() method would not itself return anything.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResultSet