#include <DbiStatement.h>
Collaboration diagram for DbiStatement:
Public Member Functions | |
DbiStatement (DbiConnection &conDb) | |
virtual | ~DbiStatement () |
Dbi::DbTypes | GetDBType () const |
Bool_t | PrintExceptions (Int_t level=3) const |
Print accumulated exceptions at supplied Log level, add them to the Global Exception Log if level >= kWarning and return true if there are any. | |
const DbiExceptionLog & | GetExceptionLog () const |
std::list< TString > | TestTranslateSQL (const TString &sql, Dbi::DbTypes type) |
Debugging of SQL translation. | |
TSQLStatement * | ExecuteQuery (const TString &sql="") |
Give caller a TSQLStatement of results (Process() and StoreResult() already performed.). | |
Bool_t | ExecuteUpdate (const TString &sql="") |
Apply an update and return success/fail. | |
Private Member Functions | |
void | AppendExceptionLog (DbiException *e) |
void | AppendExceptionLog (TSQLStatement *s) |
void | AppendExceptionLog (DbiConnection &c) |
void | ClearExceptionLog () |
TSQLStatement * | CreateProcessedStatement (const TString &sql="") |
std::list< TString > | TranslateSQL (const TString &sql) |
Private Attributes | |
DbiConnection & | fConDb |
Connection associated with this statement. | |
Dbi::DbTypes | fDbType |
Type of database (MySQL, Oracle). | |
DbiExceptionLog | fExceptionLog |
A log of reported exceptions. |
Definition at line 44 of file DbiStatement.h.
DbiStatement::DbiStatement | ( | DbiConnection & | conDb | ) |
virtual DbiStatement::~DbiStatement | ( | ) | [virtual] |
Dbi::DbTypes DbiStatement::GetDBType | ( | ) | const [inline] |
Bool_t DbiStatement::PrintExceptions | ( | Int_t | level = 3 |
) | const |
Print accumulated exceptions at supplied Log level, add them to the Global Exception Log if level >= kWarning and return true if there are any.
const DbiExceptionLog& DbiStatement::GetExceptionLog | ( | ) | const [inline] |
std::list<TString> DbiStatement::TestTranslateSQL | ( | const TString & | sql, | |
Dbi::DbTypes | type | |||
) |
Debugging of SQL translation.
TSQLStatement* DbiStatement::ExecuteQuery | ( | const TString & | sql = "" |
) |
Give caller a TSQLStatement of results (Process() and StoreResult() already performed.).
Bool_t DbiStatement::ExecuteUpdate | ( | const TString & | sql = "" |
) |
Apply an update and return success/fail.
void DbiStatement::AppendExceptionLog | ( | DbiException * | e | ) | [inline, private] |
void DbiStatement::AppendExceptionLog | ( | TSQLStatement * | s | ) | [inline, private] |
void DbiStatement::AppendExceptionLog | ( | DbiConnection & | c | ) | [inline, private] |
void DbiStatement::ClearExceptionLog | ( | ) | [inline, private] |
TSQLStatement* DbiStatement::CreateProcessedStatement | ( | const TString & | sql = "" |
) | [private] |
std::list<TString> DbiStatement::TranslateSQL | ( | const TString & | sql | ) | [private] |
DbiConnection& DbiStatement::fConDb [private] |
Dbi::DbTypes DbiStatement::fDbType [private] |
DbiExceptionLog DbiStatement::fExceptionLog [private] |
A log of reported exceptions.
Cleared by calling ExecuteQuery, ExecuteUpdate
Definition at line 99 of file DbiStatement.h.