IArray.GetArray Method

Definition

Overloads

GetArray(IDictionary<String,Class>)

Retrieves the contents of the SQL ARRAY value designated by this Array object.

GetArray(Int64, Int32)

Retrieves a slice of the SQL ARRAY value designated by this Array object, beginning with the specified index and containing up to count successive elements of the SQL array.

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

Retreives a slice of the SQL ARRAY value designated by this Array object, beginning with the specified index and containing up to count successive elements of the SQL array.

GetArray(IDictionary<String,Class>)

Retrieves the contents of the SQL ARRAY value designated by this Array object.

[Android.Runtime.Register("getArray", "(Ljava/util/Map;)Ljava/lang/Object;", "GetGetArray_Ljava_util_Map_Handler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? GetArray (System.Collections.Generic.IDictionary<string,Java.Lang.Class>? map);
[<Android.Runtime.Register("getArray", "(Ljava/util/Map;)Ljava/lang/Object;", "GetGetArray_Ljava_util_Map_Handler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetArray : System.Collections.Generic.IDictionary<string, Java.Lang.Class> -> Java.Lang.Object

Parameters

map
IDictionary<String,Class>

a java.util.Map object that contains mappings of SQL type names to classes in the Java programming language

Returns

an array in the Java programming language that contains the ordered elements of the SQL array designated by this object

Attributes

Remarks

Retrieves the contents 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 getArray uses either the given type map or the standard mapping; it never uses the type map associated with the connection.

<strong>Note:</strong> When getArray is used to materialize a base type that maps to a primitive data type, then it is implementation-defined whether the array returned is an array of that primitive data type or an array of Object.

Added in 1.2.

Java documentation for java.sql.Array.getArray(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

GetArray(Int64, Int32)

Retrieves a slice of the SQL ARRAY value designated by this Array object, beginning with the specified index and containing up to count successive elements of the SQL array.

[Android.Runtime.Register("getArray", "(JI)Ljava/lang/Object;", "GetGetArray_JIHandler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? GetArray (long index, int count);
[<Android.Runtime.Register("getArray", "(JI)Ljava/lang/Object;", "GetGetArray_JIHandler:Java.Sql.IArrayInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetArray : int64 * int -> Java.Lang.Object

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

an array containing up to count consecutive elements of the SQL array, beginning with element index

Attributes

Exceptions

if there is a database error.

Remarks

Retrieves a slice of the SQL ARRAY value designated by this Array object, beginning with the specified index and containing up to count successive elements of the SQL array. This method uses the type map associated with the connection for customizations of the type mappings.

<strong>Note:</strong> When getArray is used to materialize a base type that maps to a primitive data type, then it is implementation-defined whether the array returned is an array of that primitive data type or an array of Object.

Added in 1.2.

Java documentation for java.sql.Array.getArray(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

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

Retreives a slice of the SQL ARRAY value designated by this Array object, beginning with the specified index and containing up to count successive elements of the SQL array.

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

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>

a java.util.Map object that contains SQL type names and the classes in the Java programming language to which they are mapped

Returns

an array containing up to count consecutive elements of the SQL ARRAY value designated by this Array object, beginning with element index

Attributes

Remarks

Retreives a slice of the SQL ARRAY value designated by this Array object, beginning with the specified index and containing up to count successive elements of the SQL array.

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 getArray uses either the given type map or the standard mapping; it never uses the type map associated with the connection.

<strong>Note:</strong> When getArray is used to materialize a base type that maps to a primitive data type, then it is implementation-defined whether the array returned is an array of that primitive data type or an array of Object.

Added in 1.2.

Java documentation for java.sql.Array.getArray(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