This is the base class for all table rows. More...
#include <TTableRow.hxx>
Public Member Functions | |
TTableRow () | |
TTableRow (const TTableRow &from) | |
virtual | ~TTableRow () |
virtual TDbiTableRow * | CreateTableRow () const |
virtual void | Fill (TDbiInRowStream &rs, const TDbiValidityRec *vrec) |
virtual void | Fill (TResultInputStream &ris) |
virtual TTableRow * | MakeTableRow () 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 |
TDbiResultSet * | GetOwner () const |
virtual UInt_t | GetIndex (UInt_t defIndex) const |
void | SetOwner (TDbiResultSet *owner) |
virtual void | Store (TDbiOutRowStream &, const TDbiValidityRec *) const |
This is the base class for all table rows.
Definition at line 16 of file TTableRow.hxx.
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 }
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.
virtual TDbiTableRow* TTableRow::CreateTableRow | ( | ) | const [inline, virtual] |
Implements TDbiTableRow.
Definition at line 25 of file TTableRow.hxx.
References MakeTableRow().
00025 { return this->MakeTableRow();}
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().
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().
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; }
virtual TTableRow* TTableRow::MakeTableRow | ( | ) | const [pure virtual] |
Implemented in TDemo2_DB_Table, and TDemo_DB_Table.
Referenced by CreateTableRow().
void TDbiTableRow::SetOwner | ( | TDbiResultSet * | owner | ) | [inline, inherited] |
Definition at line 68 of file TDbiTableRow.hxx.
References TDbiTableRow::fOwner.
Referenced by ClassImp().
00068 {fOwner = owner;}
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().