|
Pol
Rev 533
|
#include <sqlscrobj.h>
Inheritance diagram for BSQLConnection:
Collaboration diagram for BSQLConnection:Public Member Functions | |
| BSQLConnection () | |
| BSQLConnection (std::string host, std::string user, std::string password) | |
| ~BSQLConnection () | |
| virtual BObjectImp * | call_method (const char *methodname, Executor &ex) |
| virtual BObjectImp * | call_method_id (const int id, Executor &ex, bool forcebuiltin=false) |
| bool | close () |
| bool | connect (const char *host, const char *user, const char *passwd) |
| virtual BObjectImp * | copy () const |
| virtual BObjectRef | get_member (const char *membername) |
| virtual BObjectRef | get_member_id (const int id) |
| int | getLastErrNo () const |
| std::string | getLastError () const |
| BObjectImp * | getResultSet () const |
| virtual std::string | getStringRep () const |
| virtual bool | isTrue () const |
| bool | query (const char *query) |
| bool | select_db (const char *db) |
| virtual size_t | sizeEstimate () const |
| virtual const char * | typeOf () const |
| virtual int | typeOfInt () const |
Private Attributes | |
| MYSQL * | _conn |
| int | _errno |
| std::string | _error |
Definition at line 86 of file sqlscrobj.h.
| BSQLConnection::BSQLConnection | ( | std::string | host, |
| std::string | user, | ||
| std::string | password | ||
| ) |
Definition at line 161 of file sqlscrobj.cpp.
Definition at line 165 of file sqlscrobj.cpp.
References _conn.
| BObjectImp * BSQLConnection::call_method | ( | const char * | methodname, |
| Executor & | ex | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 241 of file sqlscrobj.cpp.
References call_method_id(), getKnownObjMethod(), and ObjMethod::id.
Here is the call graph for this function:| BObjectImp * BSQLConnection::call_method_id | ( | const int | id, |
| Executor & | ex, | ||
| bool | forcebuiltin = false |
||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 250 of file sqlscrobj.cpp.
Referenced by call_method().
Here is the caller graph for this function:| bool BSQLConnection::close | ( | void | ) |
Definition at line 121 of file sqlscrobj.cpp.
References _conn.
Referenced by SQLExecutorModule::mf_Close().
Here is the caller graph for this function:| bool BSQLConnection::connect | ( | const char * | host, |
| const char * | user, | ||
| const char * | passwd | ||
| ) |
Definition at line 176 of file sqlscrobj.cpp.
References _conn, _errno, and _error.
Referenced by SQLExecutorModule::mf_ConnectToDB().
Here is the caller graph for this function:| BObjectImp * BSQLConnection::copy | ( | void | ) | const [virtual] |
Implements BObjectImp.
Definition at line 255 of file sqlscrobj.cpp.
References BSQLConnection().
Here is the call graph for this function:| BObjectRef BSQLConnection::get_member | ( | const char * | membername | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 232 of file sqlscrobj.cpp.
References UninitObject::create(), get_member_id(), getKnownObjMember(), and ObjMember::id.
Here is the call graph for this function:| BObjectRef BSQLConnection::get_member_id | ( | const int | id | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 223 of file sqlscrobj.cpp.
References UninitObject::create().
Referenced by get_member().
Here is the call graph for this function:
Here is the caller graph for this function:| int BSQLConnection::getLastErrNo | ( | ) | const [inline] |
Definition at line 99 of file sqlscrobj.h.
References _errno.
Referenced by SQLExecutorModule::mf_ConnectToDB().
Here is the caller graph for this function:| std::string BSQLConnection::getLastError | ( | ) | const [inline] |
Definition at line 98 of file sqlscrobj.h.
References _error.
Referenced by SQLExecutorModule::mf_ConnectToDB(), SQLExecutorModule::mf_Query(), and SQLExecutorModule::mf_SelectDb().
Here is the caller graph for this function:| BObjectImp * BSQLConnection::getResultSet | ( | ) | const |
Definition at line 127 of file sqlscrobj.cpp.
References _conn, _errno, and _error.
Referenced by SQLExecutorModule::mf_Query().
Here is the caller graph for this function:| std::string BSQLConnection::getStringRep | ( | ) | const [virtual] |
Implements BObjectImp.
Definition at line 170 of file sqlscrobj.cpp.
| bool BSQLConnection::isTrue | ( | void | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 173 of file sqlscrobj.cpp.
| bool BSQLConnection::query | ( | const char * | query | ) |
Definition at line 205 of file sqlscrobj.cpp.
References _conn, _errno, and _error.
Referenced by SQLExecutorModule::mf_Query().
Here is the caller graph for this function:| bool BSQLConnection::select_db | ( | const char * | db | ) |
Definition at line 191 of file sqlscrobj.cpp.
References _conn, _errno, and _error.
Referenced by SQLExecutorModule::mf_SelectDb().
Here is the caller graph for this function:| virtual size_t BSQLConnection::sizeEstimate | ( | ) | const [inline, virtual] |
Implements BObjectImp.
Definition at line 107 of file sqlscrobj.h.
| virtual const char* BSQLConnection::typeOf | ( | ) | const [inline, virtual] |
Reimplemented from BObjectImp.
Definition at line 108 of file sqlscrobj.h.
| virtual int BSQLConnection::typeOfInt | ( | ) | const [inline, virtual] |
Reimplemented from BObjectImp.
Definition at line 109 of file sqlscrobj.h.
References BObjectImp::OTSQLConnection.
MYSQL* BSQLConnection::_conn [private] |
Definition at line 115 of file sqlscrobj.h.
Referenced by BSQLConnection(), close(), connect(), getResultSet(), query(), select_db(), and ~BSQLConnection().
int BSQLConnection::_errno [private] |
Definition at line 116 of file sqlscrobj.h.
Referenced by BSQLConnection(), connect(), getLastErrNo(), getResultSet(), query(), and select_db().
std::string BSQLConnection::_error [private] |
Definition at line 117 of file sqlscrobj.h.
Referenced by BSQLConnection(), connect(), getLastError(), getResultSet(), query(), and select_db().