ICallableStatement.SetObject Method

Definition

Overloads

SetObject(String, Object)

Sets the value of the designated parameter with the given object.

SetObject(String, Object, Int32)

Sets the value of the designated parameter with the given object.

SetObject(String, Object, Int32, Int32)

Sets the value of the designated parameter with the given object.

SetObject(String, Object)

Sets the value of the designated parameter with the given object.

[Android.Runtime.Register("setObject", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetObject_Ljava_lang_String_Ljava_lang_Object_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetObject (string? parameterName, Java.Lang.Object? x);
[<Android.Runtime.Register("setObject", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetObject_Ljava_lang_String_Ljava_lang_Object_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetObject : string * Java.Lang.Object -> unit

Parameters

parameterName
String

the name of the parameter

x
Object

the object containing the input parameter value

Attributes

Exceptions

if a database error occurs.

Remarks

Java documentation for java.sql.CallableStatement.setObject(java.lang.String, java.lang.Object).

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.

See also

Applies to

SetObject(String, Object, Int32)

Sets the value of the designated parameter with the given object.

[Android.Runtime.Register("setObject", "(Ljava/lang/String;Ljava/lang/Object;I)V", "GetSetObject_Ljava_lang_String_Ljava_lang_Object_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetObject (string? parameterName, Java.Lang.Object? x, int targetSqlType);
[<Android.Runtime.Register("setObject", "(Ljava/lang/String;Ljava/lang/Object;I)V", "GetSetObject_Ljava_lang_String_Ljava_lang_Object_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetObject : string * Java.Lang.Object * int -> unit

Parameters

parameterName
String

the name of the parameter

x
Object

the object containing the input parameter value

targetSqlType
Int32

the SQL type (as defined in java.sql.Types) to be sent to the database

Attributes

Exceptions

if a database error occurs.

Remarks

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

See also

Applies to

SetObject(String, Object, Int32, Int32)

Sets the value of the designated parameter with the given object.

[Android.Runtime.Register("setObject", "(Ljava/lang/String;Ljava/lang/Object;II)V", "GetSetObject_Ljava_lang_String_Ljava_lang_Object_IIHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetObject (string? parameterName, Java.Lang.Object? x, int targetSqlType, int scale);
[<Android.Runtime.Register("setObject", "(Ljava/lang/String;Ljava/lang/Object;II)V", "GetSetObject_Ljava_lang_String_Ljava_lang_Object_IIHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetObject : string * Java.Lang.Object * int * int -> unit

Parameters

parameterName
String

the name of the parameter

x
Object

the object containing the input parameter value

targetSqlType
Int32

the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.

scale
Int32

for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point. For all other types, this value will be ignored.

Attributes

Exceptions

if a database error occurs.

Remarks

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

See also

Applies to