C# Class DBreeze.Transactions.TransactionsCoordinator

Show file Open project: hhblaze/DBreeze Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
GetTransactionUnit ( int transactionThreadId ) : TransactionUnit

Method Details

Commit() public method

public Commit ( int transactionThreadId ) : void
transactionThreadId int
return void

GetTable_READ() public method

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
return DBreeze.LianaTrie.LTrie

GetTable_WRITE() public method

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

GetTransaction() public method

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

RegisterWriteTablesForTransaction() public method

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
return void

Rollback() public method

public Rollback ( int transactionThreadId ) : void
transactionThreadId int
return void

StopEngine() public method

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

TransactionsCoordinator() public method

public TransactionsCoordinator ( DBreezeEngine engine ) : System
engine DBreeze.DBreezeEngine
return System

UnregisterAllTransactions() public method

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

UnregisterTransaction() public method

public UnregisterTransaction ( int transactionThreadId ) : void
transactionThreadId int
return void