C# Class Spring.Data.Support.AdoTransactionObjectSupport

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

Protected Properties

Свойство Type Description
log ILog

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat void

ReleaseSavepoint() public méthode

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.
Résultat void

RollbackToSavepoint() public méthode

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.
Résultat void

Property Details

log protected_oe static_oe property

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