C# Класс DBreeze.Transactions.TransactionUnit

This object includes class Transaction (visible for the user) and holds internally technical transaction information.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddTransactionWriteTable() публичный Метод

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
Результат void

AddTransactionWriteTablesAwaitingReservation() публичный Метод

Used by TransactionCoordinator.RegisterWriteTablesForTransaction
public AddTransactionWriteTablesAwaitingReservation ( List tablesNames ) : void
tablesNames List
Результат void

ClearTransactionWriteTablesAwaitingReservation() публичный Метод

public ClearTransactionWriteTablesAwaitingReservation ( List tablesNames ) : void
tablesNames List
Результат void

Commit() публичный Метод

public Commit ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetTransactionWriteTables() публичный Метод

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
Результат List

GetTransactionWriteTablesAwaitingReservation() публичный Метод

public GetTransactionWriteTablesAwaitingReservation ( ) : List
Результат List

GetTransactionWriteTablesNames() публичный Метод

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
Результат List

If_TableIsReservedForWrite() публичный Метод

Used inside of Transaction, we can choose fot READ or READ_SYNCHRO for READ FUNCs
public If_TableIsReservedForWrite ( string tableName ) : bool
tableName string
Результат bool

RollBack() публичный Метод

public RollBack ( ) : void
Результат void

TransactionUnit() публичный Метод

public TransactionUnit ( int transactionType, TransactionsCoordinator transactionsCoordinator, eTransactionTablesLockTypes lockType ) : System
transactionType int
transactionsCoordinator TransactionsCoordinator
lockType eTransactionTablesLockTypes
Результат System