-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: PL/SQL with Result
PostPosted: Wed Aug 18, 2010 6:05 pm 
Newbie

Joined: Wed Aug 18, 2010 5:46 pm
Posts: 1
I have a PL/SQL procedure like so:

PROCEDURE p_slct (
resultset IN OUT rec_cur
,p_search_name_addr_id IN VARCHAR2
,p_search_name_line1 IN VARCHAR2
,p_search_tel_area_code IN VARCHAR2
,p_search_tel_local_num IN VARCHAR2
,p_search_postal_code IN lms_name_addr.postal_code%TYPE
,P_SEARCH_TYPE_ID IN lms_name_addr_type.lms_name_addr_type_id%TYPE
,p_sort_by IN NUMBER);

I can get a resultset using something llike:

// register the type of the out param - an Oracle specific type
stmt.registerOutParameter(1, OracleTypes.CURSOR);

Is there a way to use a java.sql.ResultSet with the EntityManager or am I going about this in the wrong way?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.