A class that control the use of the connection to a PostgreSQL database. More...
#include <ScopedConnection.h>
Public Member Functions | |
Connection * | operator-> () const |
void | release () |
Release connection. More... | |
ScopedConnection (ConnectionPool *pool, int id=-1) | |
Constructor. More... | |
~ScopedConnection () | |
Destructor. More... | |
Protected Member Functions | |
ScopedConnection & | operator= (const ScopedConnection &) |
ScopedConnection (const ScopedConnection &) | |
Private Attributes | |
Connection * | m_connection |
An available connection that will be released when the scopedConnection is deleted. More... | |
ConnectionPool * | m_connectionPool |
The connection pool associated to the connection. More... | |
A class that control the use of the connection to a PostgreSQL database.
This class control the use of the connection and release the connection to the connectionPool.
Definition at line 48 of file ScopedConnection.h.
te::pgis::ScopedConnection::ScopedConnection | ( | ConnectionPool * | pool, |
int | id = -1 |
||
) |
Constructor.
te::pgis::ScopedConnection::~ScopedConnection | ( | ) |
Destructor.
|
protected |
Connection * te::pgis::ScopedConnection::operator-> | ( | ) | const |
Member access operator.
|
protected |
void te::pgis::ScopedConnection::release | ( | ) |
Release connection.
|
private |
An available connection that will be released when the scopedConnection is deleted.
Definition at line 72 of file ScopedConnection.h.
|
private |
The connection pool associated to the connection.
Definition at line 73 of file ScopedConnection.h.