C# Class Spring.Data.Support.AdoTransactionObjectSupport

Convenient base class for ADO.NET transaction aware objects.
Can contain a ConnectionHolder object.
Inheritance: ISavepointManager, ISmartTransactionObject
Mostrar archivo Open project: spring-projects/spring-net

Protected Properties

Property Type Description
log ILog

Public Methods

Method Description
CreateSavepoint ( string savepointName ) : void

Create a new savepoint.

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

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

ReleaseSavepoint ( string savepoint ) : void

Explicitly release the given savepoint.

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

Implementations should fail as silently as possible if proper resource cleanup will still happen at transaction completion.

RollbackToSavepoint ( string savepoint ) : void

Roll back to the given savepoint.

The savepoint will be automatically released afterwards.

Method Details

CreateSavepoint() public method

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

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

/// 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. ///
public CreateSavepoint ( string savepointName ) : void
savepointName string /// The name of the savepoint to create. ///
return void

ReleaseSavepoint() public method

Explicitly release the given savepoint.

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

Implementations should fail as silently as possible if proper resource cleanup will still happen at transaction completion.

/// If the release failed. ///
public ReleaseSavepoint ( string savepoint ) : void
savepoint string The savepoint to release.
return void

RollbackToSavepoint() public method

Roll back to the given savepoint.
The savepoint will be automatically released afterwards.
/// If the rollback failed. ///
public RollbackToSavepoint ( string savepoint ) : void
savepoint string The savepoint to roll back to.
return void

Property Details

log protected_oe static_oe property

The shared log instance for this class (and derived classes).
protected static ILog log
return ILog