Condividi tramite


IArray.GetResultSet Method

Definition

Overloads

GetResultSet(IDictionary<String,Class>)

Retrieves a result set that contains the elements of the SQL ARRAY value designated by this Array object.

GetResultSet(Int64, Int32)

Retrieves a result set holding the elements of the subarray that starts at index index and contains up to count successive elements.

GetResultSet(Int64, Int32, IDictionary<String,Class>)

Retrieves a result set holding the elements of the subarray that starts at index index and contains up to count successive elements.

GetResultSet(IDictionary<String,Class>)

Retrieves a result set that contains the elements of the SQL ARRAY value designated by this Array object.

[Android.Runtime.Register("getResultSet", "(Ljava/util/Map;)Ljava/sql/ResultSet;", "GetGetResultSet_Ljava_util_Map_Handler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IResultSet? GetResultSet (System.Collections.Generic.IDictionary<string,Java.Lang.Class>? map);
[<Android.Runtime.Register("getResultSet", "(Ljava/util/Map;)Ljava/sql/ResultSet;", "GetGetResultSet_Ljava_util_Map_Handler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetResultSet : System.Collections.Generic.IDictionary<string, Java.Lang.Class> -> Java.Sql.IResultSet

Parameters

map
IDictionary<String,Class>

contains the mapping of SQL user-defined types to classes in the Java programming language

Returns

a ResultSet object containing one row for each of the elements in the array designated by this Array object, with the rows in ascending order based on the indices.

Attributes

Remarks

Retrieves a result set that contains the elements of the SQL ARRAY value designated by this Array object. This method uses the specified map for type map customizations unless the base type of the array does not match a user-defined type in map, in which case it uses the standard mapping. This version of the method getResultSet uses either the given type map or the standard mapping; it never uses the type map associated with the connection.

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.

Added in 1.2.

Java documentation for java.sql.Array.getResultSet(java.util.Map<java.lang.String, java.lang.Class<?>>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetResultSet(Int64, Int32)

Retrieves a result set holding the elements of the subarray that starts at index index and contains up to count successive elements.

[Android.Runtime.Register("getResultSet", "(JI)Ljava/sql/ResultSet;", "GetGetResultSet_JIHandler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IResultSet? GetResultSet (long index, int count);
[<Android.Runtime.Register("getResultSet", "(JI)Ljava/sql/ResultSet;", "GetGetResultSet_JIHandler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetResultSet : int64 * int -> Java.Sql.IResultSet

Parameters

index
Int64

the array index of the first element to retrieve; the first element is at index 1

count
Int32

the number of successive SQL array elements to retrieve

Returns

a ResultSet object containing up to count consecutive elements of the SQL array designated by this Array object, starting at index index.

Attributes

Exceptions

if there is a database error.

Remarks

Retrieves a result set holding the elements of the subarray that starts at index index and contains up to count 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.

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 index. The result set has up to count 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.

Added in 1.2.

Java documentation for java.sql.Array.getResultSet(long, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetResultSet(Int64, Int32, IDictionary<String,Class>)

Retrieves a result set holding the elements of the subarray that starts at index index and contains up to count successive elements.

[Android.Runtime.Register("getResultSet", "(JILjava/util/Map;)Ljava/sql/ResultSet;", "GetGetResultSet_JILjava_util_Map_Handler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IResultSet? GetResultSet (long index, int count, System.Collections.Generic.IDictionary<string,Java.Lang.Class>? map);
[<Android.Runtime.Register("getResultSet", "(JILjava/util/Map;)Ljava/sql/ResultSet;", "GetGetResultSet_JILjava_util_Map_Handler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetResultSet : int64 * int * System.Collections.Generic.IDictionary<string, Java.Lang.Class> -> Java.Sql.IResultSet

Parameters

index
Int64

the array index of the first element to retrieve; the first element is at index 1

count
Int32

the number of successive SQL array elements to retrieve

map
IDictionary<String,Class>

the Map object that contains the mapping of SQL type names to classes in the Java(tm) programming language

Returns

a ResultSet object containing up to count consecutive elements of the SQL array designated by this Array object, starting at index index.

Attributes

Remarks

Retrieves a result set holding the elements of the subarray that starts at index index and contains up to count successive elements. This method uses the specified map for type map customizations unless the base type of the array does not match a user-defined type in map, in which case it uses the standard mapping. This version of the method getResultSet uses either the given type map or the standard mapping; it never uses the type map associated with the connection.

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 index. The result set has up to count 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.

Added in 1.2.

Java documentation for java.sql.Array.getResultSet(long, int, java.util.Map<java.lang.String, java.lang.Class<?>>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to