/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 | Protected Member Functions | Private Member Functions | Private Attributes
DbiResultSet Class Reference

#include <DbiResultSet.h>

Inheritance diagram for DbiResultSet:
Inheritance graph
[legend]
Collaboration diagram for DbiResultSet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DbiResultSet (DbiStatement *stmtDb, const DbiString &sql, const DbiTableMetaData *metaData, const DbiTableProxy *tableProxy, UInt_t dbNo, const string &fillOpts="")
virtual ~DbiResultSet ()
Bool_t CurColExists () const
string CurColString () const
string CurColValue () const
UInt_t CurRowNum () const
UInt_t GetDbNo () const
Dbi::DbTypes GetDBType () const
string GetFillOpts () const
const DbiTableProxyGetTableProxy () const
Bool_t IsBeforeFirst () const
 IsBeforeFirst not needed for ROOT API, but leave a dummy for now so as not to disturb DbiResultSet API.
Bool_t IsExhausted () const
void RowAsCsv (string &row) const
DbiResultSetoperator>> (Bool_t &dest)
DbiResultSetoperator>> (Char_t &dest)
DbiResultSetoperator>> (Short_t &dest)
DbiResultSetoperator>> (UShort_t &dest)
DbiResultSetoperator>> (Int_t &dest)
DbiResultSetoperator>> (UInt_t &dest)
DbiResultSetoperator>> (Long_t &dest)
DbiResultSetoperator>> (ULong_t &dest)
DbiResultSetoperator>> (Float_t &dest)
DbiResultSetoperator>> (Double_t &dest)
DbiResultSetoperator>> (string &dest)
DbiResultSetoperator>> (TimeStamp &dest)
Bool_t FetchRow ()
virtual const DbiFieldTypeColFieldType (UInt_t col) const
virtual string ColName (UInt_t col) const
virtual const DbiFieldTypeCurColFieldType () const
virtual string CurColName () const
virtual UInt_t CurColNum () const
Bool_t HasRowCounter () const
virtual UInt_t NumCols () const
virtual string TableName () const
virtual string TableNameTc () const
virtual const DbiTableMetaDataMetaData () const
virtual void DecrementCurCol ()
virtual void IncrementCurCol ()

Protected Member Functions

virtual void ClearCurCol ()

Private Member Functions

string & AsString (Dbi::DataTypes type)
Bool_t LoadCurValue () const
TString GetStringFromTSQL (Int_t col) const

Private Attributes

Int_t fCurRow
 Current row in query (0...)
UInt_t fDbNo
 Cascade no. of source.
Dbi::DbTypes fDbType
 Type of database fDbNo.
DbiStatementfStatement
 Owned DbiStatement.
TSQLStatement * fTSQLStatement
 Pointer to owned statement, may be 0.
Bool_t fExhausted
 True is result set missing or exhausted.
const DbiTableProxyfTableProxy
 DbiTableProxy that produced this set.
string fValString
 Buffer for assembling value.
string fFillOpts
 Optional fill options.

Detailed Description

Id:
DbiResultSet.h,v 1.23 2007/04/26 14:19:57 west Exp

Definition at line 45 of file DbiResultSet.h.


Constructor & Destructor Documentation

DbiResultSet::DbiResultSet ( DbiStatement stmtDb,
const DbiString sql,
const DbiTableMetaData metaData,
const DbiTableProxy tableProxy,
UInt_t  dbNo,
const string &  fillOpts = "" 
)
virtual DbiResultSet::~DbiResultSet ( ) [virtual]

Member Function Documentation

Bool_t DbiResultSet::CurColExists ( ) const
string DbiResultSet::CurColString ( ) const
string DbiResultSet::CurColValue ( ) const [inline]

Definition at line 62 of file DbiResultSet.h.

{ LoadCurValue(); return fValString;}
UInt_t DbiResultSet::CurRowNum ( ) const [inline]

Definition at line 63 of file DbiResultSet.h.

{ return fCurRow;}
UInt_t DbiResultSet::GetDbNo ( ) const [inline]

Definition at line 64 of file DbiResultSet.h.

{ return fDbNo; }
Dbi::DbTypes DbiResultSet::GetDBType ( ) const [inline]

Definition at line 65 of file DbiResultSet.h.

{ return fDbType; }
string DbiResultSet::GetFillOpts ( ) const [inline]

Definition at line 66 of file DbiResultSet.h.

{ return fFillOpts;}
const DbiTableProxy* DbiResultSet::GetTableProxy ( ) const [inline]

Definition at line 67 of file DbiResultSet.h.

{ return fTableProxy; }
Bool_t DbiResultSet::IsBeforeFirst ( ) const [inline]

IsBeforeFirst not needed for ROOT API, but leave a dummy for now so as not to disturb DbiResultSet API.

Definition at line 70 of file DbiResultSet.h.

{ return false; };
Bool_t DbiResultSet::IsExhausted ( ) const [inline]

Definition at line 71 of file DbiResultSet.h.

{ return fExhausted; }
void DbiResultSet::RowAsCsv ( string &  row) const
DbiResultSet& DbiResultSet::operator>> ( Bool_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( Char_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( Short_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( UShort_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( Int_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( UInt_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( Long_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( ULong_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( Float_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( Double_t &  dest)
DbiResultSet& DbiResultSet::operator>> ( string &  dest)
DbiResultSet& DbiResultSet::operator>> ( TimeStamp dest)
Bool_t DbiResultSet::FetchRow ( )
string& DbiResultSet::AsString ( Dbi::DataTypes  type) [private]
Bool_t DbiResultSet::LoadCurValue ( ) const [private]
TString DbiResultSet::GetStringFromTSQL ( Int_t  col) const [private]
virtual const DbiFieldType& DbiRowStream::ColFieldType ( UInt_t  col) const [virtual, inherited]
virtual string DbiRowStream::ColName ( UInt_t  col) const [virtual, inherited]
virtual const DbiFieldType& DbiRowStream::CurColFieldType ( ) const [virtual, inherited]
virtual string DbiRowStream::CurColName ( ) const [virtual, inherited]
virtual UInt_t DbiRowStream::CurColNum ( ) const [inline, virtual, inherited]

Definition at line 46 of file DbiRowStream.h.

{ return fCurCol;}
Bool_t DbiRowStream::HasRowCounter ( ) const [inline, inherited]

Definition at line 47 of file DbiRowStream.h.

{ return fHasRowCounter; }
virtual UInt_t DbiRowStream::NumCols ( ) const [virtual, inherited]
virtual string DbiRowStream::TableName ( ) const [virtual, inherited]
virtual string DbiRowStream::TableNameTc ( ) const [virtual, inherited]
virtual const DbiTableMetaData* DbiRowStream::MetaData ( ) const [inline, virtual, inherited]

Definition at line 52 of file DbiRowStream.h.

{ return fMetaData; }
virtual void DbiRowStream::DecrementCurCol ( ) [inline, virtual, inherited]

Definition at line 55 of file DbiRowStream.h.

                                  { 
                            fCurCol = (fCurCol <= 1) ? 1 : fCurCol -1; }
virtual void DbiRowStream::IncrementCurCol ( ) [inline, virtual, inherited]

Definition at line 59 of file DbiRowStream.h.

{ ++fCurCol; }
virtual void DbiRowStream::ClearCurCol ( ) [inline, protected, virtual, inherited]

Definition at line 63 of file DbiRowStream.h.

{ fCurCol = 1; }

Member Data Documentation

Int_t DbiResultSet::fCurRow [private]

Current row in query (0...)

Definition at line 100 of file DbiResultSet.h.

UInt_t DbiResultSet::fDbNo [private]

Cascade no. of source.

Definition at line 103 of file DbiResultSet.h.

Type of database fDbNo.

Definition at line 106 of file DbiResultSet.h.

Owned DbiStatement.

May be 0. It's only use is to create a TSQLStatement in the ctor but it is not destroyed until the dtor to prevent a premature attempt to close the connection.

Definition at line 112 of file DbiResultSet.h.

TSQLStatement* DbiResultSet::fTSQLStatement [private]

Pointer to owned statement, may be 0.

Definition at line 115 of file DbiResultSet.h.

Bool_t DbiResultSet::fExhausted [private]

True is result set missing or exhausted.

Definition at line 118 of file DbiResultSet.h.

DbiTableProxy that produced this set.

Definition at line 121 of file DbiResultSet.h.

string DbiResultSet::fValString [mutable, private]

Buffer for assembling value.

Definition at line 124 of file DbiResultSet.h.

string DbiResultSet::fFillOpts [private]

Optional fill options.

Definition at line 127 of file DbiResultSet.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