This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ResultSet" Watch "ResultSet" New topic


Donald Wynn

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"

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:
subject: ResultSet
It's not a secret anymore!