C# 클래스 Spring.Data.Support.AdoTransactionObjectSupport

Convenient base class for ADO.NET transaction aware objects.
Can contain a ConnectionHolder object.
상속: ISavepointManager, ISmartTransactionObject
파일 보기 프로젝트 열기: spring-projects/spring-net

보호된 프로퍼티들

프로퍼티 타입 설명
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