C# Class DBreeze.Transactions.TransactionUnit

This object includes class Transaction (visible for the user) and holds internally technical transaction information.
Inheritance: IDisposable
Afficher le fichier Open project: hhblaze/DBreeze Class Usage Examples

Méthodes publiques

Méthode Description
AddTransactionWriteTable ( string tableName, ITransactable table ) : void

Adds a table which will take place in transaction operations. Reserved has value null, Real (which are acquired by Transaction for Write) has ITransactable filled. ITransactable = null, gives to differ from toched and reserved.

AddTransactionWriteTablesAwaitingReservation ( List tablesNames ) : void

Used by TransactionCoordinator.RegisterWriteTablesForTransaction

ClearTransactionWriteTablesAwaitingReservation ( List tablesNames ) : void
Commit ( ) : void

Dispose ( ) : void
GetTransactionWriteTables ( ) : List

Doesn't need pattern check Returns all tables which took place in write operation for the current transaction Without reserved as Text tables only which have real ITransactable inside

GetTransactionWriteTablesAwaitingReservation ( ) : List
GetTransactionWriteTablesNames ( ) : List

NOT USED ANYWHERE Get ITransactable by tableName. Can return NULL, if table is not in a list of WRITE tables.

Returns only table names for reservation

If_TableIsReservedForWrite ( string tableName ) : bool

Used inside of Transaction, we can choose fot READ or READ_SYNCHRO for READ FUNCs

RollBack ( ) : void

TransactionUnit ( int transactionType, TransactionsCoordinator transactionsCoordinator, eTransactionTablesLockTypes lockType ) : System

Method Details

AddTransactionWriteTable() public méthode

Adds a table which will take place in transaction operations. Reserved has value null, Real (which are acquired by Transaction for Write) has ITransactable filled. ITransactable = null, gives to differ from toched and reserved.
public AddTransactionWriteTable ( string tableName, ITransactable table ) : void
tableName string
table ITransactable if null - will be added to Reservation table
Résultat void

AddTransactionWriteTablesAwaitingReservation() public méthode

Used by TransactionCoordinator.RegisterWriteTablesForTransaction
public AddTransactionWriteTablesAwaitingReservation ( List tablesNames ) : void
tablesNames List
Résultat void

ClearTransactionWriteTablesAwaitingReservation() public méthode

public ClearTransactionWriteTablesAwaitingReservation ( List tablesNames ) : void
tablesNames List
Résultat void

Commit() public méthode

public Commit ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetTransactionWriteTables() public méthode

Doesn't need pattern check Returns all tables which took place in write operation for the current transaction Without reserved as Text tables only which have real ITransactable inside
public GetTransactionWriteTables ( ) : List
Résultat List

GetTransactionWriteTablesAwaitingReservation() public méthode

public GetTransactionWriteTablesAwaitingReservation ( ) : List
Résultat List

GetTransactionWriteTablesNames() public méthode

NOT USED ANYWHERE Get ITransactable by tableName. Can return NULL, if table is not in a list of WRITE tables. Returns only table names for reservation
public GetTransactionWriteTablesNames ( ) : List
Résultat List

If_TableIsReservedForWrite() public méthode

Used inside of Transaction, we can choose fot READ or READ_SYNCHRO for READ FUNCs
public If_TableIsReservedForWrite ( string tableName ) : bool
tableName string
Résultat bool

RollBack() public méthode

public RollBack ( ) : void
Résultat void

TransactionUnit() public méthode

public TransactionUnit ( int transactionType, TransactionsCoordinator transactionsCoordinator, eTransactionTablesLockTypes lockType ) : System
transactionType int
transactionsCoordinator TransactionsCoordinator
lockType eTransactionTablesLockTypes
Résultat System