#include <Connection.h>
Public Methods | |
void | DeleteAllQuery () |
DOQuery* | GetFirstQuery () const |
DOQuery* | GetLastQuery () const |
DOQuery* | GetNextQuery (DOQuery *pos) const |
DOQuery* | GetPrevQuery (DOQuery *pos) const |
int | GetQueryCount () const |
void | MoveQueryFirst (DOQuery *item) |
void | MoveQueryLast (DOQuery *item) |
void | MoveQueryAfter (DOQuery *item, DOQuery *pos) |
void | MoveQueryBefore (DOQuery *item, DOQuery *pos) |
void | SortQuery (int(*comp)(DOQuery *, DOQuery *)) |
DOConnection () | |
Constructor method. More... | |
virtual | ~DOConnection () |
Destructor method. More... | |
virtual void | Connect () |
Establish the connection to the Database Server. More... | |
MYSQL* | GetHdl () |
Return the handle to the Database Server connection. More... | |
Public Attributes | |
DOQuery* | _firstQuery |
DOQuery* | _lastQuery |
int | _countQuery |
CString | m_hostname |
CString | m_password |
CString | m_username |
CString | m_database |
Protected Methods | |
void | AddQueryFirst (DOQuery *item) |
void | AddQueryLast (DOQuery *item) |
void | AddQueryAfter (DOQuery *item, DOQuery *pos) |
void | AddQueryBefore (DOQuery *item, DOQuery *pos) |
void | RemoveQuery (DOQuery *item) |
void | ReplaceQuery (DOQuery *item, DOQuery *newItem) |
Private Methods | |
void | ConstructorInclude () |
Method which must be called first in a constructor. More... | |
void | DestructorInclude () |
Method which must be called first in a destructor. More... | |
Private Attributes | |
MYSQL | m_handle |
Definition at line 85 of file Connection.h.
|
Constructor method.
Definition at line 101 of file Connection.cpp. |
|
Destructor method.
Definition at line 117 of file Connection.cpp. |
|
Definition at line 218 of file Connection.cpp. Referenced by MoveQueryAfter(). |
|
Definition at line 242 of file Connection.cpp. Referenced by MoveQueryBefore(). |
|
Definition at line 174 of file Connection.cpp. Referenced by MoveQueryFirst(). |
|
Definition at line 196 of file Connection.cpp. Referenced by MoveQueryLast(). |
|
Establish the connection to the Database Server.
Definition at line 128 of file Connection.cpp. |
|
Method which must be called first in a constructor.
Definition at line 151 of file Connection.cpp. |
|
Definition at line 293 of file Connection.cpp. |
|
Method which must be called first in a destructor.
Definition at line 164 of file Connection.cpp. Referenced by ~DOConnection(). |
|
Definition at line 334 of file Connection.cpp. Referenced by DeleteAllQuery(), DestructorInclude(), and DOConnection::QueryIterator::IsFirst(). |
|
Return the handle to the Database Server connection.
Definition at line 140 of file Connection.cpp. |
|
Definition at line 341 of file Connection.cpp. Referenced by DOConnection::QueryIterator::IsLast(). |
|
Definition at line 348 of file Connection.cpp. Referenced by DOConnection::QueryIterator::Check(), and DOConnection::QueryIterator::operator++(). |
|
Definition at line 362 of file Connection.cpp. Referenced by DOConnection::QueryIterator::Check(), and DOConnection::QueryIterator::operator--(). |
|
Definition at line 376 of file Connection.cpp. |
|
Definition at line 401 of file Connection.cpp. |
|
Definition at line 410 of file Connection.cpp. |
|
Definition at line 383 of file Connection.cpp. |
|
Definition at line 392 of file Connection.cpp. |
|
Definition at line 266 of file Connection.cpp. Referenced by MoveQueryAfter(), MoveQueryBefore(), MoveQueryFirst(), and MoveQueryLast(). |
|
Definition at line 302 of file Connection.cpp. |
|
Definition at line 419 of file Connection.cpp. |
|
Definition at line 91 of file Connection.h. |
|
Definition at line 89 of file Connection.h. |
|
Definition at line 90 of file Connection.h. |
|
Definition at line 197 of file Connection.h. |
|
Definition at line 189 of file Connection.h. |
|
Definition at line 194 of file Connection.h. |
|
Definition at line 195 of file Connection.h. |
|
Definition at line 196 of file Connection.h. |