Jazyk

IResultSet.Warnings Property

Definition

Gets the first warning generated by calls on this ResultSet.

public Java.Sql.SQLWarning? Warnings { [Android.Runtime.Register("getWarnings", "()Ljava/sql/SQLWarning;", "GetGetWarningsHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getWarnings", "()Ljava/sql/SQLWarning;", "GetGetWarningsHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.Warnings : Java.Sql.SQLWarning

Property Value

the first SQLWarning object reported or null if there are none

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the first warning reported by calls on this ResultSet object. Subsequent warnings on this ResultSet object will be chained to the SQLWarning object that this method returns. The warning chain is automatically cleared each time a new row is read. This method may not be called on a ResultSet object that has been closed; doing so will cause an SQLException to be thrown. Note: This warning chain only covers warnings caused by ResultSet methods. Any warning caused by Statement methods (such as reading OUT parameters) will be chained on the Statement object.

Java reference for java.sql.ResultSet.getWarnings.

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