This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cursor doubt in callable statement...

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In the below statement..

CallableStatement cst=conn.prepareCall("{ call MY_TEST_PROC(?,?,?) }");
cst.registerOutParameter(1,OracleTypes.CURSOR);

I have to use....OracleTypes.CURSOR ...but for this...I have to use...

oracle driver.Is there any alternative to this that would make the code...not tie to oracle...

REgards
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure that it will work but you can try with Types.Other

Thanks,
Shailesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic