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

#include <DbiLogEntry.h>

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

List of all members.

Public Member Functions

 DbiLogEntry (const string &tableName="", const string &reason="", Int_t siteMask=Site::FullMask(), Int_t simMask=SimFlag::FullMask(), Dbi::SubSite subsite=0, Dbi::Task task=0, Int_t logSeqNoMin=0, Int_t logSeqNoMax=0, Int_t logNumSeqNo=0)
virtual ~DbiLogEntry ()
virtual DbiTableRowCreateTableRow () const
Int_t GetAggregateNo () const
const string & GetLogTableName () const
Int_t GetSiteMask () const
Int_t GetLogSeqNoMin () const
Int_t GetLogSeqNoMax () const
Int_t GetLogNumSeqNo () const
Int_t GetSimMask () const
Dbi::SubSite GetSubSite () const
Dbi::Task GetTask () const
const string & GetUserName () const
const string & GetProcessName () const
const string & GetHostName () const
const string & GetServerName () const
const string & GetReason () const
TimeStamp GetUpdateTime () const
Bool_t HasReason () const
string GetDatabaseLayout ()
 Function to lay out the database table columns, used by CreateDatabaseTables.
void SetReason (const string &reason)
void SetSiteMask (Int_t siteMask)
void SetSimMask (Int_t simMask)
void SetTask (Dbi::Task task)
void SetSubSite (Dbi::SubSite subsite)
void SetUpdateTime (const TimeStamp &updateTime)
void Recreate (const string &tableName="", const string &reason="", Int_t siteMask=Site::FullMask(), Int_t simMask=SimFlag::FullMask(), Dbi::SubSite subsite=0, Dbi::Task task=0, Int_t logSeqNoMin=0, Int_t logSeqNoMax=0, Int_t logNumSeqNo=0)
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
Bool_t Write (UInt_t dbNo, Int_t logSeqNo=0)
virtual std::string name () const
virtual size_t size () const
virtual Bool_t CanFixOrdering () const
virtual Bool_t CanL2Cache () const
virtual std::string GetExtraCondition () const
DbiResultGetOwner () const
virtual UInt_t GetIndex (UInt_t defIndex) const
void SetOwner (DbiResult *owner)
virtual bool CreateDatabaseTables (Int_t db_no=0, const char *tablename="default")
 Function to create the database tables.

Private Member Functions

 DbiLogEntry (const DbiLogEntry &from)
void SetServerName ()

Private Attributes

UInt_t fDbNo
 Database no. written to. =0 if not output.
Int_t fSeqNo
 Seq. No. used to write this object. =0 if not output.
string fLogTableName
 Table being updated.
Int_t fLogSiteMask
 Site type mask of update.
Int_t fLogSimMask
 SimFlag mask of update.
Dbi::SubSite fLogSubSite
 SubSite of update.
Dbi::Task fLogTask
 Task of update.
Int_t fLogSeqNoMin
 Minimum Seq. No. being updated.
Int_t fLogSeqNoMax
 Maximum Seq. No. being updated.
Int_t fLogNumSeqNo
 Number of Seq. Nos. being updated.
TimeStamp fUpdateTime
 Time of update.
string fUserName
 User performing update.
string fProcessName
 Process performing update.
string fHostName
 Host performing update.
string fServerName
 Db server being updated.
string fReason
 Reason for update.

Detailed Description

Id:
DbiLogEntry.h,v 1.5 2006/08/08 10:51:32 west Exp

Definition at line 46 of file DbiLogEntry.h.


Constructor & Destructor Documentation

DbiLogEntry::DbiLogEntry ( const string &  tableName = "",
const string &  reason = "",
Int_t  siteMask = Site::FullMask(),
Int_t  simMask = SimFlag::FullMask(),
Dbi::SubSite  subsite = 0,
Dbi::Task  task = 0,
Int_t  logSeqNoMin = 0,
Int_t  logSeqNoMax = 0,
Int_t  logNumSeqNo = 0 
)
virtual DbiLogEntry::~DbiLogEntry ( ) [virtual]
DbiLogEntry::DbiLogEntry ( const DbiLogEntry from) [private]

Member Function Documentation

virtual DbiTableRow* DbiLogEntry::CreateTableRow ( ) const [inline, virtual]

Implements DbiTableRow.

Definition at line 68 of file DbiLogEntry.h.

                                              { 
                                              return new DbiLogEntry; }
Int_t DbiLogEntry::GetAggregateNo ( ) const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 70 of file DbiLogEntry.h.

{ return -1; }
const string& DbiLogEntry::GetLogTableName ( ) const [inline]

Definition at line 73 of file DbiLogEntry.h.

{ return fLogTableName; }
Int_t DbiLogEntry::GetSiteMask ( ) const [inline]

Definition at line 74 of file DbiLogEntry.h.

{ return fLogSiteMask; }
Int_t DbiLogEntry::GetLogSeqNoMin ( ) const [inline]

Definition at line 75 of file DbiLogEntry.h.

{ return fLogSeqNoMin; }
Int_t DbiLogEntry::GetLogSeqNoMax ( ) const [inline]

Definition at line 76 of file DbiLogEntry.h.

{ return fLogSeqNoMax; }
Int_t DbiLogEntry::GetLogNumSeqNo ( ) const [inline]

Definition at line 77 of file DbiLogEntry.h.

{ return fLogNumSeqNo; }
Int_t DbiLogEntry::GetSimMask ( ) const [inline]

Definition at line 78 of file DbiLogEntry.h.

{ return fLogSimMask; }
Dbi::SubSite DbiLogEntry::GetSubSite ( ) const [inline]

Definition at line 79 of file DbiLogEntry.h.

{ return fLogSubSite; }
Dbi::Task DbiLogEntry::GetTask ( ) const [inline]

Definition at line 80 of file DbiLogEntry.h.

{ return fLogTask; }
const string& DbiLogEntry::GetUserName ( ) const [inline]

Definition at line 81 of file DbiLogEntry.h.

{ return fUserName; }
const string& DbiLogEntry::GetProcessName ( ) const [inline]

Definition at line 82 of file DbiLogEntry.h.

{ return fProcessName; }
const string& DbiLogEntry::GetHostName ( ) const [inline]

Definition at line 83 of file DbiLogEntry.h.

{ return fHostName; }
const string& DbiLogEntry::GetServerName ( ) const [inline]

Definition at line 84 of file DbiLogEntry.h.

{ return fServerName; }
const string& DbiLogEntry::GetReason ( ) const [inline]

Definition at line 85 of file DbiLogEntry.h.

{ return fReason; }
TimeStamp DbiLogEntry::GetUpdateTime ( ) const [inline]

Definition at line 86 of file DbiLogEntry.h.

{ return fUpdateTime; }
Bool_t DbiLogEntry::HasReason ( ) const [inline]

Definition at line 88 of file DbiLogEntry.h.

{ return fReason.size() > 0; }
string DbiLogEntry::GetDatabaseLayout ( ) [virtual]

Function to lay out the database table columns, used by CreateDatabaseTables.

Reimplemented from DbiTableRow.

void DbiLogEntry::SetReason ( const string &  reason)
void DbiLogEntry::SetSiteMask ( Int_t  siteMask) [inline]

Definition at line 96 of file DbiLogEntry.h.

{ fLogSiteMask = siteMask; }
void DbiLogEntry::SetSimMask ( Int_t  simMask) [inline]

Definition at line 97 of file DbiLogEntry.h.

{ fLogSimMask = simMask; }
void DbiLogEntry::SetTask ( Dbi::Task  task) [inline]

Definition at line 98 of file DbiLogEntry.h.

{ fLogTask = task; }
void DbiLogEntry::SetSubSite ( Dbi::SubSite  subsite) [inline]

Definition at line 99 of file DbiLogEntry.h.

{ fLogSubSite = subsite; }
void DbiLogEntry::SetUpdateTime ( const TimeStamp updateTime) [inline]

Definition at line 100 of file DbiLogEntry.h.

                                                          { 
                                         fUpdateTime = updateTime; }
void DbiLogEntry::Recreate ( const string &  tableName = "",
const string &  reason = "",
Int_t  siteMask = Site::FullMask(),
Int_t  simMask = SimFlag::FullMask(),
Dbi::SubSite  subsite = 0,
Dbi::Task  task = 0,
Int_t  logSeqNoMin = 0,
Int_t  logSeqNoMax = 0,
Int_t  logNumSeqNo = 0 
)
virtual void DbiLogEntry::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

virtual void DbiLogEntry::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Bool_t DbiLogEntry::Write ( UInt_t  dbNo,
Int_t  logSeqNo = 0 
)
void DbiLogEntry::SetServerName ( ) [private]
virtual std::string DbiTableRow::name ( ) const [virtual, inherited]
virtual size_t DbiTableRow::size ( ) const [virtual, inherited]
virtual Bool_t DbiTableRow::CanFixOrdering ( ) const [inline, virtual, inherited]

Definition at line 62 of file DbiTableRow.h.

{ return kFALSE; }
virtual Bool_t DbiTableRow::CanL2Cache ( ) const [inline, virtual, inherited]

Definition at line 63 of file DbiTableRow.h.

{ return kFALSE; }
virtual std::string DbiTableRow::GetExtraCondition ( ) const [inline, virtual, inherited]

Definition at line 64 of file DbiTableRow.h.

{ return std::string(""); }
DbiResult* DbiTableRow::GetOwner ( ) const [inline, inherited]

Definition at line 66 of file DbiTableRow.h.

{ return fOwner; }
virtual UInt_t DbiTableRow::GetIndex ( UInt_t  defIndex) const [inline, virtual, inherited]

Definition at line 68 of file DbiTableRow.h.

{return defIndex;}
void DbiTableRow::SetOwner ( DbiResult owner) [inline, inherited]

Definition at line 71 of file DbiTableRow.h.

{fOwner = owner;}
virtual bool DbiTableRow::CreateDatabaseTables ( Int_t  db_no = 0,
const char *  tablename = "default" 
) [virtual, inherited]

Function to create the database tables.


Member Data Documentation

UInt_t DbiLogEntry::fDbNo [private]

Database no. written to. =0 if not output.

Definition at line 128 of file DbiLogEntry.h.

Int_t DbiLogEntry::fSeqNo [private]

Seq. No. used to write this object. =0 if not output.

Definition at line 131 of file DbiLogEntry.h.

string DbiLogEntry::fLogTableName [private]

Table being updated.

Definition at line 134 of file DbiLogEntry.h.

Int_t DbiLogEntry::fLogSiteMask [private]

Site type mask of update.

Definition at line 137 of file DbiLogEntry.h.

Int_t DbiLogEntry::fLogSimMask [private]

SimFlag mask of update.

Definition at line 140 of file DbiLogEntry.h.

SubSite of update.

Definition at line 143 of file DbiLogEntry.h.

Task of update.

Definition at line 146 of file DbiLogEntry.h.

Int_t DbiLogEntry::fLogSeqNoMin [private]

Minimum Seq. No. being updated.

Definition at line 149 of file DbiLogEntry.h.

Int_t DbiLogEntry::fLogSeqNoMax [private]

Maximum Seq. No. being updated.

Definition at line 152 of file DbiLogEntry.h.

Int_t DbiLogEntry::fLogNumSeqNo [private]

Number of Seq. Nos. being updated.

Definition at line 155 of file DbiLogEntry.h.

Time of update.

Definition at line 158 of file DbiLogEntry.h.

string DbiLogEntry::fUserName [private]

User performing update.

Definition at line 161 of file DbiLogEntry.h.

string DbiLogEntry::fProcessName [private]

Process performing update.

Definition at line 164 of file DbiLogEntry.h.

string DbiLogEntry::fHostName [private]

Host performing update.

Definition at line 167 of file DbiLogEntry.h.

string DbiLogEntry::fServerName [private]

Db server being updated.

Definition at line 170 of file DbiLogEntry.h.

string DbiLogEntry::fReason [private]

Reason for update.

Definition at line 173 of file DbiLogEntry.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