Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
|
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 29th, 2004, 08:00 AM
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Updatable ResultSet as procedure out param

I'm trying to retrieve an updatable ResultSet from an out parameter of an Oracle stored procedure. The procedure is selecting for update. The code calling the proc is something like this...

Code:
    CallableStatement st = cn.prepareCall(
        "{ call bbs.si_queue.get_sync_customer(?,?) }",
        ResultSet.TYPE_FORWARD_ONLY,
        ResultSet.CONCUR_UPDATABLE
    );
    st.setInt(1, maxRecords);
    st.registerOutParameter(2, OracleTypes.CURSOR);
    st.execute()
    ResultSet rs = ((OracleCallableStatement)st).getCursor(2);
Calling st.getResultSetConcurrency() returns ResultSet.CONCUR_UPDATABLE, but calling rs.getConcurrency() returns ResultSet.CONCUR_READ_ONLY! If I try to use any of the update methods, obviously I get a SQLException.

Does Oracle not support the use of updatable ResultSets in this context or am I doing something wrong?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation must use Updatable query Gnub Beginning VB 6 4 June 19th, 2007 12:32 PM
recordset not updatable Vince_421 Access VBA 3 February 13th, 2007 05:02 PM
Must use "updatable query" bc7 ADO.NET 4 January 30th, 2007 03:58 AM
updatable subform Vince_421 Access 1 June 1st, 2006 07:49 AM
Error in view updatable pavanp SQL Server ASP 1 September 7th, 2004 09:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.