DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Private Attributes | List of all members
Deveel.Data.Database.DatabaseTransactionFactory Class Reference
Inheritance diagram for Deveel.Data.Database.DatabaseTransactionFactory:
Deveel.Data.Transactions.ITransactionFactory

Public Member Functions

 DatabaseTransactionFactory (Database database)
 
ITransaction CreateTransaction (IsolationLevel isolation)
 Creates a new the transaction with the isolation specified. More...
 

Properties

TransactionCollection OpenTransactions [get, private set]
 
- Properties inherited from Deveel.Data.Transactions.ITransactionFactory
TransactionCollection OpenTransactions [get]
 Gets the collection of currently open transactions. More...
 

Private Attributes

readonly Database database
 

Detailed Description

Definition at line 402 of file Database.cs.

Constructor & Destructor Documentation

Deveel.Data.Database.DatabaseTransactionFactory.DatabaseTransactionFactory ( Database  database)
inline

Member Function Documentation

ITransaction Deveel.Data.Database.DatabaseTransactionFactory.CreateTransaction ( IsolationLevel  isolation)
inline

Creates a new the transaction with the isolation specified.

Parameters
isolationThe transaction isolation level.
Returns
Returns an instance of ITransaction that holds the the access to the underlying data system according to the isolation level provided.

Implements Deveel.Data.Transactions.ITransactionFactory.

Definition at line 412 of file Database.cs.

412  {
413  lock (this) {
414  ITransaction transaction;
415 
416  try {
417  transaction = database.TableComposite.CreateTransaction(isolation);
418  } catch (DatabaseSystemException) {
419  throw;
420  } catch (Exception ex) {
421  throw new DatabaseSystemException("Unable to create a transaction.", ex);
422  }
423 
424  return transaction;
425  }
426  }
ITransaction CreateTransaction(IsolationLevel isolation)
TableSourceComposite TableComposite
Definition: Database.cs:192
The simplest implementation of a transaction.
Definition: ITransaction.cs:30

Member Data Documentation

readonly Database Deveel.Data.Database.DatabaseTransactionFactory.database
private

Definition at line 403 of file Database.cs.

Property Documentation

TransactionCollection Deveel.Data.Database.DatabaseTransactionFactory.OpenTransactions
getprivate set

Definition at line 410 of file Database.cs.


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