/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 Attributes
DbiResultAgg Class Reference

#include <DbiResultAgg.h>

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

List of all members.

Public Member Functions

 DbiResultAgg (const string &tableName="Unknown", const DbiTableRow *tableRow=0, DbiCache *cache=0, const DbiValidityRecBuilder *vrecBuilder=0, const DbiDBProxy *proxy=0, const string &sqlQualifiers="")
virtual ~DbiResultAgg ()
virtual DbiResultKeyCreateKey () const
virtual UInt_t GetNumAggregates () const
virtual UInt_t GetNumRows () const
virtual const DbiTableRowGetTableRow (UInt_t row) const
virtual const DbiValidityRecGetValidityRec (const DbiTableRow *row=0) const
virtual Bool_t Satisfies (const string &sqlQualifiers)
 Not all DbiResult classes can satisfy these types of query so those that do must override.
virtual void Streamer (DbiBinaryFile &bf)
virtual Bool_t CanReuse () const
virtual Bool_t CanSave () const
virtual void Connect () const
virtual void Disconnect () const
const DbiExceptionLogGetExceptionLog () const
Int_t GetID () const
virtual const DbiResultKeyGetKey () const
virtual UInt_t GetNumClients () const
const string & GetSqlQualifiers () const
virtual const DbiTableRowGetTableRowByIndex (UInt_t index) const
virtual const DbiValidityRecGetValidityRecGlobal () const
Bool_t IsExtendedContext () const
virtual Bool_t Owns (const DbiTableRow *) const
Bool_t ResultsFromDb () const
virtual const string & TableName () const
void CaptureExceptionLog (UInt_t startFrom)
virtual Bool_t CanDelete (const DbiResult *res=0)
 Return true if no clients and unlikely to be reused.
virtual Bool_t Satisfies (const Context &vc, const Dbi::SubSite &subsite, const Dbi::Task &task)
 All DbiResult classes can satisfy this type of primary query so impliment here.
virtual Bool_t Satisfies (const DbiValidityRec &, const string &="")
virtual void DeRegisterKey ()
 Key handling.
virtual void RegisterKey ()
virtual void SetCanReuse (Bool_t reuse)

Protected Member Functions

void SetResultsFromDb ()
void BuildLookUpTable () const
Bool_t LookUpBuilt () const
virtual void SetTableName (const string &tableName)
virtual void SetValidityRec (const DbiValidityRec &vRec)

Private Attributes

std::vector< const DbiResult * > fResults
 Array of DbiResults (vector<DbiResult*>).
std::vector< const DbiTableRow * > fRowKeys
 Look-up: Row no. -> TableRow.
UInt_t fSize
 Current set size.

Detailed Description

Id:
DbiResultAgg.h,v 1.15 2006/08/08 10:51:32 west Exp

Definition at line 53 of file DbiResultAgg.h.


Constructor & Destructor Documentation

DbiResultAgg::DbiResultAgg ( const string &  tableName = "Unknown",
const DbiTableRow tableRow = 0,
DbiCache cache = 0,
const DbiValidityRecBuilder vrecBuilder = 0,
const DbiDBProxy proxy = 0,
const string &  sqlQualifiers = "" 
)
virtual DbiResultAgg::~DbiResultAgg ( ) [virtual]

Member Function Documentation

virtual DbiResultKey* DbiResultAgg::CreateKey ( ) const [virtual]

Implements DbiResult.

virtual UInt_t DbiResultAgg::GetNumAggregates ( ) const [inline, virtual]

Implements DbiResult.

Definition at line 74 of file DbiResultAgg.h.

                                                        { 
                                          return 1 + fResults.size(); };
virtual UInt_t DbiResultAgg::GetNumRows ( ) const [inline, virtual]

Implements DbiResult.

Definition at line 76 of file DbiResultAgg.h.

                                                  { 
                                                  return fSize; }
virtual const DbiTableRow* DbiResultAgg::GetTableRow ( UInt_t  row) const [virtual]

Implements DbiResult.

virtual const DbiValidityRec& DbiResultAgg::GetValidityRec ( const DbiTableRow row = 0) const [virtual]

Reimplemented from DbiResult.

virtual Bool_t DbiResultAgg::Satisfies ( const string &  ) [virtual]

Not all DbiResult classes can satisfy these types of query so those that do must override.

Reimplemented from DbiResult.

virtual void DbiResultAgg::Streamer ( DbiBinaryFile bf) [virtual]

Reimplemented from DbiResult.

virtual Bool_t DbiResult::CanReuse ( ) const [inline, virtual, inherited]

Definition at line 61 of file DbiResult.h.

{ return fCanReuse; }
virtual Bool_t DbiResult::CanSave ( ) const [inline, virtual, inherited]

Definition at line 62 of file DbiResult.h.

{ return kTRUE; }
virtual void DbiResult::Connect ( ) const [inline, virtual, inherited]

Definition at line 63 of file DbiResult.h.

{ ++fNumClients; }
virtual void DbiResult::Disconnect ( ) const [inline, virtual, inherited]

Definition at line 65 of file DbiResult.h.

{ --fNumClients; } 
const DbiExceptionLog& DbiResult::GetExceptionLog ( ) const [inline, inherited]

Definition at line 66 of file DbiResult.h.

{ return fExceptionLog; }
Int_t DbiResult::GetID ( ) const [inline, inherited]

Definition at line 67 of file DbiResult.h.

{ return fID; }
virtual const DbiResultKey* DbiResult::GetKey ( ) const [virtual, inherited]
virtual UInt_t DbiResult::GetNumClients ( ) const [inline, virtual, inherited]

Definition at line 70 of file DbiResult.h.

                                                     { 
                                                   return fNumClients; }
const string& DbiResult::GetSqlQualifiers ( ) const [inline, inherited]

Definition at line 73 of file DbiResult.h.

{ return fSqlQualifiers; }
virtual const DbiTableRow* DbiResult::GetTableRowByIndex ( UInt_t  index) const [virtual, inherited]

Reimplemented in DbiResultNonAgg.

virtual const DbiValidityRec& DbiResult::GetValidityRecGlobal ( ) const [inline, virtual, inherited]

Definition at line 79 of file DbiResult.h.

                                                            { 
                                                      return fEffVRec; }
Bool_t DbiResult::IsExtendedContext ( ) const [inline, inherited]

Definition at line 81 of file DbiResult.h.

                                                         { 
                                       return this->GetSqlQualifiers() != ""; }
virtual Bool_t DbiResult::Owns ( const DbiTableRow ) const [inline, virtual, inherited]

Reimplemented in DbiResultNonAgg.

Definition at line 83 of file DbiResult.h.

{ return kFALSE; }
Bool_t DbiResult::ResultsFromDb ( ) const [inline, inherited]

Definition at line 84 of file DbiResult.h.

{ return fResultsFromDb; }
virtual const string& DbiResult::TableName ( ) const [inline, virtual, inherited]

Definition at line 85 of file DbiResult.h.

{ return fTableName; }
void DbiResult::CaptureExceptionLog ( UInt_t  startFrom) [inherited]
virtual Bool_t DbiResult::CanDelete ( const DbiResult res = 0) [virtual, inherited]

Return true if no clients and unlikely to be reused.

virtual Bool_t DbiResult::Satisfies ( const Context vc,
const Dbi::SubSite subsite,
const Dbi::Task task 
) [virtual, inherited]

All DbiResult classes can satisfy this type of primary query so impliment here.

virtual Bool_t DbiResult::Satisfies ( const DbiValidityRec ,
const string &  = "" 
) [inline, virtual, inherited]

Reimplemented in DbiResultNonAgg.

Definition at line 101 of file DbiResult.h.

                                                 {return kFALSE;}
virtual void DbiResult::DeRegisterKey ( ) [virtual, inherited]

Key handling.

virtual void DbiResult::RegisterKey ( ) [virtual, inherited]
virtual void DbiResult::SetCanReuse ( Bool_t  reuse) [inline, virtual, inherited]

Definition at line 109 of file DbiResult.h.

{ fCanReuse = reuse ; }
void DbiResult::SetResultsFromDb ( ) [inline, protected, inherited]

Definition at line 112 of file DbiResult.h.

{ fResultsFromDb = kTRUE; }
void DbiResult::BuildLookUpTable ( ) const [protected, inherited]
Bool_t DbiResult::LookUpBuilt ( ) const [inline, protected, inherited]

Definition at line 117 of file DbiResult.h.

{ return fIndexKeys.size() > 0; } 
virtual void DbiResult::SetTableName ( const string &  tableName) [inline, protected, virtual, inherited]

Definition at line 121 of file DbiResult.h.

                                                     { 
                                               fTableName = tableName; }
virtual void DbiResult::SetValidityRec ( const DbiValidityRec vRec) [inline, protected, virtual, inherited]

Definition at line 123 of file DbiResult.h.

                                                          { 
                                                      fEffVRec = vRec; }

Member Data Documentation

std::vector<const DbiResult*> DbiResultAgg::fResults [private]

Array of DbiResults (vector<DbiResult*>).

The array index is NOT the aggregate number; it simply matches the rows are supplied by the DbiValidityRecBuilder with first row of DbiValidityRecBuilder excluded i.e. row n of builder creates a DbiResult pointed to by fResults[n-1];

Definition at line 97 of file DbiResultAgg.h.

std::vector<const DbiTableRow*> DbiResultAgg::fRowKeys [private]

Look-up: Row no. -> TableRow.

Definition at line 100 of file DbiResultAgg.h.

UInt_t DbiResultAgg::fSize [private]

Current set size.

Definition at line 103 of file DbiResultAgg.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