C# Class DBreeze.Transactions.TransactionsJournal

Inheritance: IDisposable
Show file Open project: hhblaze/DBreeze Class Usage Examples

Public Methods

Method Description
AddTableForTransaction ( ulong tranNumber, ITransactable table ) : void

Every table inside of the transaction before calling Transaction Commit, goes to this in-memory dictionary

Dispose ( ) : void
FinishTransaction ( ulong tranNumber ) : void

FinishTransaction

GetTransactionNumber ( ) : ulong

Returns new transaction number

RemoveTransactionFromDictionary ( ulong tranNumber ) : void

Used in case of failed transaction of multiple tables, to clean in-memory dictionary

TransactionsJournal ( DBreezeEngine DBreezeEngine ) : System

Private Methods

Method Description
Init ( ) : void
RestoreNotFinishedTransactions ( ) : void

Method Details

AddTableForTransaction() public method

Every table inside of the transaction before calling Transaction Commit, goes to this in-memory dictionary
public AddTableForTransaction ( ulong tranNumber, ITransactable table ) : void
tranNumber ulong
table ITransactable
return void

Dispose() public method

public Dispose ( ) : void
return void

FinishTransaction() public method

FinishTransaction
public FinishTransaction ( ulong tranNumber ) : void
tranNumber ulong
return void

GetTransactionNumber() public method

Returns new transaction number
public GetTransactionNumber ( ) : ulong
return ulong

RemoveTransactionFromDictionary() public method

Used in case of failed transaction of multiple tables, to clean in-memory dictionary
public RemoveTransactionFromDictionary ( ulong tranNumber ) : void
tranNumber ulong
return void

TransactionsJournal() public method

public TransactionsJournal ( DBreezeEngine DBreezeEngine ) : System
DBreezeEngine DBreeze.DBreezeEngine
return System