Share via


IConnection.SetSavepoint Method

Definition

Overloads

SetSavepoint()

Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it.

SetSavepoint(String)

Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it.

SetSavepoint()

Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it.

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

Returns

the new Savepoint object

Attributes

Exceptions

if there is a problem accessing the database.

Remarks

Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it.

if setSavepoint is invoked outside of an active transaction, a transaction will be started at this newly created savepoint.

Added in 1.4.

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

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

SetSavepoint(String)

Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it.

[Android.Runtime.Register("setSavepoint", "(Ljava/lang/String;)Ljava/sql/Savepoint;", "GetSetSavepoint_Ljava_lang_String_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.ISavepoint? SetSavepoint (string? name);
[<Android.Runtime.Register("setSavepoint", "(Ljava/lang/String;)Ljava/sql/Savepoint;", "GetSetSavepoint_Ljava_lang_String_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetSavepoint : string -> Java.Sql.ISavepoint

Parameters

name
String

a String containing the name of the savepoint

Returns

the new Savepoint object

Attributes

Exceptions

if there is a problem accessing the database.

Remarks

Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it.

if setSavepoint is invoked outside of an active transaction, a transaction will be started at this newly created savepoint.

Added in 1.4.

Java documentation for java.sql.Connection.setSavepoint(java.lang.String).

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