Jazyk

IStatement.GeneratedKeys Property

Definition

Returns auto generated keys created by executing this statement.

public Java.Sql.IResultSet? GeneratedKeys { [Android.Runtime.Register("getGeneratedKeys", "()Ljava/sql/ResultSet;", "GetGetGeneratedKeysHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getGeneratedKeys", "()Ljava/sql/ResultSet;", "GetGetGeneratedKeysHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.GeneratedKeys : Java.Sql.IResultSet

Property Value

a ResultSet object containing the auto-generated key(s) generated by the execution of this Statement object

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Retrieves any auto-generated keys created as a result of executing this Statement object. If this Statement object did not generate any keys, an empty ResultSet object is returned. Note:If the columns which represent the auto-generated keys were not specified, the JDBC driver implementation will determine the columns which best represent the auto-generated keys.

Java reference for java.sql.Statement.getGeneratedKeys.

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