Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTransactionObjectSupport.CreateSavepoint Method

Create a new savepoint.

[Visual Basic]
Public Overridable Sub CreateSavepoint( _
   ByVal savepointName As String _
) _
    Implements ISavepointManager.CreateSavepoint
[C#]
public virtual void CreateSavepoint(
   string savepointName
);

Parameters

savepointName
The name of the savepoint to create.

Return Value

A savepoint object, to be passed into RollbackToSavepoint or ReleaseSavepoint.

Implements

ISavepointManager.CreateSavepoint

Remarks

You can roll back to a specific savepoint via RollbackToSavepoint, and explicitly release a savepoint that you don't need anymore via ReleaseSavepoint.

Note that most transaction managers will automatically release savepoints at transaction completion.

Exceptions

Exception Type Condition
TransactionException If the savepoint could not be created, either because the backend does not support it or because the transaction is not in an appropriate state.

See Also

AdoTransactionObjectSupport Class | Spring.Data.Support Namespace