次の方法で共有


IResultSet.RefreshRow Method

Definition

Refreshes the current row with its most recent value in the database.

[Android.Runtime.Register("refreshRow", "()V", "GetRefreshRowHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RefreshRow ();
[<Android.Runtime.Register("refreshRow", "()V", "GetRefreshRowHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RefreshRow : unit -> unit
Attributes

Exceptions

if a database error happens., including if the current row is the Insert row.

Remarks

Refreshes the current row with its most recent value in the database. This method cannot be called when the cursor is on the insert row.

The refreshRow method provides a way for an application to explicitly tell the JDBC driver to refetch a row(s) from the database. An application may want to call refreshRow when caching or prefetching is being done by the JDBC driver to fetch the latest value of a row from the database. The JDBC driver may actually refresh multiple rows at once if the fetch size is greater than one.

All values are refetched subject to the transaction isolation level and cursor sensitivity. If refreshRow is called after calling an updater method, but before calling the method updateRow, then the updates made to the row are lost. Calling the method refreshRow frequently will likely slow performance.

Added in 1.2.

Java documentation for java.sql.ResultSet.refreshRow().

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