TDbiTableRow Class Reference

Concept Abstract interface to TableRow objects. Each database table consists of a collection of TableRow objects. More...

#include <TDbiTableRow.hxx>

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

List of all members.

Public Member Functions

 TDbiTableRow ()
 TDbiTableRow (const TDbiTableRow &from)
virtual ~TDbiTableRow ()
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 TDbiTableRowCreateTableRow () const =0
virtual UInt_t GetIndex (UInt_t defIndex) const
void SetOwner (TDbiResultSet *owner)
virtual void Fill (TDbiInRowStream &rs, const TDbiValidityRec *vrec)=0
virtual void Store (TDbiOutRowStream &, const TDbiValidityRec *) const

Private Attributes

TDbiResultSetfOwner
 The owning TDbiResultSet, if any.

Detailed Description

Concept Abstract interface to TableRow objects. Each database table consists of a collection of TableRow objects.

Id
TDbiTableRow.hxx,v 1.2 2011/06/09 14:44:29 finch Exp

Purpose Provides a generic interface to TableRow objects permiting much of the database machinery to be generic. Subclass obligations All subclasses must have public default and constructors. Program Notes It inherits from TObject only so that it can get the class name at execution time. Contact: A.Finch@lancaster.ac.uk

Definition at line 47 of file TDbiTableRow.hxx.


Constructor & Destructor Documentation

TDbiTableRow::TDbiTableRow (  ) 
TDbiTableRow::TDbiTableRow ( const TDbiTableRow from  ) 

Definition at line 34 of file TDbiTableRow.cxx.

References SK_DBI_Trace.

00034                                                    : TObject(from)
00035 {
00036 //
00037 //
00038 //  Purpose:  Copy constructor.
00039 
00040 
00041   SK_DBI_Trace( "Creating copy TDbiTableRow" << "  ");
00042 
00043 //  Nothing to copy; no data member in TDbiTableRow.
00044 
00045 }

TDbiTableRow::~TDbiTableRow (  )  [virtual]

Definition at line 49 of file TDbiTableRow.cxx.

References SK_DBI_Trace.

00049                             {
00050 //
00051 //
00052 //  Purpose: Destructor
00053 
00054 
00055   SK_DBI_Trace( "Destroying TDbiTableRow" << "  ");
00056 
00057 }


Member Function Documentation

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

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* TDbiTableRow::CreateTableRow (  )  const [pure virtual]
virtual void TDbiTableRow::Fill ( TDbiInRowStream rs,
const TDbiValidityRec vrec 
) [pure virtual]

Implemented in TDbiConfigSet, TDbiLogEntry, and TTableRow.

Referenced by ClassImp().

Here is the caller graph for this function:

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

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]

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:

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

Definition at line 63 of file TDbiTableRow.hxx.

References fOwner.

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

00063 { return fOwner; }

Here is the caller graph for this function:

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

Definition at line 68 of file TDbiTableRow.hxx.

References 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]

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:


Member Data Documentation

The owning TDbiResultSet, if any.

Definition at line 81 of file TDbiTableRow.hxx.

Referenced by GetOwner(), and SetOwner().


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

Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1