<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>CUBRID Q&amp;A</title>
        <link>http://www.cubrid.org/?mid=questions</link>
        <description>CUBRID Q&amp;A</description>
        <language>en</language>
        <pubDate>Fri, 21 Oct 2011 02:37:10 -0800</pubDate>
        <lastBuildDate>Mon, 20 May 2013 01:15:17 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>Error: The argument is invalid</title>
            <dc:creator>Laura Oh</dc:creator>
            <link>http://www.cubrid.org/questions/490836</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/490836</guid>
                                    <description><![CDATA[<p>

When I execute a query "SELECT * FROM t_info" on Java application thru CUBRID JDBC, <br />an error "The argument is invalid" popped up. I'd like to know what&nbsp;happened and how I handle. </p>

<p>&nbsp;</p>

<p>&nbsp;</p>]]></description>
                        <pubDate>Thu, 15 Nov 2012 19:21:04 -0800</pubDate>
                        <category>SQL</category>
                        <category>Error Code</category>
                        <category>JDBC</category>
                        <category>Java</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to connect the Grails web application with CUBRID database?</title>
            <dc:creator></dc:creator>
            <link>http://www.cubrid.org/questions/442881</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/442881</guid>
                                    <description><![CDATA[<p>Hi,</p><p>I am creating web application with Grails web frame work. I have created the application and modify the DataSource.groovy file like this.</p><p></p><div editor_component="code_highlighter" code_type="Java" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">dataSource&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;pooled&nbsp;=&nbsp;true<br />
&nbsp;&nbsp;&nbsp;&nbsp;driverClassName&nbsp;=&nbsp;"cubrid.jdbc.driver.CUBRIDDriver"<br />
&nbsp;&nbsp;&nbsp;&nbsp;username&nbsp;=&nbsp;"dba"<br />
&nbsp;&nbsp;&nbsp;&nbsp;password&nbsp;=&nbsp;"123"<br />
}</div><p></p><p>And my&nbsp;environment&nbsp;for the connection is development coded like this which connects my application to the CUBRID database.</p><p></p><p></p><div editor_component="code_highlighter" code_type="Java" title="" first_line="1" collapse="false" highlight="" nogutter="false" style="border:#666 1px dotted;border-left:#2AE 5px solid;padding:5px;background:#FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">environments&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;development&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataSource&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dbCreate&nbsp;=&nbsp;"create"&nbsp;//&nbsp;one&nbsp;of&nbsp;'create',&nbsp;'create-drop',&nbsp;'update',&nbsp;'validate',&nbsp;''<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url&nbsp;=&nbsp;"jdbc:cubrid://localhost:30000/grailsDB"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}</div><p>I tried several times with CUBRID bt its not work out. It populates the following error message.</p><p>Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccess Exception: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'cubrid.jdbc.driver.CUBRIDDriver'.</p><p>&nbsp;The driver is not supported (Cannot load JDBC driver class 'cubrid.jdbc.driver.CUBRIDDriver' Error message) but the application is coded in Groovy language. Its well supported with Java language.&nbsp;Please give a&nbsp;solution&nbsp;it would be a great help. Thank you.</p><p>Dhip.</p>]]></description>
                        <pubDate>Fri, 05 Oct 2012 00:36:13 -0800</pubDate>
                        <category>driver</category>
                        <category>grails</category>
                        <category>Java</category>
                                    <slash:comments>3</slash:comments>
                    </item>
        										        <item>
            <title>How to pass a custom Object to a Stored Procedure function?</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/365755</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/365755</guid>
                                    <description><![CDATA[<p>


hi I have the following function.</p><p></p><div editor_component="code_highlighter" code_type="Sql" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">CREATE FUNCTION "tblpacientesinsertar"("paciente" OBJECT) RETURN STRING<br />AS LANGUAGE JAVA <br />NAME 'TblPacientes.Insertar(cubrid.sql.CUBRIDOID) return java.lang.String'</div><p></p><p>I want to pass a custom object class, but I dont know if CUBRIDOID is the right type.</p><p>My custom type is <strong><span style="font-family: monospace; ">public class BoPacientes</span></strong>.</p><p>My stored procedure is <b><span style="font-family: monospace; ">public static String Insertar(BoPacientes paciente)</span></b>.</p><p>C# code looks like:</p><p></p><div editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;"><p>public BoPacientes Insertar(BoPacientes objeto)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.....//code code </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CUBRIDCommand com = new CUBRIDCommand();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; com.Connection = con;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; com.CommandText = "select tblpacientesinsertar(" + objeto + ")";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Open();</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .......//some code logical</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</p></div><p>The error I receive is:</p><p></p><div editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">Semantic: Dev9.DataAccess.Pacientes.BoPacientes is not defined.<br />select tblpacientesinsertar(Dev9.DataAccess.Pacientes.BoPacientes)&nbsp;</div><p>I have a java object called BoPacientes.Class registered in CUBRID.</p><div id="endic_ext_wrapper" style="display: none; "></div>]]></description>
                        <pubDate>Sat, 26 May 2012 11:09:41 -0800</pubDate>
                        <category>Java</category>
                        <category>ADO.NET</category>
                        <category>Stored Procedure</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to install jar in cubrid server?</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/359107</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/359107</guid>
                                    <description><![CDATA[<p>


I am trying to install xstream-1.4.2.jar to solve my way to convert to XML.</p><p>When I try to do it in loadjava says: cannot open.&nbsp;&nbsp; </p><p>loadjava is only for .class files have support for jar?</p><div id="endic_ext_wrapper" style="display: none; "></div>]]></description>
                        <pubDate>Mon, 14 May 2012 14:15:09 -0800</pubDate>
                        <category>SQL</category>
                        <category>loadjava</category>
                        <category>Stored Procedure</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to return Custom Type from Java stored procedure?</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/357744</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/357744</guid>
                                    <description><![CDATA[<p>Hi,</p><p>I have a generic method&nbsp;</p><p></p><p></p><div editor_component="code_highlighter" code_type="Java" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;"><p>public static List&lt;Students&gt; SelectStudents()<br />{<br />List&lt;Students&gt; students = new&nbsp;List&lt;Students&gt;(); // List for save students objects<br /><span class="Apple-tab-span" style="white-space: pre; ">	</span>//some logic to return&nbsp;<br /><span class="Apple-tab-span" style="white-space: pre; ">	</span>return students;<br />}</p></div><p>I want to know how can I return the type <b><span style="font-family: monospace; ">List&lt;Student&gt;</span></b>&nbsp;using a Function?</p><p></p><div id="endic_ext_wrapper" style="display: none; "></div><div id="endic_ext_wrapper" style="display: none; "></div><div id="endic_ext_wrapper" style="display: none; "></div>]]></description>
                        <pubDate>Fri, 11 May 2012 09:09:05 -0800</pubDate>
                        <category>Java</category>
                        <category>SQL</category>
                        <category>Stored Procedure</category>
                        <category>User Defined Type</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to call Java Stored Procedure from C#? (Solved)</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/357198</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/357198</guid>
                                    <description><![CDATA[<p>Hi, I am trying to get some value from the database using ado.net.</p><p>I am using the java stored procedures but in the manager this works, in my C# code not.</p>

<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">
public class SpCubrid{<br />
&nbsp; public static String HelloCubrid() {<br />
&nbsp;&nbsp;&nbsp; return "Hello, Cubrid !!";<br />&nbsp; }<br />&nbsp; public static int SpInt(int i) {<br />&nbsp;&nbsp;&nbsp; return i + 1;<br />&nbsp; }<br />&nbsp; public static void outTest(String[] o) {<br />&nbsp;&nbsp;&nbsp; o[0] = "Hello, CUBRID";<br />&nbsp; }<br />}</div>
<br />
<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">
CREATE FUNCTION "hello"() RETURN STRING<br />AS LANGUAGE JAVA <br />NAME 'SpCubrid.HelloCubrid() return java.lang.String'</div>

<p>result on server:</p>

<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">
Hello, Cubrid !!</div>

<p>my C# code</p>

<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">using System;<br />using System.Data;<br />using System.Windows.Forms;<br />using CUBRID.Data.CUBRIDClient;<br />using System.Data.Common;<br /><br />

namespace WindowsFormsApplication1<br />{<br />&nbsp;&nbsp;&nbsp; public partial class Form1 : Form<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public Form1()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InitializeComponent();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void Form1_Load(object sender, EventArgs e)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string ConnectionString = "server=localhost;database=demodb;port=30000;user=dba;password=123456";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable dt = new DataTable();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CUBRIDConnection con = new CUBRIDConnection(ConnectionString);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CUBRIDCommand com = new CUBRIDCommand("hello", con);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; com.CommandType = CommandType.StoredProcedure;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Open();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DbDataReader reader = com.ExecuteReader();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CustomAdapter da = new CustomAdapter();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; da.FillFromReader(dt, reader); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string text = dt.Rows[0].ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //dataGridView1.DataSource = dt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //MessageBox.Show(reader.ToString());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp; public class CustomAdapter : System.Data.Common.DbDataAdapter<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public int FillFromReader(DataTable dataTable, IDataReader dataReader)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return this.Fill(dataTable, dataReader);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override System.Data.Common.RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow a, IDbCommand b, StatementType c, System.Data.Common.DataTableMapping d)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (System.Data.Common.RowUpdatedEventArgs)new EventArgs();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow a, IDbCommand b, StatementType c, System.Data.Common.DataTableMapping d)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (System.Data.Common.RowUpdatingEventArgs)new EventArgs();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override void OnRowUpdated(System.Data.Common.RowUpdatedEventArgs value)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override void OnRowUpdating(System.Data.Common.RowUpdatingEventArgs value)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; } <br />}</div>]]></description>
                        <pubDate>Thu, 10 May 2012 16:04:37 -0800</pubDate>
                        <category>Java</category>
                        <category>Stored Procedure</category>
                        <category>ADO.NET</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Can I deserialise OBJECT types using java.sql.SQLData?</title>
            <dc:creator>lukaseder</dc:creator>
            <link>http://www.cubrid.org/questions/318955</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/318955</guid>
                                    <description><![CDATA[<p>From what I've learned here <a target="_self" href="/questions/318023">http://www.cubrid.org/questions/318023</a>, I understand that CUBRID tables (classes) can have columns (attributes) of an OBJECT type, where the concrete OBJECT type is in fact another table (class). This can be visualised with the following query:</p><p></p><div editor_component="code_highlighter" code_type="Sql" file_path="" description="" first_line="1" collapse="false" nogutter="true" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">select class_name, attr_name, domain_class_name<br />from db_attribute <br />where data_type = 'OBJECT';</div><p><br />Which outputs (for instance):</p><p></p><table style="background:#CCCCCC" cellspacing="1"><tbody><tr style="background:#FFFFFF"><td><p>&nbsp;class_name</p></td><td><p>attr_name <br /></p></td><td><p>&nbsp;domain_class_name</p></td></tr>
<tr style="background:#FFFFFF"><td><p>&nbsp;db_serial</p></td><td><p>&nbsp;owner&nbsp;&nbsp;&nbsp; </p></td><td><p>&nbsp;db_user</p></td></tr>
</tbody></table><p><br />So in principle, it can be said that db_serial.owner is of type db_user. This resembles what Oracle does with UDT's but it seems to be much more powerful, because tables and UDTs are the same in CUBRID. Especially the fact, that db_user attributes can be dereferenced from db_serial.owner (e.g. db_serial.owner.name) looks very similar to Oracle.</p><p style="font-weight: bold;">Now, my question is:</p><p>In Oracle JDBC, UDT's can be deserialised using java.sql.SQLData (which is extended by org.jooq.UDTRecord, for instance). Can this be done in CUBRID, as well? When I deserialise db_serial.owner, I get the CUBRIDOID object. But in fact, I might be interested in a complete deserialisation of that db_user, using SQLData.<br /></p><p></p><p></p>]]></description>
                        <pubDate>Sun, 01 Apr 2012 00:56:10 -0800</pubDate>
                        <category>SQL</category>
                        <category>OBJECT</category>
                        <category>db_attribute</category>
                        <category>Java</category>
                        <category>OID</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Tools that generate CUBRID code for Java</title>
            <dc:creator>impega</dc:creator>
            <link>http://www.cubrid.org/questions/234895</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/234895</guid>
                                    <description><![CDATA[<p>


Hi! Are there any tools that could be used to automatically generate Java/JDBC code working with CUBRID?</p><p>For exampe, something like:</p><p><a href="http://platform.netbeans.org/tutorials/nbm-crud.html">http://platform.netbeans.org/tutorials/nbm-crud.html</a></p><p>Or any tool which I can use to generate the right CUBRID java code without having to learn all the jdbc driver "internals", so to say...</p>]]></description>
                        <pubDate>Fri, 04 Nov 2011 02:23:54 -0800</pubDate>
                        <category>Tools</category>
                        <category>Java</category>
                        <category>JDBC</category>
                        <category>CRUD</category>
                                    <slash:comments>1</slash:comments>
                    </item>
            </channel>
</rss>
