C# 클래스 DBreeze.Transactions.TransactionUnit

This object includes class Transaction (visible for the user) and holds internally technical transaction information.
상속: IDisposable
파일 보기 프로젝트 열기: hhblaze/DBreeze 1 사용 예제들

공개 메소드들

메소드 설명
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