C# 클래스 DBreeze.Transactions.TransactionsCoordinator

파일 보기 프로젝트 열기: hhblaze/DBreeze 1 사용 예제들

공개 메소드들

메소드 설명
Commit ( int transactionThreadId ) : void
GetTable_READ ( string tableName, int transactionThreadId ) : LTrie

Can return NULL if table doesn't exist Can return NULL (if DbIsNotOperatable) Differs from GetTable_Write: 1. table is not registered for Write; 2. Table is not created, if doesn't exist.

GetTable_WRITE ( string tableName, int transactionThreadId ) : LTrie

Can return NULL (if DbIsNotOperatable)

GetTransaction ( int transactionType, eTransactionTablesLockTypes lockType ) : Transaction

RegisterWriteTablesForTransaction ( int transactionThreadId, List tablesNames, bool calledBySynchronizer ) : void

Access synchronizer. All calls of the WRITE LOCATOR come over this function.

Rollback ( int transactionThreadId ) : void
StopEngine ( ) : void

Normal Engine Stop, usually in case of Main Thread or DLL disposing

TransactionsCoordinator ( DBreezeEngine engine ) : System
UnregisterAllTransactions ( ) : void

Is called by the engine on Dispose.

UnregisterTransaction ( int transactionThreadId ) : void

비공개 메소드들

메소드 설명
GetTransactionUnit ( int transactionThreadId ) : TransactionUnit

메소드 상세

Commit() 공개 메소드

public Commit ( int transactionThreadId ) : void
transactionThreadId int
리턴 void

GetTable_READ() 공개 메소드

Can return NULL if table doesn't exist Can return NULL (if DbIsNotOperatable) Differs from GetTable_Write: 1. table is not registered for Write; 2. Table is not created, if doesn't exist.
public GetTable_READ ( string tableName, int transactionThreadId ) : LTrie
tableName string
transactionThreadId int
리턴 DBreeze.LianaTrie.LTrie

GetTable_WRITE() 공개 메소드

Can return NULL (if DbIsNotOperatable)
public GetTable_WRITE ( string tableName, int transactionThreadId ) : LTrie
tableName string
transactionThreadId int
리턴 DBreeze.LianaTrie.LTrie

GetTransaction() 공개 메소드

public GetTransaction ( int transactionType, eTransactionTablesLockTypes lockType ) : Transaction
transactionType int 0 = standard transaction, 1 - locked transaction
lockType eTransactionTablesLockTypes
리턴 Transaction

RegisterWriteTablesForTransaction() 공개 메소드

Access synchronizer. All calls of the WRITE LOCATOR come over this function.
public RegisterWriteTablesForTransaction ( int transactionThreadId, List tablesNames, bool calledBySynchronizer ) : void
transactionThreadId int
tablesNames List
calledBySynchronizer bool
리턴 void

Rollback() 공개 메소드

public Rollback ( int transactionThreadId ) : void
transactionThreadId int
리턴 void

StopEngine() 공개 메소드

Normal Engine Stop, usually in case of Main Thread or DLL disposing
public StopEngine ( ) : void
리턴 void

TransactionsCoordinator() 공개 메소드

public TransactionsCoordinator ( DBreezeEngine engine ) : System
engine DBreeze.DBreezeEngine
리턴 System

UnregisterAllTransactions() 공개 메소드

Is called by the engine on Dispose.
public UnregisterAllTransactions ( ) : void
리턴 void

UnregisterTransaction() 공개 메소드

public UnregisterTransaction ( int transactionThreadId ) : void
transactionThreadId int
리턴 void