📄 oracle.sql.array.html
字号:
</dl></dd></dl><a name="getResultSet()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getResultSet"><b>getResultSet</b></a><pre> public ResultSet getResultSet() throws SQLException</pre><dl> <dd> Implements Array interface methodReturns a result set that contains the elements of the arraydesignated by this <code>Array</code> object. If appropriate,the elements of the array are mapped using the connection's typemap; otherwise, the standard mapping is used.<p>The result set contains one row for each array element, withtwo columns in each row. The second column stores the elementvalue; the first column stores the index into the array forthat element (with the first array element being at index 1).The rows are in ascending order corresponding tothe order of the indices.<p> <dd><dl> <dt> <b>Returns:</b> <dd> a {@link ResultSet} object containing one row for eachof 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> SQLException <dd> if an error occurs while attempting toaccess the array </dl></dd></dl><a name="getResultSet(java.util.Dictionary)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getResultSet"><b>getResultSet</b></a><pre> public ResultSet getResultSet(Dictionary map) throws SQLException</pre><dl> <dd> Implements Array interface method Returns a result set that contains the elements of the arraydesignated by this <code>Array</code> object and uses the given<code>map</code> to map the array elements. If the basetype of the array does not match a user-defined type in<code>map</code>, the standard mapping is used instead.<p>The result set contains one row for each array element, withtwo columns in each row. The second column stores the elementvalue; the first column stores the index into the array forthat element (with the first array element being at index 1).The rows are in ascending order corresponding tothe order of the indices.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> map - contains mapping of SQL user-defined types toclasses in the Java(tm) programming language <dt> <b>Returns:</b> <dd> a <code>ResultSet</code> object containing one row for eachof 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> SQLException <dd> if an error occurs while attempting toaccess the array </dl></dd></dl><a name="getResultSet(long, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getResultSet"><b>getResultSet</b></a><pre> public ResultSet getResultSet(long index, int count) throws SQLException</pre><dl> <dd> Implements Array interface method Returns a result set holding the elements of the subarray thatstarts at index <code>index</code> and contains up to<code>count</code> successive elements. This method usesthe connection's type map to map the elements of the array ifthe map contains an entry for the base type. Otherwise, thestandard mapping is used.<P>The result set has one row for each element of the SQL arraydesignated by this object, with the first row containing theelement at index <code>index</code>. The result set hasup to <code>count</code> rows in ascending order based on theindices. Each row has two columns: The second column storesthe element value; the first column stroes the index into thearray for that element.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> index - the array index of the first element to retrieve;the first element is at index 1 <dd> count - 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 arraydesignated by this <code>Array</code> object, starting atindex <code>index</code>. <dt> <b>Throws:</b> SQLException <dd> if an error occurs while attempting toaccess the array </dl></dd></dl><a name="getResultSet(long, int, java.util.Dictionary)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getResultSet"><b>getResultSet</b></a><pre> public ResultSet getResultSet(long index, int count, Dictionary map) throws SQLException</pre><dl> <dd> Implements Array interface method Returns a result set holding the elements of the subarray thatstarts at index <code>index</code> and contains up to<code>count</code> successive elements. This method usesthe <code>Map</code> object <code>map</code> to map the elementsof the array unless the base type of the array does not matcha user-defined type in <code>map</code>, in which case it usesthe standard mapping.<P>The result set has one row for each element of the SQL arraydesignated by this object, with the first row containing theelement at index <code>index</code>. The result set hasup to <code>count</code> rows in ascending order based on theindices. Each row has two columns: The second column storesthe element value; the first column stroes the index into thearray for that element.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> index - the array index of the first element to retrieve;the first element is at index 1 <dd> count - the number of successive SQL array elements to retrieve <dd> map - the <code>Map</code> object that contains the mappingof 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 arraydesignated by this <code>Array</code> object, starting atindex <code>index</code>. <dt> <b>Throws:</b> SQLException <dd> if an error occurs while attempting toaccess the array </dl></dd></dl><a name="getOracleArray()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getOracleArray"><b>getOracleArray</b></a><pre> public Datum[] getOracleArray() throws SQLException</pre><dl> <dd> Oracle extension.Analogous to getArray except that it always returns an oracle.sql.XXX instead of whatever result.getObject would have returned.<p> <dd><dl> <dt> <b>Returns:</b> <dd> an array of Datum. </dl></dd></dl><a name="length()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="length"><b>length</b></a><pre> public int length() throws SQLException</pre><dl> <dd> Oracle extension.Get array size.<p> <dd><dl> <dt> <b>Returns:</b> <dd> the number of elements in the array. </dl></dd></dl><a name="getOracleArray(long, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getOracleArray"><b>getOracleArray</b></a><pre> public Object getOracleArray(long index, int count) throws SQLException</pre><dl> <dd> Oracle extension.Like getOracleArray, but returns a slice.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> index - the index of the first element to be returned <dd> count - the number of elements to be returned. <dt> <b>Returns:</b> <dd> an array containing count elements starting at index </dl></dd></dl><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> Oracle extension.Retrieves 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 collectiontype for which this <code>Array</code> objectis the generic representation <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.ArrayDescriptor.html#_top_">ArrayDescriptor</a> getDescriptor() throws SQLException</pre><dl> <dd> Oracle extension.Return the ArrayDescriptor object that contains thetype information.<p> <dd><dl> <dt> <b>Returns:</b> <dd> the type descriptor </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() throws SQLException</pre><dl> <dd> Oracle extension.The OracleConnection object associatesg the array.<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> Oracle extension.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="Package-oracle.sql.html">Previous</a> <a href="oracle.sql.ArrayDescriptor.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -