/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Member Functions | Private Attributes
DbiStatement Class Reference

#include <DbiStatement.h>

Collaboration diagram for DbiStatement:
Collaboration graph
[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.
Bool_t IsLocking ()
 Provide Locking status of the connection.

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.

{ 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.

{ 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.

Bool_t DbiStatement::IsLocking ( )

Provide Locking status of the connection.

void DbiStatement::AppendExceptionLog ( DbiException e) [inline, private]

Definition at line 85 of file DbiStatement.h.

{ if ( e ) fExceptionLog.AddEntry(*e); }
void DbiStatement::AppendExceptionLog ( TSQLStatement *  s) [inline, private]

Definition at line 86 of file DbiStatement.h.

{ if ( s ) fExceptionLog.AddEntry(*s); }
void DbiStatement::AppendExceptionLog ( DbiConnection c) [inline, private]

Definition at line 87 of file DbiStatement.h.

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

Definition at line 88 of file DbiStatement.h.

TSQLStatement* DbiStatement::CreateProcessedStatement ( const TString &  sql = "") [private]
std::list<TString> DbiStatement::TranslateSQL ( const TString &  sql) [private]

Member Data Documentation

Connection associated with this statement.

Definition at line 96 of file DbiStatement.h.

Type of database (MySQL, Oracle)

Definition at line 99 of file DbiStatement.h.

A log of reported exceptions.

Cleared by calling ExecuteQuery, ExecuteUpdate

Definition at line 103 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 Fri May 16 2014 09:56:45 for DatabaseInterface by doxygen 1.7.4