IConnection.Commit Method

Definition

Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by this Connection object.

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

Exceptions

if there is a problem accessing the database or if the target connection instance is in auto-commit mode.

Remarks

Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by this Connection object. This method should be used only when auto-commit mode has been disabled.

Java documentation for java.sql.Connection.commit().

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