⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oracle.sql.struct.html

📁 Oracle JDBC 的javaDoc
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Thu Dec 02 03:30:11 PST 1999 --><title>  Class oracle.sql.STRUCT</title></head><body><a name="_top_"></a><pre><a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-oracle.sql.html">This Package</a>  <a href="oracle.sql.SQLUtil.html#_top_">Previous</a>  <a href="oracle.sql.StructDescriptor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre><hr><h1>  Class oracle.sql.STRUCT</h1><pre>oracle.sql.STRUCT</pre><hr><dl>  <dt> public class <b>STRUCT</b>  <dt> implements Struct</dl>This class has two roles.<ul><li> It is the Oracle implementation class for the generic JDBC Struct interface. </li><li> It wraps the "raw bytes" of an Oracle Object Type. </li></ul>Like other classes in oracle.sql. it is a value class. That is, once it is constructed the user should not change its contents.<p><hr><a name="index"></a><h2>  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"></h2><dl>  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#STRUCT(oracle.sql.StructDescriptor, java.sql.Connection, java.lang.Object[])"><b>STRUCT</b></a>(StructDescriptor, Connection, Object[])  <dd> Constructor.</dl><h2>  <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl>  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#getAttributes()"><b>getAttributes</b></a>()  <dd> Implements the Struct interface function.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#getAttributes(java.util.Dictionary)"><b>getAttributes</b></a>(Dictionary)  <dd> Implements the Struct interface function.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#getConnection()"><b>getConnection</b></a>()  <dd> Oracle extension.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#getDescriptor()"><b>getDescriptor</b></a>()  <dd> Oracle extension.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#getOracleAttributes()"><b>getOracleAttributes</b></a>()  <dd> Oracle extension.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#getSQLTypeName()"><b>getSQLTypeName</b></a>()  <dd> Implements the Struct interface functionRetrieves the SQL type name of the SQL structured typethat this <code>Struct</code> object represents.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#isConvertibleTo(java.lang.Class)"><b>isConvertibleTo</b></a>(Class)  <dd> Determines if datum object can be converted to a particular class  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#toJdbc()"><b>toJdbc</b></a>()  <dd> Oracle extension.</dl><a name="constructors"></a><h2>  <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="STRUCT"></a><a name="STRUCT(oracle.sql.StructDescriptor, java.sql.Connection, java.lang.Object[])"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>STRUCT</b><pre> public STRUCT(<a href="oracle.sql.StructDescriptor.html#_top_">StructDescriptor</a> type,               Connection conn,               Object attributes[]) throws SQLException</pre><dl>  <dd> Constructor. The raw bytes are computed at this time or a copy of attributes ismade. In any event the caller is free to modify the array withoutaffecting the values held in the STRUCT.<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> type - the SQLStructType used to convert the type to    <dd> attributes - the array specifying the attributes to beconverted to raw bytes.    <dt> <b>See Also:</b>    <dd> SQLStructType  </dl></dd></dl><a name="methods"></a><h2>  <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="getSQLTypeName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getSQLTypeName"><b>getSQLTypeName</b></a><pre> public String getSQLTypeName() throws SQLException</pre><dl>  <dd> Implements the Struct interface functionRetrieves the SQL type name of the SQL structured typethat this <code>Struct</code> object represents.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> s the fully-qualified type name of the SQL structuredtype for which this <code>Struct</code> objectis the generic representation    <dt> <b>Throws:</b> SQLException    <dd> if a database access error occurs  </dl></dd></dl><a name="getAttributes()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getAttributes"><b>getAttributes</b></a><pre> public Object[] getAttributes() throws SQLException</pre><dl>  <dd> Implements the Struct interface function.Produces the ordered values of the attributes of the SQLstructurec type that this <code>Struct</code> object represents.Each call returns a fresh array.This method uses the type map associated with theconnection for customizations of the type mappings.If there is noentry in the connection's type map that matches the structuredtype that this <code>Struct</code> object represents,the driver uses the standard mapping.<p>Conceptually, this method calls the method<code>getObject</code> on each attributeof the structured type and returns a Java array containingthe result.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> an array containing the ordered attribute values    <dt> <b>Throws:</b> SQLException    <dd> if a database access error occurs  </dl></dd></dl><a name="getAttributes(java.util.Dictionary)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getAttributes"><b>getAttributes</b></a><pre> public Object[] getAttributes(Dictionary map) throws SQLException</pre><dl>  <dd> Implements the Struct interface function. Produces the ordered values of the attributes of the SQLstructurec type that this <code>Struct</code> object represents.Each call returns a fresh array.   This method uses the given type mapfor customizations of the type mappings.If there is noentry in the given type map that matches the structuredtype that this <code>Struct</code> object represents,the driver uses the standard mapping.<p>Conceptually, this method calls the method<code>getObject</code> on each attributeof the structured type and returns a Java array containingthe result.<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> map - a mapping of SQL type names to Java classes    <dt> <b>Returns:</b>    <dd> an array containing the ordered attribute values    <dt> <b>Throws:</b> SQLException    <dd> if a database access error occurs  </dl></dd></dl><a name="getDescriptor()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDescriptor"><b>getDescriptor</b></a><pre> public <a href="oracle.sql.StructDescriptor.html#_top_">StructDescriptor</a> getDescriptor() throws SQLException</pre><dl>  <dd> Oracle extension.Return the StructDescriptor object that contains thetype information.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> the type descriptor  </dl></dd></dl><a name="getOracleAttributes()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getOracleAttributes"><b>getOracleAttributes</b></a><pre> public Datum[] getOracleAttributes() throws SQLException</pre><dl>  <dd> Oracle extension.Retrun the array of Attributes as oracle.sql.XXX's.A fresh array is returned each time getOracleAttributes is called.<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> datum array that containing the ordered attribute valuesas oracle.sql.Datum objects.  </dl></dd></dl><a name="getConnection()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getConnection"><b>getConnection</b></a><pre> public <a href="oracle.jdbc.driver.OracleConnection.html#_top_">OracleConnection</a> getConnection()</pre><dl>  <dd> Oracle extension.Return current connection.<p></dl><a name="toJdbc()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="toJdbc"><b>toJdbc</b></a><pre> public Object toJdbc() throws SQLException</pre><dl>  <dd> Oracle extension.Returns the JDBC representation of the datum object<p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> an object containing the JDBC value    <dt> <b>Throws:</b> SQLException    <dd> if conversion to JDBC representation results inan error  </dl></dd></dl><a name="isConvertibleTo(java.lang.Class)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="isConvertibleTo"><b>isConvertibleTo</b></a><pre> public boolean isConvertibleTo(Class jClass)</pre><dl>  <dd> Determines if datum object can be converted to a particular class<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> cls - Class to convert to    <dt> <b>Returns:</b>    <dd> true,  if conversion to cls is permittedfalse, if conversion to cls is not permitted  </dl></dd></dl><hr><pre><a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-oracle.sql.html">This Package</a>  <a href="oracle.sql.SQLUtil.html#_top_">Previous</a>  <a href="oracle.sql.StructDescriptor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -