IConnection.Rollback Method

Definition

Overloads

Rollback(ISavepoint)

Undoes all changes made after the given Savepoint object was set.

Rollback()

Undoes all changes made in the current transaction and releases any database locks currently held by this Connection object.

Rollback(ISavepoint)

Undoes all changes made after the given Savepoint object was set.

[Android.Runtime.Register("rollback", "(Ljava/sql/Savepoint;)V", "GetRollback_Ljava_sql_Savepoint_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Rollback (Java.Sql.ISavepoint? savepoint);
[<Android.Runtime.Register("rollback", "(Ljava/sql/Savepoint;)V", "GetRollback_Ljava_sql_Savepoint_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Rollback : Java.Sql.ISavepoint -> unit

Parameters

savepoint
ISavepoint

the Savepoint object to roll back to

Attributes

Exceptions

if there is a problem accessing the database.

Remarks

Undoes all changes made after the given Savepoint object was set.

This method should be used only when auto-commit has been disabled.

Added in 1.4.

Java documentation for java.sql.Connection.rollback(java.sql.Savepoint).

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

Rollback()

Undoes all changes made in the current transaction and releases any database locks currently held by this Connection object.

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

Exceptions

if there is a problem with the database or if the method is called while in auto-commit mode of operation.

Remarks

Undoes all changes made in the current transaction 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.rollback().

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