C# Класс Spring.Data.Support.AdoTransactionObjectSupport

Convenient base class for ADO.NET transaction aware objects.
Can contain a ConnectionHolder object.
Наследование: ISavepointManager, ISmartTransactionObject
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
log ILog

Открытые методы

Метод Описание
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.

Описание методов

CreateSavepoint() публичный Метод

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. ///
Результат void

ReleaseSavepoint() публичный Метод

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.
Результат void

RollbackToSavepoint() публичный Метод

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.
Результат void

Описание свойств

log защищенное статическое свойство

The shared log instance for this class (and derived classes).
protected static ILog log
Результат ILog