#include <TePostgreSQLConnection.h>

Definition at line 43 of file TePostgreSQLConnection.h.
Access methods. | |
| Methods to access class private members. | |
| std::string | getDatabaseName () const |
| std::string | getDBMS () const |
| std::string | getHost () const |
| unsigned int | getId () const |
| std::string | getPassword () const |
| int | getPortNumber () const |
| std::string | getUser () const |
| void | setDatabaseName (const std::string &name) |
| void | setDBMS (const std::string &name) |
| void | setHost (const std::string &host) |
| void | setId (const unsigned int &id) |
| void | setPassword (const std::string &psw) |
| void | setPortNumber (const int &portNumber) |
| void | setUser (const std::string &user) |
Access methods. | |
| Methods to access class private members. | |
| TePGConnection * | getPGConnection () const |
| void | setPGConnection (TePGConnection *conn) |
Constructor | |
| Initializer methods. | |
| TePostgreSQLConnection () | |
| Default constructor. | |
| ~TePostgreSQLConnection () | |
| Destructor. | |
| std::string | database_ |
| Database name. | |
| std::string | dbmsName_ |
| DBMS name. | |
| std::string | host_ |
| Connections parameters. | |
| std::string | password_ |
| User password. | |
| int | portNumber_ |
| Port number. | |
| std::string | user_ |
| User name. | |
Protected Attributes | |
| unsigned int | id_ |
| Internal identify for the connection. | |
Private Attributes | |
| TePGConnection * | pgConnection_ |
| Internal pg connection interface. | |
| TePostgreSQLConnection::TePostgreSQLConnection | ( | ) |
Definition at line 4 of file TePostgreSQLConnection.cpp.
00004 : 00005 TeConnection(), 00006 pgConnection_(0) 00007 {}
| TePostgreSQLConnection::~TePostgreSQLConnection | ( | ) |
| std::string TeConnection::getDatabaseName | ( | ) | const [inherited] |
Definition at line 67 of file TeConnection.cpp.
References TeConnection::database_.
Referenced by TeDatabase::setConnection().
00068 { 00069 return database_; 00070 }
| std::string TeConnection::getDBMS | ( | ) | const [inherited] |
Definition at line 57 of file TeConnection.cpp.
References TeConnection::dbmsName_.
Referenced by TeDatabase::setConnection().
00058 { 00059 return dbmsName_; 00060 }
| std::string TeConnection::getHost | ( | ) | const [inherited] |
Definition at line 37 of file TeConnection.cpp.
References TeConnection::host_.
Referenced by TeDatabase::setConnection().
00038 { 00039 return host_; 00040 }
| unsigned int TeConnection::getId | ( | ) | const [inherited] |
Definition at line 17 of file TeConnection.cpp.
References TeConnection::id_.
Referenced by TeConnectionPool::releaseConnection().
00018 { 00019 return id_; 00020 }
| std::string TeConnection::getPassword | ( | ) | const [inherited] |
Definition at line 47 of file TeConnection.cpp.
References TeConnection::password_.
Referenced by TeDatabase::setConnection().
00048 { 00049 return password_; 00050 }
| TePGConnection * TePostgreSQLConnection::getPGConnection | ( | ) | const |
Definition at line 17 of file TePostgreSQLConnection.cpp.
References pgConnection_.
Referenced by TePostgreSQL::setConnection().
00018 { 00019 return pgConnection_; 00020 }
| int TeConnection::getPortNumber | ( | ) | const [inherited] |
Definition at line 77 of file TeConnection.cpp.
References TeConnection::portNumber_.
Referenced by TeDatabase::setConnection().
00078 { 00079 return portNumber_; 00080 }
| std::string TeConnection::getUser | ( | ) | const [inherited] |
Definition at line 27 of file TeConnection.cpp.
References TeConnection::user_.
Referenced by TeDatabase::setConnection().
00028 { 00029 return user_; 00030 }
| void TeConnection::setDatabaseName | ( | const std::string & | name | ) | [inherited] |
Definition at line 72 of file TeConnection.cpp.
References TeConnection::database_.
Referenced by TePostgreSQL::getConnection(), and TeFirebird::getConnection().
| void TeConnection::setDBMS | ( | const std::string & | name | ) | [inherited] |
Definition at line 62 of file TeConnection.cpp.
References TeConnection::dbmsName_.
Referenced by TePostgreSQL::getConnection(), and TeFirebird::getConnection().
| void TeConnection::setHost | ( | const std::string & | host | ) | [inherited] |
Definition at line 42 of file TeConnection.cpp.
References TeConnection::host_.
Referenced by TePostgreSQL::getConnection(), and TeFirebird::getConnection().
00043 { 00044 host_ = host; 00045 }
| void TeConnection::setId | ( | const unsigned int & | id | ) | [inherited] |
Definition at line 22 of file TeConnection.cpp.
References TeConnection::id_.
Referenced by TeConnectionPool::getFreeConnection().
| void TeConnection::setPassword | ( | const std::string & | psw | ) | [inherited] |
Definition at line 52 of file TeConnection.cpp.
References TeConnection::password_.
Referenced by TePostgreSQL::getConnection(), and TeFirebird::getConnection().
00053 { 00054 password_ = psw; 00055 }
| void TePostgreSQLConnection::setPGConnection | ( | TePGConnection * | conn | ) |
Definition at line 12 of file TePostgreSQLConnection.cpp.
References pgConnection_.
Referenced by TePostgreSQL::getConnection().
00013 { 00014 pgConnection_ = conn; 00015 }
| void TeConnection::setPortNumber | ( | const int & | portNumber | ) | [inherited] |
Definition at line 82 of file TeConnection.cpp.
References TeConnection::portNumber_.
Referenced by TePostgreSQL::getConnection(), and TeFirebird::getConnection().
00083 { 00084 portNumber_ = portNumber; 00085 }
| void TeConnection::setUser | ( | const std::string & | user | ) | [inherited] |
Definition at line 32 of file TeConnection.cpp.
References TeConnection::user_.
Referenced by TePostgreSQL::getConnection(), and TeFirebird::getConnection().
00033 { 00034 user_ = user; 00035 }
std::string TeConnection::database_ [protected, inherited] |
Definition at line 95 of file TeConnection.h.
Referenced by TeConnection::getDatabaseName(), and TeConnection::setDatabaseName().
std::string TeConnection::dbmsName_ [protected, inherited] |
Definition at line 96 of file TeConnection.h.
Referenced by TeConnection::getDBMS(), and TeConnection::setDBMS().
std::string TeConnection::host_ [protected, inherited] |
Host name of the database server
Definition at line 92 of file TeConnection.h.
Referenced by TeConnection::getHost(), and TeConnection::setHost().
unsigned int TeConnection::id_ [protected, inherited] |
Definition at line 87 of file TeConnection.h.
Referenced by TeConnection::getId(), and TeConnection::setId().
std::string TeConnection::password_ [protected, inherited] |
Definition at line 94 of file TeConnection.h.
Referenced by TeConnection::getPassword(), and TeConnection::setPassword().
Definition at line 73 of file TePostgreSQLConnection.h.
Referenced by getPGConnection(), and setPGConnection().
int TeConnection::portNumber_ [protected, inherited] |
Definition at line 97 of file TeConnection.h.
Referenced by TeConnection::getPortNumber(), and TeConnection::setPortNumber().
std::string TeConnection::user_ [protected, inherited] |
Definition at line 93 of file TeConnection.h.
Referenced by TeConnection::getUser(), and TeConnection::setUser().
1.5.3