TreeFrogFramework 2.10
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TDatabaseContext Class Reference

#include <tdatabasecontext.h>

Inheritance diagram for TDatabaseContext:
Inheritance graph
[legend]

Public Member Functions

 TDatabaseContext ()
 
virtual ~TDatabaseContext ()
 
QSqlDatabase & getSqlDatabase (int id=0)
 
TKvsDatabase & getKvsDatabase (Tf::KvsEngine engine)
 
void setTransactionEnabled (bool enable, int id=0)
 
void release ()
 
void commitTransactions ()
 
bool commitTransaction (int id=0)
 
void rollbackTransactions ()
 
bool rollbackTransaction (int id=0)
 
int idleTime () const
 
TCachecache ()
 

Static Public Member Functions

static TDatabaseContextcurrentDatabaseContext ()
 
static void setCurrentDatabaseContext (TDatabaseContext *context)
 

Protected Member Functions

void releaseKvsDatabases ()
 
void releaseSqlDatabases ()
 

Protected Attributes

QMap< int, TSqlTransaction > sqlDatabases
 
QMap< int, TKvsDatabase > kvsDatabases
 

Detailed Description

The TDatabaseContext class is the base class of contexts for database access.

Constructor & Destructor Documentation

◆ TDatabaseContext()

TDatabaseContext::TDatabaseContext ( )

◆ ~TDatabaseContext()

TDatabaseContext::~TDatabaseContext ( )
virtual

Member Function Documentation

◆ cache()

TCache * TDatabaseContext::cache ( )

◆ commitTransaction()

bool TDatabaseContext::commitTransaction ( int  id = 0)

◆ commitTransactions()

void TDatabaseContext::commitTransactions ( )

◆ currentDatabaseContext()

TDatabaseContext * TDatabaseContext::currentDatabaseContext ( )
static

◆ getKvsDatabase()

TKvsDatabase & TDatabaseContext::getKvsDatabase ( Tf::KvsEngine  engine)

◆ getSqlDatabase()

QSqlDatabase & TDatabaseContext::getSqlDatabase ( int  id = 0)

◆ idleTime()

int TDatabaseContext::idleTime ( ) const

◆ release()

void TDatabaseContext::release ( )

◆ releaseKvsDatabases()

void TDatabaseContext::releaseKvsDatabases ( )
protected

◆ releaseSqlDatabases()

void TDatabaseContext::releaseSqlDatabases ( )
protected

◆ rollbackTransaction()

bool TDatabaseContext::rollbackTransaction ( int  id = 0)

◆ rollbackTransactions()

void TDatabaseContext::rollbackTransactions ( )

◆ setCurrentDatabaseContext()

void TDatabaseContext::setCurrentDatabaseContext ( TDatabaseContext context)
static

◆ setTransactionEnabled()

void TDatabaseContext::setTransactionEnabled ( bool  enable,
int  id = 0 
)

Member Data Documentation

◆ kvsDatabases

QMap<int, TKvsDatabase> TDatabaseContext::kvsDatabases
protected

◆ sqlDatabases

QMap<int, TSqlTransaction> TDatabaseContext::sqlDatabases
protected

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