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

📄 array.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DL><HR><A NAME="getArray()"><!-- --></A><H3>getArray</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>getArray</B>()                throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Retrieves the contents of the SQL <code>ARRAY</code> value designated  by this <code>Array</code> object in the form of an array in the Java programming language. This version of the method <code>getArray</code> uses the type map associated with the connection for customizations of  the type mappings.<DD><DL><DT><B>Returns:</B><DD>an array in the Java programming language that contains  the ordered elements of the SQL <code>ARRAY</code> value designated by this object<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><HR><A NAME="getArray(java.util.Map)"><!-- --></A><H3>getArray</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>getArray</B>(<A HREF="../../java/util/Map.html">Map</A>&nbsp;map)                throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Retrieves the contents of the SQL array designated by this  <code>Array</code> object. This method uses  the specified <code>map</code> for type map customizations unless the base type of the array does not match a user-defined  type in <code>map</code>, in which case it  uses the standard mapping. This version of the method <code>getArray</code> uses either the given type map or the standard mapping; it never uses the type map associated with the connection.<DD><DL><DT><B>Parameters:</B><DD><CODE>map</CODE> - a <code>java.util.Map</code> object that contains mappings            of SQL type names to classes in the Java programming language<DT><B>Returns:</B><DD>an array in the Java programming language that contains the ordered          elements of the SQL array designated by this object<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to                          access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><HR><A NAME="getArray(long, int)"><!-- --></A><H3>getArray</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>getArray</B>(long&nbsp;index,                       int&nbsp;count)                throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Returns an array containing a slice of the SQL <code>ARRAY</code> value designated by this <code>Array</code> object, beginning with the specified <code>index</code> and containing up to <code>count</code>  successive elements of the SQL array.  This method uses the type map associated with the connection for customizations of the type mappings.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the array index of the first element to retrieve;              the first element is at index 1<DD><CODE>count</CODE> - the number of successive SQL array elements to retrieve<DT><B>Returns:</B><DD>an array containing up to <code>count</code> consecutive elements  of the SQL array, beginning with element <code>index</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><HR><A NAME="getArray(long, int, java.util.Map)"><!-- --></A><H3>getArray</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>getArray</B>(long&nbsp;index,                       int&nbsp;count,                       <A HREF="../../java/util/Map.html">Map</A>&nbsp;map)                throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Returns an array containing a slice of the SQL array object  designated by this <code>Array</code> object, beginning with the specified <code>index</code> and containing up to <code>count</code> successive elements of the SQL array.   <P> This method uses  the specified <code>map</code> for type map customizations unless the base type of the array does not match a user-defined  type in <code>map</code>, in which case it  uses the standard mapping. This version of the method <code>getArray</code> uses either the given type map or the standard mapping; it never uses the type map associated with the connection.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the array index of the first element to retrieve;              the first element is at index 1<DD><CODE>count</CODE> - the number of successive SQL array elements to  retrieve<DD><CODE>map</CODE> - a <code>java.util.Map</code> object that contains SQL type names and the classes in the Java programming language to which they are mapped<DT><B>Returns:</B><DD>an array containing up to <code>count</code> consecutive elements of the SQL array designated by this <code>Array</code> object, beginning with element  <code>index</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><HR><A NAME="getResultSet()"><!-- --></A><H3>getResultSet</H3><PRE>public <A HREF="../../java/sql/ResultSet.html">ResultSet</A> <B>getResultSet</B>()                       throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Returns a result set that contains the elements of the SQL  <code>ARRAY</code> value designated by this <code>Array</code> object.  If appropriate, the elements of the array are mapped using the connection's type  map; otherwise, the standard mapping is used. <p> The result set contains one row for each array element, with two columns in each row.  The second column stores the element value; the first column stores the index into the array for  that element (with the first array element being at index 1).  The rows are in ascending order corresponding to the order of the indices.<DD><DL><DT><B>Returns:</B><DD>a <A HREF="../../java/sql/ResultSet.html"><CODE>ResultSet</CODE></A> object containing one row for each of the elements in the array designated by this <code>Array</code> object, with the rows in ascending order based on the indices.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><HR><A NAME="getResultSet(java.util.Map)"><!-- --></A><H3>getResultSet</H3><PRE>public <A HREF="../../java/sql/ResultSet.html">ResultSet</A> <B>getResultSet</B>(<A HREF="../../java/util/Map.html">Map</A>&nbsp;map)                       throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Returns a result set that contains the elements of the SQL  <code>ARRAY</code> value  designated by this <code>Array</code> object. This method uses  the specified <code>map</code> for type map customizations unless the base type of the array does not match a user-defined  type in <code>map</code>, in which case it  uses the standard mapping. This version of the method <code>getResultSet</code> uses either the given type map or the standard mapping; it never uses the type map associated with the connection. <p> The result set contains one row for each array element, with two columns in each row.  The second column stores the element value; the first column stores the index into the array for  that element (with the first array element being at index 1).  The rows are in ascending order corresponding to the order of the indices.<DD><DL><DT><B>Parameters:</B><DD><CODE>map</CODE> - contains the mapping of SQL user-defined types to  classes in the Java programming language<DT><B>Returns:</B><DD>a <code>ResultSet</code> object containing one row for each of the elements in the array designated by this <code>Array</code> object, with the rows in ascending order based on the indices.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><HR><A NAME="getResultSet(long, int)"><!-- --></A><H3>getResultSet</H3><PRE>public <A HREF="../../java/sql/ResultSet.html">ResultSet</A> <B>getResultSet</B>(long&nbsp;index,                              int&nbsp;count)                       throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Returns a result set holding the elements of the subarray that starts at index <code>index</code> and contains up to  <code>count</code> successive elements.  This method uses the connection's type map to map the elements of the array if the map contains an entry for the base type. Otherwise, the standard mapping is used. <P> The result set has one row for each element of the SQL array designated by this object, with the first row containing the  element at index <code>index</code>.  The result set has up to <code>count</code> rows in ascending order based on the indices.  Each row has two columns:  The second column stores the element value; the first column stores the index into the array for that element.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the array index of the first element to retrieve;              the first element is at index 1<DD><CODE>count</CODE> - the number of successive SQL array elements to retrieve<DT><B>Returns:</B><DD>a <code>ResultSet</code> object containing up to <code>count</code> consecutive elements of the SQL array designated by this <code>Array</code> object, starting at index <code>index</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><HR><A NAME="getResultSet(long, int, java.util.Map)"><!-- --></A><H3>getResultSet</H3><PRE>public <A HREF="../../java/sql/ResultSet.html">ResultSet</A> <B>getResultSet</B>(long&nbsp;index,                              int&nbsp;count,                              <A HREF="../../java/util/Map.html">Map</A>&nbsp;map)                       throws <A HREF="../../java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Returns a result set holding the elements of the subarray that starts at index <code>index</code> and contains up to <code>count</code> successive elements. This method uses  the specified <code>map</code> for type map customizations unless the base type of the array does not match a user-defined  type in <code>map</code>, in which case it  uses the standard mapping. This version of the method <code>getResultSet</code> uses either the given type map or the standard mapping; it never uses the type map associated with the connection. <P> The result set has one row for each element of the SQL array designated by this object, with the first row containing the element at index <code>index</code>.  The result set has    up to <code>count</code> rows in ascending order based on the indices.  Each row has two columns:  The second column stores   the element value; the first column stroes the index into the array for that element.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the array index of the first element to retrieve;              the first element is at index 1<DD><CODE>count</CODE> - the number of successive SQL array elements to retrieve<DD><CODE>map</CODE> - the <code>Map</code> object that contains the mapping of SQL type names to classes in the Java(tm) programming language<DT><B>Returns:</B><DD>a <code>ResultSet</code> object containing up to                <code>count</code> consecutive elements of the SQL array designated by this <code>Array</code> object, starting at index <code>index</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/sql/SQLException.html">SQLException</A></CODE> - if an error occurs while attempting to access the array<DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><a href="package-summary.html#2.0 API">What Is in the JDBC      2.0 API</a></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Array.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../java/sql/Blob.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Array.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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