DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | List of all members
Deveel.Data.Transactions.ITransaction Interface Reference

The simplest implementation of a transaction. More...

Inheritance diagram for Deveel.Data.Transactions.ITransaction:
Deveel.Data.Diagnostics.IEventSource Deveel.Data.Transactions.Transaction

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...
 

Detailed Description

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.

Member Function Documentation

void Deveel.Data.Transactions.ITransaction.Commit ( )

Commits all write operation done during the lifetime of this transaction and invalidates it.

See also
TransactionExtensions.ReadOnly(ITransaction), Rollback

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)
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.

See also
IDisposable.Dispose, Commit, TransactionExtensions.ReadOnly(Deveel.Data.Transactions.ITransaction)

Implemented in Deveel.Data.Transactions.Transaction.

void Deveel.Data.Transactions.ITransaction.UnregisterOnCommit ( Action< TableCommitInfo action)

Property Documentation

int Deveel.Data.Transactions.ITransaction.CommitId
get

Gets a number uniquely identifying a transaction within a database context.

See also
TransactionCollection

Definition at line 37 of file ITransaction.cs.

new ITransactionContext Deveel.Data.Transactions.ITransaction.Context
get

Definition at line 31 of file ITransaction.cs.

IDatabase Deveel.Data.Transactions.ITransaction.Database
get

Gets the database this transaction belongs to.

Definition at line 48 of file ITransaction.cs.

IsolationLevel Deveel.Data.Transactions.ITransaction.Isolation
get

Gets the isolation level of the transaction.

See also
IsolationLevel

Definition at line 43 of file ITransaction.cs.

TransactionRegistry Deveel.Data.Transactions.ITransaction.Registry
get

Definition at line 56 of file ITransaction.cs.


The documentation for this interface was generated from the following file: