TTableRow Class Reference

This is the base class for all table rows. More...

#include <TTableRow.hxx>

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

List of all members.

Public Member Functions

 TTableRow ()
 TTableRow (const TTableRow &from)
virtual ~TTableRow ()
virtual TDbiTableRowCreateTableRow () const
virtual void Fill (TDbiInRowStream &rs, const TDbiValidityRec *vrec)
virtual void Fill (TResultInputStream &ris)
virtual TTableRowMakeTableRow () const =0
const char * GetName () const
 Return class name but strip off leading "T".
virtual Bool_t CanL2Cache () const
 Replace this with a function returning true in order to use the level 2 disk cache.
virtual Int_t GetAggregateNo () const
TDbiResultSetGetOwner () const
virtual UInt_t GetIndex (UInt_t defIndex) const
void SetOwner (TDbiResultSet *owner)
virtual void Store (TDbiOutRowStream &, const TDbiValidityRec *) const

Detailed Description

This is the base class for all table rows.

Definition at line 16 of file TTableRow.hxx.


Constructor & Destructor Documentation

TTableRow::TTableRow (  ) 
TTableRow::TTableRow ( const TTableRow from  ) 

Definition at line 18 of file TTableRow.cxx.

References SK_DBI_Trace.

00018                                           {
00019 
00020    // Copy constructor
00021 
00022     SK_DBI_Trace("TTableRow: Copy ctor at:" << (void*) this);
00023 
00024     //  Nothing to copy; no data member in TDbiTableRow.
00025 
00026 }

TTableRow::~TTableRow (  )  [virtual]

Definition at line 30 of file TTableRow.cxx.

References SK_DBI_Trace.

00030                        {
00031 
00032    // Destructor
00033 
00034     SK_DBI_Trace("TTableRow: dtor at:" << (void*) this);
00035 
00036 }


Member Function Documentation

virtual Bool_t TDbiTableRow::CanL2Cache (  )  const [inline, virtual, inherited]

Replace this with a function returning true in order to use the level 2 disk cache.

Definition at line 59 of file TDbiTableRow.hxx.

00059 { return kFALSE; } 

virtual TDbiTableRow* TTableRow::CreateTableRow (  )  const [inline, virtual]

Implements TDbiTableRow.

Definition at line 25 of file TTableRow.hxx.

References MakeTableRow().

00025 { return this->MakeTableRow();}

Here is the call graph for this function:

virtual void TTableRow::Fill ( TResultInputStream ris  )  [inline, virtual]

Reimplemented in TDemo2_DB_Table, and TDemo_DB_Table.

Definition at line 31 of file TTableRow.hxx.

References SK_DBI_Error.

00031                                                {
00032         SK_DBI_Error("Calling base class TTableRow::Fill method - this should be redefined in subclass");
00033 
00034     }

virtual void TTableRow::Fill ( TDbiInRowStream rs,
const TDbiValidityRec vrec 
) [inline, virtual]

Implements TDbiTableRow.

Definition at line 27 of file TTableRow.hxx.

00027                                                                         { 
00028         TResultInputStream ris(rs);
00029         this->Fill(ris); 
00030     }

virtual Int_t TDbiTableRow::GetAggregateNo (  )  const [inline, virtual, inherited]

Reimplemented in TDbiConfigSet, TDbiLogEntry, and TDbiValidityRec.

Definition at line 62 of file TDbiTableRow.hxx.

Referenced by TDbiResultSet::BuildLookUpTable().

00062 { return -1; }

Here is the caller graph for this function:

virtual UInt_t TDbiTableRow::GetIndex ( UInt_t  defIndex  )  const [inline, virtual, inherited]

Reimplemented in TDemo2_DB_Table, and TDemo_DB_Table.

Definition at line 65 of file TDbiTableRow.hxx.

Referenced by TDbiResultSet::BuildLookUpTable().

00065 {return defIndex;}

Here is the caller graph for this function:

const char* TTableRow::GetName (  )  const [inline]

Return class name but strip off leading "T".

Definition at line 38 of file TTableRow.hxx.

00038                                 {
00039         const char* name = TObject::GetName();
00040         if ( strncmp("",name,4) == 0 ) name += 4;
00041         if ( strncmp("T",   name,1) == 0 ) name += 1;
00042         return name;
00043     }

TDbiResultSet* TDbiTableRow::GetOwner (  )  const [inline, inherited]

Definition at line 63 of file TDbiTableRow.hxx.

References TDbiTableRow::fOwner.

Referenced by TDbiResultSet::BuildLookUpTable(), and TDbiResultSetAgg::GetValidityRec().

00063 { return fOwner; }

Here is the caller graph for this function:

virtual TTableRow* TTableRow::MakeTableRow (  )  const [pure virtual]

Implemented in TDemo2_DB_Table, and TDemo_DB_Table.

Referenced by CreateTableRow().

Here is the caller graph for this function:

void TDbiTableRow::SetOwner ( TDbiResultSet owner  )  [inline, inherited]

Definition at line 68 of file TDbiTableRow.hxx.

References TDbiTableRow::fOwner.

Referenced by ClassImp().

00068 {fOwner = owner;}

Here is the caller graph for this function:

virtual void TDbiTableRow::Store ( TDbiOutRowStream ,
const TDbiValidityRec  
) const [inline, virtual, inherited]

Reimplemented in TDbiConfigSet, and TDbiLogEntry.

Definition at line 73 of file TDbiTableRow.hxx.

Referenced by TDbiSqlValPacket::AddRow().

00074                                                               { assert(0); }

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1