📄 group__g__usertypes.html
字号:
<div class="memdoc"><p>Return the lob value of the given object attribute. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>- Object handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>attr</em> </td><td>- Attribute name</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>If the attribute is found in the object descriptor attributes list, then a datatype check is performed for integrity. <a class="el" href="group__g__usertypes.html#ge75646c8a8c994d2ebd83d992bc97c18" title="Return the lob value of the given object attribute.">OCI_ObjectGetLob()</a> returns a valid value only for lobs based attributes</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Attribute value or NULL on failure or wrong attribute type </dd></dl><p>Definition at line <a class="el" href="object_8c-source.html#l00680">680</a> of file <a class="el" href="object_8c-source.html">object.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00559">OCI_Schema::cols</a>, <a class="el" href="ocilib__types_8h-source.html#l00497">OCI_Object::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00498">OCI_Object::nty</a>, <a class="el" href="ocilib__types_8h-source.html#l00499">OCI_Object::objs</a>, and <a class="el" href="ocilib__types_8h-source.html#l00291">OCI_Column::subtype</a>.</p></div></div><p><a class="anchor" name="g89378768a57c72154e464a99a20ac5ae"></a><!-- doxytag: member="ocilib.h::OCI_ObjectGetObject" ref="g89378768a57c72154e464a99a20ac5ae" args="(OCI_Object *obj, const mtext *attr)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT <a class="el" href="struct_o_c_i___object.html">OCI_Object</a>* OCI_API OCI_ObjectGetObject </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___object.html">OCI_Object</a> * </td> <td class="paramname"> <em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>attr</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the object value of the given object attribute. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>- Object handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>attr</em> </td><td>- Attribute name</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>If the attribute is found in the object descriptor attributes list, then a datatype check is performed for integrity. <a class="el" href="group__g__usertypes.html#g89378768a57c72154e464a99a20ac5ae" title="Return the object value of the given object attribute.">OCI_ObjectGetObject()</a> returns a valid value only for object based attributes</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Attribute value or NULL on failure or wrong attribute type </dd></dl><p>Definition at line <a class="el" href="object_8c-source.html#l00648">648</a> of file <a class="el" href="object_8c-source.html">object.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00559">OCI_Schema::cols</a>, <a class="el" href="ocilib__types_8h-source.html#l00497">OCI_Object::con</a>, <a class="el" href="ocilib__types_8h-source.html#l00290">OCI_Column::nty</a>, <a class="el" href="ocilib__types_8h-source.html#l00498">OCI_Object::nty</a>, and <a class="el" href="ocilib__types_8h-source.html#l00499">OCI_Object::objs</a>.</p></div></div><p><a class="anchor" name="g5f369b31baa374ac4c0d17d37e5f542a"></a><!-- doxytag: member="ocilib.h::OCI_ObjectGetRaw" ref="g5f369b31baa374ac4c0d17d37e5f542a" args="(OCI_Object *obj, const mtext *attr, void *value, unsigned int len)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT int OCI_API OCI_ObjectGetRaw </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___object.html">OCI_Object</a> * </td> <td class="paramname"> <em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>attr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>len</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the raw attribute value of the given object attribute into the given buffer. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>- Object handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>attr</em> </td><td>- Attribute name </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>- Destination buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>- Max size to write into buffer</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>If the attribute is found in the object descriptor attributes list, then a datatype check is performed for integrity. <a class="el" href="group__g__usertypes.html#g5f369b31baa374ac4c0d17d37e5f542a" title="Return the raw attribute value of the given object attribute into the given buffer...">OCI_ObjectGetRaw()</a> copies data into the buffer only for raw based attributes</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes written to the buffer or 0 on failure or wrong attribute type </dd></dl><p>Definition at line <a class="el" href="object_8c-source.html#l00474">474</a> of file <a class="el" href="object_8c-source.html">object.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00497">OCI_Object::con</a>, and <a class="el" href="ocilib__types_8h-source.html#l00235">OCI_Connection::err</a>.</p></div></div><p><a class="anchor" name="gbeb0db1bb555a25b3012838aae3b9d11"></a><!-- doxytag: member="ocilib.h::OCI_ObjectGetShort" ref="gbeb0db1bb555a25b3012838aae3b9d11" args="(OCI_Object *obj, const mtext *attr)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT short OCI_API OCI_ObjectGetShort </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___object.html">OCI_Object</a> * </td> <td class="paramname"> <em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>attr</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the short value of the given object attribute. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>obj</em> </td><td>- Object handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>attr</em> </td><td>- Attribute name</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>If the attribute is found in the object descriptor attributes list, then a datatype check is performed for integrity. <a class="el" href="group__g__usertypes.html#gbeb0db1bb555a25b3012838aae3b9d11" title="Return the short value of the given object attribute.">OCI_ObjectGetShort()</a> returns a valid value only for integer and number based attributes</dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Attribute value or 0 on failure or wrong attribute type </dd></dl><p>Definition at line <a class="el" href="object_8c-source.html#l00353">353</a> of file <a class="el" href="object_8c-source.html">object.c</a>.</p></div></div><p><a class="anchor" name="g95ba08a32cf97b7bed6235cc48bd2300"></a><!-- doxytag: member="ocilib.h::OCI_ObjectGetString" ref="g95ba08a32cf97b7bed6235cc48bd2300" args="(OCI_Object *obj, const mtext *attr)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT const dtext* OCI_API OCI_ObjectGetString </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___object.html">OCI_Object</a> * </td> <td class="paramname"> <em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>attr</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the string value of the given object attribute. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -