C# 클래스 com.Sconit.Persistence.SconitAdoTransaction

Wraps an ADO.NET IDbTransaction to implement the ITransaction interface.
상속: ITransaction
파일 보기 프로젝트 열기: Novthirteen/yfkey-scms

공개 프로퍼티들

프로퍼티 타입 설명
trans IDbTransaction

공개 메소드들

메소드 설명
Begin ( ) : void
Begin ( IsolationLevel isolationLevel ) : void

Begins the IDbTransaction on the IDbConnection used by the ISession.

Commit ( ) : void

Commits the ITransaction by flushing the ISession and committing the IDbTransaction.

Dispose ( ) : void

Takes care of freeing the managed and unmanaged resources that this class is responsible for.

Enlist ( IDbCommand command ) : void

Enlist the IDbCommand in the current ITransaction.

This takes care of making sure the IDbCommand's Transaction property contains the correct IDbTransaction or if there is no Transaction for the ISession - ie BeginTransaction() not called.

This method may be called even when the transaction is disposed.

Rollback ( ) : void

Rolls back the ITransaction by calling the method Rollback on the underlying IDbTransaction.

SconitAdoTransaction ( ISessionImplementor session ) : System

Initializes a new instance of the AdoTransaction class.

보호된 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void

Takes care of freeing the managed and unmanaged resources that this class is responsible for.

If this AdoTransaction is being Finalized (isDisposing==false) then make sure not to call any methods that could potentially bring this AdoTransaction back to life.

비공개 메소드들

메소드 설명
AfterTransactionCompletion ( bool successful ) : void
CheckBegun ( ) : void
CheckNotDisposed ( ) : void

메소드 상세

Begin() 공개 메소드

public Begin ( ) : void
리턴 void

Begin() 공개 메소드

Begins the IDbTransaction on the IDbConnection used by the ISession.
/// Thrown if there is any problems encountered while trying to create /// the . ///
public Begin ( IsolationLevel isolationLevel ) : void
isolationLevel IsolationLevel
리턴 void

Commit() 공개 메소드

Commits the ITransaction by flushing the ISession and committing the IDbTransaction.
/// Thrown if there is any exception while trying to call Commit() on /// the underlying . ///
public Commit ( ) : void
리턴 void

Dispose() 공개 메소드

Takes care of freeing the managed and unmanaged resources that this class is responsible for.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Takes care of freeing the managed and unmanaged resources that this class is responsible for.
If this AdoTransaction is being Finalized (isDisposing==false) then make sure not to call any methods that could potentially bring this AdoTransaction back to life.
protected Dispose ( bool isDisposing ) : void
isDisposing bool Indicates if this AdoTransaction is being Disposed of or Finalized.
리턴 void

Enlist() 공개 메소드

Enlist the IDbCommand in the current ITransaction.

This takes care of making sure the IDbCommand's Transaction property contains the correct IDbTransaction or if there is no Transaction for the ISession - ie BeginTransaction() not called.

This method may be called even when the transaction is disposed.

public Enlist ( IDbCommand command ) : void
command IDbCommand The to enlist in this Transaction.
리턴 void

Rollback() 공개 메소드

Rolls back the ITransaction by calling the method Rollback on the underlying IDbTransaction.
/// Thrown if there is any exception while trying to call Rollback() on /// the underlying . ///
public Rollback ( ) : void
리턴 void

SconitAdoTransaction() 공개 메소드

Initializes a new instance of the AdoTransaction class.
public SconitAdoTransaction ( ISessionImplementor session ) : System
session ISessionImplementor The the Transaction is for.
리턴 System

프로퍼티 상세

trans 공개적으로 프로퍼티

public IDbTransaction trans
리턴 IDbTransaction