$treeview $search $mathjax
#include <trademgen/command/DBManager.hpp>
Static Public Member Functions | |
static void | updateAirlineInDB (stdair::DBSession_T &, const stdair::AirlineStruct &) |
static bool | retrieveAirline (stdair::DBSession_T &, const stdair::AirlineCode_T &, stdair::AirlineStruct &) |
static void | prepareSelectStatement (stdair::DBSession_T &, stdair::DBRequestStatement_T &, stdair::AirlineStruct &) |
static bool | iterateOnStatement (stdair::DBRequestStatement_T &, stdair::AirlineStruct &, const bool iShouldDoReset) |
Definition at line 20 of file DBManager.hpp.
void TRADEMGEN::DBManager::updateAirlineInDB | ( | stdair::DBSession_T & | , | |
const stdair::AirlineStruct & | ||||
) | [static] |
Update the fields of the database row corresponding to the given BOM object.
Definition at line 121 of file DBManager.cpp.
bool TRADEMGEN::DBManager::retrieveAirline | ( | stdair::DBSession_T & | , | |
const stdair::AirlineCode_T & | , | |||
stdair::AirlineStruct & | ||||
) | [static] |
Retrieve, from the (MySQL) database, the row corresponding to the given BOM code, and fill the given BOM object with that retrieved data.
Definition at line 157 of file DBManager.cpp.
References iterateOnStatement().
void TRADEMGEN::DBManager::prepareSelectStatement | ( | stdair::DBSession_T & | , | |
stdair::DBRequestStatement_T & | , | |||
stdair::AirlineStruct & | ||||
) | [static] |
Prepare (parse and put in cache) the SQL statement.
Definition at line 24 of file DBManager.cpp.
bool TRADEMGEN::DBManager::iterateOnStatement | ( | stdair::DBRequestStatement_T & | , | |
stdair::AirlineStruct & | , | |||
const bool | iShouldDoReset | |||
) | [static] |
Iterate on the SQL statement.
The SQL has to be already prepared. const bool Tells whether the Airline object should be reset.
Definition at line 97 of file DBManager.cpp.
Referenced by retrieveAirline().