File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes Refcursor vs Pl-SQL Object types 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 "Refcursor vs Pl-SQL Object types" Watch "Refcursor vs Pl-SQL Object types" New topic

Refcursor vs Pl-SQL Object types

Pankaj Kumarkk
Ranch Hand

Joined: Apr 17, 2011
Posts: 108
I would like to know scenario where Refcursor should be preferred over PL-SQL objects as stored procedure return types.
I have been using PL-SQL objects till now. I have come to know that using refcursor, the stored procedure programming becomes very simple. I would like to know what are the pros/cons of using Refcursor in java.

In what scenario we should never use refcursor?
Don't get me started about those stupid light bulbs.
subject: Refcursor vs Pl-SQL Object types
Similar Threads
REFCURSOR in getCursor CallableStatement
getting the resultset of a stored procedure?
stored procedure giving me sql error
Problem using Callable Statement
Stroed Procedure&PL/SQL