ICallableStatement.GetObject Method

Definition

Overloads

GetObject(Int32, IDictionary<String,Class>)

Returns an object representing the value of OUT parameter parameterIndex and uses map for the custom mapping of the parameter value.

GetObject(Int32)

Retrieves the value of the designated parameter as an Object in the Java programming language.

GetObject(String)

Retrieves the value of a parameter as an Object in the Java programming language.

GetObject(String, IDictionary<String,Class>)

Returns an object representing the value of OUT parameter parameterName and uses map for the custom mapping of the parameter value.

GetObject(Int32, IDictionary<String,Class>)

Returns an object representing the value of OUT parameter parameterIndex and uses map for the custom mapping of the parameter value.

[Android.Runtime.Register("getObject", "(ILjava/util/Map;)Ljava/lang/Object;", "GetGetObject_ILjava_util_Map_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? GetObject (int parameterIndex, System.Collections.Generic.IDictionary<string,Java.Lang.Class>? map);
[<Android.Runtime.Register("getObject", "(ILjava/util/Map;)Ljava/lang/Object;", "GetGetObject_ILjava_util_Map_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetObject : int * System.Collections.Generic.IDictionary<string, Java.Lang.Class> -> Java.Lang.Object

Parameters

parameterIndex
Int32

the first parameter is 1, the second is 2, and so on

map
IDictionary<String,Class>

the mapping from SQL type names to Java classes

Returns

a java.lang.Object holding the OUT parameter value

Attributes

Remarks

Returns an object representing the value of OUT parameter parameterIndex and uses map for the custom mapping of the parameter value.

This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.

Added in 1.2.

Java documentation for java.sql.CallableStatement.getObject(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

GetObject(Int32)

Retrieves the value of the designated parameter as an Object in the Java programming language.

[Android.Runtime.Register("getObject", "(I)Ljava/lang/Object;", "GetGetObject_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? GetObject (int parameterIndex);
[<Android.Runtime.Register("getObject", "(I)Ljava/lang/Object;", "GetGetObject_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetObject : int -> Java.Lang.Object

Parameters

parameterIndex
Int32

the first parameter is 1, the second is 2, and so on

Returns

A java.lang.Object holding the OUT parameter value

Attributes

Exceptions

if a database error occurs.

Remarks

Retrieves the value of the designated parameter as an Object in the Java programming language. If the value is an SQL NULL, the driver returns a Java null.

This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.

Java documentation for java.sql.CallableStatement.getObject(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

GetObject(String)

Retrieves the value of a parameter as an Object in the Java programming language.

[Android.Runtime.Register("getObject", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGetObject_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? GetObject (string? parameterName);
[<Android.Runtime.Register("getObject", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGetObject_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetObject : string -> Java.Lang.Object

Parameters

parameterName
String

the name of the parameter

Returns

A java.lang.Object holding the OUT parameter value.

Attributes

Exceptions

if there is a problem accessing the database.

Remarks

Retrieves the value of a parameter as an Object in the Java programming language. If the value is an SQL NULL, the driver returns a Java null.

This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.

Added in 1.4.

Java documentation for java.sql.CallableStatement.getObject(java.lang.String).

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

GetObject(String, IDictionary<String,Class>)

Returns an object representing the value of OUT parameter parameterName and uses map for the custom mapping of the parameter value.

[Android.Runtime.Register("getObject", "(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/Object;", "GetGetObject_Ljava_lang_String_Ljava_util_Map_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? GetObject (string? parameterName, System.Collections.Generic.IDictionary<string,Java.Lang.Class>? map);
[<Android.Runtime.Register("getObject", "(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/Object;", "GetGetObject_Ljava_lang_String_Ljava_util_Map_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetObject : string * System.Collections.Generic.IDictionary<string, Java.Lang.Class> -> Java.Lang.Object

Parameters

parameterName
String

the name of the parameter

map
IDictionary<String,Class>

the mapping from SQL type names to Java classes

Returns

a java.lang.Object holding the OUT parameter value

Attributes

Remarks

Returns an object representing the value of OUT parameter parameterName and uses map for the custom mapping of the parameter value.

This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.

Added in 1.4.

Java documentation for java.sql.CallableStatement.getObject(java.lang.String, 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