Dela via


IStruct.GetAttributes Method

Definition

Overloads

GetAttributes()

Produces the ordered values of the attributes of the SQL structured type that this Struct object represents.

GetAttributes(IDictionary<String,Class>)

Produces the ordered values of the attributes of the SQL structured type that this Struct object represents.

GetAttributes()

Produces the ordered values of the attributes of the SQL structured type that this Struct object represents.

[Android.Runtime.Register("getAttributes", "()[Ljava/lang/Object;", "GetGetAttributesHandler:Java.Sql.IStructInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object[]? GetAttributes ();
[<Android.Runtime.Register("getAttributes", "()[Ljava/lang/Object;", "GetGetAttributesHandler:Java.Sql.IStructInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributes : unit -> Java.Lang.Object[]

Returns

Object[]

an array containing the ordered attribute values

Attributes

Exceptions

if a database error occurs.

Remarks

Produces the ordered values of the attributes of the SQL structured type that this Struct object represents. As individual attributes are processed, this method uses the type map associated with the connection for customizations of the type mappings. If there is no entry in the connection's type map that matches the structured type that an attribute represents, the driver uses the standard mapping.

Conceptually, this method calls the method getObject on each attribute of the structured type and returns a Java array containing the result.

Added in 1.2.

Java documentation for java.sql.Struct.getAttributes().

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

GetAttributes(IDictionary<String,Class>)

Produces the ordered values of the attributes of the SQL structured type that this Struct object represents.

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

Parameters

map
IDictionary<String,Class>

a mapping of SQL type names to Java classes

Returns

Object[]

an array containing the ordered attribute values

Attributes

Remarks

Produces the ordered values of the attributes of the SQL structured type that this Struct object represents. As individual attrbutes are proccessed, this method uses the given type map for customizations of the type mappings. If there is no entry in the given type map that matches the structured type that an attribute represents, the driver uses the standard mapping. This method never uses the type map associated with the connection.

Conceptually, this method calls the method getObject on each attribute of the structured type and returns a Java array containing the result.

Added in 1.2.

Java documentation for java.sql.Struct.getAttributes(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