This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ResultSet
 
Similar Threads
question about garbage collection
try...catch...finally w/ a result set
CachedRowSet is an abstract class
How to Execute Stored Procedure?
handle empty recordset