C# 클래스 Castle.ActiveRecord.Scopes.TransactionScope

Implementation of ISessionScope to provide transaction semantics
상속: SessionScope
파일 보기 프로젝트 열기: shosca/ActiveRecord 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
FailScope ( ) : void

This is called when a session has a failure

Flush ( ) : void
GetSession ( object key ) : ISession
IsKeyKnown ( object key ) : bool

This method is invoked when the ISessionFactoryHolder instance needs a session instance. Instead of creating one it interrogates the active scope for one. The scope implementation must check if it has a session registered for the given key. RegisterSession

RegisterSession ( object key, ISession session ) : void
TransactionScope ( TransactionMode mode = TransactionMode.New, IsolationLevel isolation = IsolationLevel.Unspecified, OnDispose ondispose = OnDispose.Commit, ISessionScope parent = null, ISessionFactoryHolder holder = null, IThreadScopeInfo scopeinfo = null ) : System

Initializes a new instance of the TransactionScope class.

VoteCommit ( ) : void

Votes to commit the transaction

VoteRollBack ( ) : void

Votes to roll back the transaction

비공개 메소드들

메소드 설명
RaiseOnCompleted ( ) : void

Raises the on completed event

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FailScope() 공개 메소드

This is called when a session has a failure
public FailScope ( ) : void
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

GetSession() 공개 메소드

public GetSession ( object key ) : ISession
key object
리턴 ISession

IsKeyKnown() 공개 메소드

This method is invoked when the ISessionFactoryHolder instance needs a session instance. Instead of creating one it interrogates the active scope for one. The scope implementation must check if it has a session registered for the given key. RegisterSession
public IsKeyKnown ( object key ) : bool
key object an object instance
리턴 bool

RegisterSession() 공개 메소드

public RegisterSession ( object key, ISession session ) : void
key object
session ISession
리턴 void

TransactionScope() 공개 메소드

Initializes a new instance of the TransactionScope class.
public TransactionScope ( TransactionMode mode = TransactionMode.New, IsolationLevel isolation = IsolationLevel.Unspecified, OnDispose ondispose = OnDispose.Commit, ISessionScope parent = null, ISessionFactoryHolder holder = null, IThreadScopeInfo scopeinfo = null ) : System
mode TransactionMode
isolation IsolationLevel
ondispose OnDispose
parent ISessionScope
holder ISessionFactoryHolder
scopeinfo IThreadScopeInfo
리턴 System

VoteCommit() 공개 메소드

Votes to commit the transaction
public VoteCommit ( ) : void
리턴 void

VoteRollBack() 공개 메소드

Votes to roll back the transaction
public VoteRollBack ( ) : void
리턴 void