This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Calling procedure that returns cursor AND other data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Calling procedure that returns cursor AND other data" Watch "Calling procedure that returns cursor AND other data" New topic
Author

Calling procedure that returns cursor AND other data

Greg Triant
Greenhorn

Joined: Nov 25, 2007
Posts: 28
Hi,

I need to implement a call to a procedure via JDBC that returns a cursor and some other data. The output of the procedure looks like this:

{Varchar2 v, Cursor c {Varchar v, Number n}, Intreger i}

- My first question is, what is the correct way to call the procedure. I know that the input is varchar and the ouput is as described above.
I suppose I need sth different than:

{ ? = call pkg.proc_name( ? ) }

- Then I know I should handle the cursor as a result set, but how can I access all of the output after the call is made?

Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: Calling procedure that returns cursor AND other data
 
Similar Threads
Packed decimal conversion - Java
CallableStatement resultset returns only columns and no data, where data exists.
Closing cursor in a stored procedure when invoked from a callable statement
Mapping java collections as In parameters to Varrays
implementing stored procedure in hibernate