#include <Query.h>
Inheritance diagram for DOQuery:
Public Methods | |
void | DeleteAllQueryField () |
DOQueryField* | GetFirstQueryField () const |
DOQueryField* | GetLastQueryField () const |
DOQueryField* | GetNextQueryField (DOQueryField *pos) const |
DOQueryField* | GetPrevQueryField (DOQueryField *pos) const |
int | GetQueryFieldCount () const |
void | MoveQueryFieldFirst (DOQueryField *item) |
void | MoveQueryFieldLast (DOQueryField *item) |
void | MoveQueryFieldAfter (DOQueryField *item, DOQueryField *pos) |
void | MoveQueryFieldBefore (DOQueryField *item, DOQueryField *pos) |
void | SortQueryField (int(*comp)(DOQueryField *, DOQueryField *)) |
DOConnection* | GetConnection () const |
DOQuery (DOConnection *pConnection) | |
Constructor method. More... | |
virtual | ~DOQuery () |
Destructor method. More... | |
bool | Fetch () |
Fetch the next row from the query result, if any. More... | |
DOQueryField* | FindQueryField (unsigned int number) |
DOQueryField* | FindQueryField (const char *fldName) |
Find a field by the field name. More... | |
unsigned int | GetNumFields () |
Return the number of fields in the query result. More... | |
unsigned int | GetNumRows () |
return the number of rows in the query result. More... | |
bool | Query (const char *pszSQL) |
initiate a (new) query to the database server. More... | |
void | Seek (unsigned int rownum) |
select a row by number. More... | |
MYSQL_ROW | GetRow () |
Returns the value of member 'm_row'. More... | |
Public Attributes | |
DOQueryField* | _firstQueryField |
DOQueryField* | _lastQueryField |
int | _countQueryField |
DOConnection* | _refConnection |
DOQuery* | _prevConnection |
DOQuery* | _nextConnection |
Protected Methods | |
void | AddQueryFieldFirst (DOQueryField *item) |
void | AddQueryFieldLast (DOQueryField *item) |
void | AddQueryFieldAfter (DOQueryField *item, DOQueryField *pos) |
void | AddQueryFieldBefore (DOQueryField *item, DOQueryField *pos) |
void | RemoveQueryField (DOQueryField *item) |
void | ReplaceQueryField (DOQueryField *item, DOQueryField *newItem) |
Protected Attributes | |
CString | m_query |
Private Methods | |
void | ConstructorInclude (DOConnection *pConnection) |
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_RES* | m_pRes |
MYSQL_ROW | m_row |
Definition at line 81 of file Query.h.
|
Constructor method.
|
|
Destructor method.
|
|
Definition at line 305 of file Query.cpp. Referenced by MoveQueryFieldAfter(). |
|
Definition at line 329 of file Query.cpp. Referenced by MoveQueryFieldBefore(). |
|
Definition at line 261 of file Query.cpp. Referenced by MoveQueryFieldFirst(). |
|
Definition at line 283 of file Query.cpp. Referenced by MoveQueryFieldLast(). |
|
Method which must be called first in a constructor.
|
|
Definition at line 380 of file Query.cpp. Referenced by Query(). |
|
Method which must be called first in a destructor.
Reimplemented in DOSnapshot. Definition at line 228 of file Query.cpp. Referenced by ~DOQuery(). |
|
Fetch the next row from the query result, if any.
|
|
Find a field by the field name.
|
|
Definition at line 120 of file Query.cpp. Referenced by IRPlus::InsertIRFieldRecord(), DOSnapshot::Let(), IRPlus::newMeth(), and IRPlus::newParam(). |
|
Definition at line 187 of file Query.h. Referenced by DOSnapshot::CommitAdd(), DOSnapshot::CommitEdit(), and Query(). |
|
Definition at line 421 of file Query.cpp. Referenced by DeleteAllQueryField(), DestructorInclude(), and DOQuery::QueryFieldIterator::IsFirst(). |
|
Definition at line 428 of file Query.cpp. Referenced by DOQuery::QueryFieldIterator::IsLast(). |
|
Definition at line 435 of file Query.cpp. Referenced by DOQuery::QueryFieldIterator::Check(), and DOQuery::QueryFieldIterator::operator++(). |
|
Return the number of fields in the query result.
Definition at line 232 of file Query.h. Referenced by DOSnapshot::AddNew(), DOSnapshot::Edit(), DOSnapshot::Let(), Query(), and DOSnapshot::~DOSnapshot(). |
|
return the number of rows in the query result.
Definition at line 246 of file Query.h. Referenced by DOSnapshot::CommitEdit(), IRPlus::InsertIRFieldRecord(), IRPlus::newMeth(), and IRPlus::newParam(). |
|
Definition at line 449 of file Query.cpp. Referenced by DOQuery::QueryFieldIterator::Check(), and DOQuery::QueryFieldIterator::operator--(). |
|
|
|
Returns the value of member 'm_row'.
Definition at line 273 of file Query.h. Referenced by DOQueryField::GetValue(), and DOQueryField::isNull(). |
|
|
|
|
|
|
|
|
|
initiate a (new) query to the database server. Performs the query and retrieves the result, if any. Note that some queries do not return a result (e.g. insert, update). If there is a result the first row is fetched as well. Definition at line 161 of file Query.cpp. Referenced by DOSnapshot::CommitAdd(), DOSnapshot::CommitEdit(), IRPlus::InsertIRFieldRecord(), IRPlus::createTables(), IRPlus::newMeth(), and IRPlus::newParam(). |
|
Definition at line 353 of file Query.cpp. Referenced by MoveQueryFieldAfter(), MoveQueryFieldBefore(), MoveQueryFieldFirst(), and MoveQueryFieldLast(). |
|
|
|
select a row by number.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|