Public Member Functions | Protected Member Functions | Protected Attributes

ASql::Connection Class Reference

SQL Connection. More...

#include <asql.hpp>

Inheritance diagram for ASql::Connection:
ASql::ConnectionPar< T > ASql::ConnectionPar< MySQL::Statement > ASql::MySQL::Connection

List of all members.

Public Member Functions

int threads () const

Protected Member Functions

virtual void commit (const unsigned int thread=0)=0
virtual void rollback (const unsigned int thread=0)=0
 Connection (const int maxThreads_)

Protected Attributes

const int maxThreads
 Number of threads to pool for simultaneous queries.
boost::mutex threadsMutex
boost::condition_variable threadsChanged
int m_threads
boost::scoped_array
< boost::condition_variable > 
wakeUp
boost::mutex terminateMutex
bool terminateBool

Detailed Description

SQL Connection.

Definition at line 1140 of file asql.hpp.


Constructor & Destructor Documentation

ASql::Connection::Connection ( const int  maxThreads_ ) [inline, protected]

Reimplemented in ASql::MySQL::Connection.

Definition at line 1161 of file asql.hpp.


Member Function Documentation

virtual void ASql::Connection::commit ( const unsigned int  thread = 0 ) [protected, pure virtual]

Implemented in ASql::MySQL::Connection.

virtual void ASql::Connection::rollback ( const unsigned int  thread = 0 ) [protected, pure virtual]

Implemented in ASql::MySQL::Connection.

int ASql::Connection::threads (  ) const [inline]

Definition at line 1143 of file asql.hpp.

References maxThreads.

Referenced by ASql::MySQL::Connection::connect().


Member Data Documentation

int ASql::Connection::m_threads [protected]

Definition at line 1151 of file asql.hpp.

const int ASql::Connection::maxThreads [protected]

Number of threads to pool for simultaneous queries.

Definition at line 1148 of file asql.hpp.

Referenced by threads().

Definition at line 1159 of file asql.hpp.

boost::mutex ASql::Connection::terminateMutex [protected]

Definition at line 1158 of file asql.hpp.

boost::condition_variable ASql::Connection::threadsChanged [protected]

Definition at line 1150 of file asql.hpp.

boost::mutex ASql::Connection::threadsMutex [protected]

Definition at line 1149 of file asql.hpp.

boost::scoped_array<boost::condition_variable> ASql::Connection::wakeUp [protected]

Definition at line 1156 of file asql.hpp.


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