Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 293210

Re: Unable to create stored procedure with object as parameter

$
0
0

Hi Mani

 

It allows user-defined types in the SQL standard way by using "CREATE TYPE" to register a type (http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.sqlfire.1.0/developers_guide/topics/udt/cdevspecialudt.html). The type must implement java.io.Serializable (Externalizable for better performance). Then the type can be used in procedure args, table column types etc. (normally anywhere an inbuilt type can be used). Simple example:

 

CREATE TYPE mytype EXTERNAL NAME 'examples.mytype'  LANGUAGE JAVA

 

Now mytype can be used in most places where inbuilt types can be. The class can also be one installed dynamically in the system using sqlj.install_jar.

 

 

thanks

sumedh


Viewing all articles
Browse latest Browse all 293210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>