-->
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: Oracle stored procedures without ref cursor - usable?
PostPosted: Sat Jun 09, 2012 11:29 am 
Newbie

Joined: Sat Jun 09, 2012 11:14 am
Posts: 1
Hi,

I'm currently assiting our development team with some additional logic that is housed in the database. The stored procedure has two "in" arguments. Once called, there are explicit dml operations associated with the "in" paramters. Currently, there is no need to return data - not even an "out status." The stored procedure is removing this explicit dml from the application layer to offload performance hits with large dml operations.

What I was curious to seek advice on is this - there is no need to return a ref cursor or any data set from the oracle object. Is there a way to invoke the stored procedure (akin to a callableStatement) within Hibernate knowing that we will not be consuming a ref cursor? Our current design implies that everything called from Oracle must return data. I'm considering it a hack to return a "dummy" ref cursor all in the name of allowing the stored proc to be used. Is there separation of concern here? In other words...if we're using stored procedures, are we moving outside of the "intent" of having a persistence layer?

Any advice on this would be truly appreciated.

Abe Woodrum
Boulder, Colorado


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.