File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes ORACLE jdbc: passing a function as a parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ORACLE jdbc: passing a function as a parameter" Watch "ORACLE jdbc: passing a function as a parameter" New topic
Author

ORACLE jdbc: passing a function as a parameter

Ioan Damian Sirbu
Greenhorn

Joined: Dec 22, 2008
Posts: 18
Greetings,

My question is related to another topic, posted here http://www.coderanch.com/t/495533/Spring/Spring-JDBC-ORACLE-Looking-way#2231065

Let's say I have an ORACLE function which accepts VARCHAR parameter


I want to pass to this function another function that returns a VARCHAR2
FUNCTION get_name RETURN VARCHAR2


Basically, instead of passing directly the parameter, I want to chain them like this


Is it doable with JDBC?

Thanks
Manish Singh
Ranch Hand

Joined: Jan 26, 2007
Posts: 160
have you tried doing this
Ioan Damian Sirbu
Greenhorn

Joined: Dec 22, 2008
Posts: 18
I tried passing the nested function as a varchar parameter and it's obviously not working
Manish Singh
Ranch Hand

Joined: Jan 26, 2007
Posts: 160
what was the error message?
post your code to call it through jdbc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ORACLE jdbc: passing a function as a parameter