| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DbiStatement Class Reference

Id
DbiStatement.h,v 1.14 2007/04/26 14:19:57 west Exp
More...

#include <DbiStatement.h>

Collaboration diagram for DbiStatement:

[legend]
List of all members.

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 DbiExceptionLogGetExceptionLog () 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

DbiConnectionfConDb
 Connection associated with this statement.
Dbi::DbTypes fDbType
 Type of database (MySQL, Oracle).
DbiExceptionLog fExceptionLog
 A log of reported exceptions.

Detailed Description

Id
DbiStatement.h,v 1.14 2007/04/26 14:19:57 west Exp

Definition at line 44 of file DbiStatement.h.


Constructor & Destructor Documentation

DbiStatement::DbiStatement ( DbiConnection conDb  ) 

virtual DbiStatement::~DbiStatement (  )  [virtual]


Member Function Documentation

Dbi::DbTypes DbiStatement::GetDBType (  )  const [inline]

Definition at line 55 of file DbiStatement.h.

00055 { return fDbType; } 

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]

Definition at line 64 of file DbiStatement.h.

00064 { return fExceptionLog; }

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]

Definition at line 81 of file DbiStatement.h.

00081 { if ( e ) fExceptionLog.AddEntry(*e); }

void DbiStatement::AppendExceptionLog ( TSQLStatement *  s  )  [inline, private]

Definition at line 82 of file DbiStatement.h.

00082 { if ( s ) fExceptionLog.AddEntry(*s); }

void DbiStatement::AppendExceptionLog ( DbiConnection c  )  [inline, private]

Definition at line 83 of file DbiStatement.h.

void DbiStatement::ClearExceptionLog (  )  [inline, private]

Definition at line 84 of file DbiStatement.h.

00084 { fExceptionLog.Clear(); }

TSQLStatement* DbiStatement::CreateProcessedStatement ( const TString &  sql = ""  )  [private]

std::list<TString> DbiStatement::TranslateSQL ( const TString &  sql  )  [private]


Member Data Documentation

DbiConnection& DbiStatement::fConDb [private]

Connection associated with this statement.

Definition at line 92 of file DbiStatement.h.

Dbi::DbTypes DbiStatement::fDbType [private]

Type of database (MySQL, Oracle).

Definition at line 95 of file DbiStatement.h.

DbiExceptionLog DbiStatement::fExceptionLog [private]

A log of reported exceptions.

Cleared by calling ExecuteQuery, ExecuteUpdate

Definition at line 99 of file DbiStatement.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:15:48 2011 for DatabaseInterface by doxygen 1.4.7