DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
The simplest implementation of a transaction. More...
Public Member Functions | |
void | Commit () |
Commits all write operation done during the lifetime of this transaction and invalidates it. More... | |
void | Rollback () |
Rollback any write operations done during the lifetime of this transaction and invalidates it. More... | |
void | RegisterOnCommit (Action< TableCommitInfo > action) |
void | UnregisterOnCommit (Action< TableCommitInfo > action) |
Properties | |
new ITransactionContext | Context [get] |
int | CommitId [get] |
Gets a number uniquely identifying a transaction within a database context. More... | |
IsolationLevel | Isolation [get] |
Gets the isolation level of the transaction. More... | |
IDatabase | Database [get] |
Gets the database this transaction belongs to. More... | |
TransactionRegistry | Registry [get] |
Properties inherited from Deveel.Data.Diagnostics.IEventSource | |
IContext | Context [get] |
IEventSource | ParentSource [get] |
Gets an optional parent source. More... | |
IEnumerable< KeyValuePair< string, object > > | Metadata [get] |
Gets the list of metadata associated to the source. More... | |
The simplest implementation of a transaction.
This contract allows implementors to define simple transactions that can be eventually forbid any data write operation.
Definition at line 30 of file ITransaction.cs.
void Deveel.Data.Transactions.ITransaction.Commit | ( | ) |
Commits all write operation done during the lifetime of this transaction and invalidates it.
When a transaction is disposed without explicitly calling Commit, all the operations are implicitly rolled-back.
Implemented in Deveel.Data.Transactions.Transaction.
void Deveel.Data.Transactions.ITransaction.RegisterOnCommit | ( | Action< TableCommitInfo > | action | ) |
Implemented in Deveel.Data.Transactions.Transaction.
void Deveel.Data.Transactions.ITransaction.Rollback | ( | ) |
Rollback any write operations done during the lifetime of this transaction and invalidates it.
When a transaction is disposed without explicitly calling Commit, all the operations are implicitly rolled-back.
Implemented in Deveel.Data.Transactions.Transaction.
void Deveel.Data.Transactions.ITransaction.UnregisterOnCommit | ( | Action< TableCommitInfo > | action | ) |
Implemented in Deveel.Data.Transactions.Transaction.
|
get |
Gets a number uniquely identifying a transaction within a database context.
Definition at line 37 of file ITransaction.cs.
|
get |
Definition at line 31 of file ITransaction.cs.
|
get |
Gets the database this transaction belongs to.
Definition at line 48 of file ITransaction.cs.
|
get |
Gets the isolation level of the transaction.
Definition at line 43 of file ITransaction.cs.
|
get |
Definition at line 56 of file ITransaction.cs.