Udostępnij za pośrednictwem


IResultSet.UpdateObject Method

Definition

Overloads

UpdateObject(Int32, Object)

Updates the designated column with an Object value.

UpdateObject(String, Object)

Updates the designated column with an Object value.

UpdateObject(Int32, Object, Int32)

Updates the designated column with an Object value.

UpdateObject(String, Object, Int32)

Updates the designated column with an Object value.

UpdateObject(Int32, Object)

Updates the designated column with an Object value.

[Android.Runtime.Register("updateObject", "(ILjava/lang/Object;)V", "GetUpdateObject_ILjava_lang_Object_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateObject (int columnIndex, Java.Lang.Object? x);
[<Android.Runtime.Register("updateObject", "(ILjava/lang/Object;)V", "GetUpdateObject_ILjava_lang_Object_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateObject : int * Java.Lang.Object -> unit

Parameters

columnIndex
Int32

the first column is 1, the second is 2, ...

x
Object

the new column value

Attributes

Exceptions

if a database error happens.

Remarks

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Added in 1.2.

Java documentation for java.sql.ResultSet.updateObject(int, 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.

Applies to

UpdateObject(String, Object)

Updates the designated column with an Object value.

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

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

x
Object

the new column value

Attributes

Exceptions

if a database error happens.

Remarks

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Added in 1.2.

Java documentation for java.sql.ResultSet.updateObject(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.

Applies to

UpdateObject(Int32, Object, Int32)

Updates the designated column with an Object value.

[Android.Runtime.Register("updateObject", "(ILjava/lang/Object;I)V", "GetUpdateObject_ILjava_lang_Object_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateObject (int columnIndex, Java.Lang.Object? x, int scaleOrLength);
[<Android.Runtime.Register("updateObject", "(ILjava/lang/Object;I)V", "GetUpdateObject_ILjava_lang_Object_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateObject : int * Java.Lang.Object * int -> unit

Parameters

columnIndex
Int32

the first column is 1, the second is 2, ...

x
Object

the new column value

scaleOrLength
Int32

for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.

Attributes

Exceptions

if a database error happens.

Remarks

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

If the second argument is an InputStream then the stream must contain the number of bytes specified by scaleOrLength. If the second argument is a Reader then the reader must contain the number of characters specified by scaleOrLength. If these conditions are not true the driver will generate a SQLException when the statement is executed.

Added in 1.2.

Java documentation for java.sql.ResultSet.updateObject(int, 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.

Applies to

UpdateObject(String, Object, Int32)

Updates the designated column with an Object value.

[Android.Runtime.Register("updateObject", "(Ljava/lang/String;Ljava/lang/Object;I)V", "GetUpdateObject_Ljava_lang_String_Ljava_lang_Object_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateObject (string? columnLabel, Java.Lang.Object? x, int scaleOrLength);
[<Android.Runtime.Register("updateObject", "(Ljava/lang/String;Ljava/lang/Object;I)V", "GetUpdateObject_Ljava_lang_String_Ljava_lang_Object_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateObject : string * Java.Lang.Object * int -> unit

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

x
Object

the new column value

scaleOrLength
Int32

for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.

Attributes

Exceptions

if a database error happens.

Remarks

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

If the second argument is an InputStream then the stream must contain the number of bytes specified by scaleOrLength. If the second argument is a Reader then the reader must contain the number of characters specified by scaleOrLength. If these conditions are not true the driver will generate a SQLException when the statement is executed.

Added in 1.2.

Java documentation for java.sql.ResultSet.updateObject(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.

Applies to