| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DbiWriter< T > Class Template Reference

Id
DbiWriter.h,v 1.24 2006/08/08 10:51:32 west Exp
More...

#include <DbiWriter.h>

Collaboration diagram for DbiWriter< T >:

[legend]
List of all members.

Public Member Functions

 DbiWriter ()
 DbiWriter (const ContextRange &vr, Int_t aggNo, Dbi::SubSite subsite, Dbi::Task task, TimeStamp versionDate, const std::string &dbName, const std::string &logComment="", const std::string &tableName="")
 DbiWriter (const ContextRange &vr, Int_t aggNo, Dbi::SubSite subsite=0, Dbi::Task task=0, TimeStamp versionDate=TimeStamp(0, 0), UInt_t dbNo=0, const std::string &logComment="", const std::string &tableName="")
 DbiWriter (const DbiValidityRec &vrec, const std::string &dbName, const std::string &logComment="")
 DbiWriter (const DbiValidityRec &vrec, UInt_t dbNo=0, const std::string &logComment="")
virtual ~DbiWriter ()
DbiTableProxyTableProxy () const
Bool_t IsOpen (Bool_t reportErrors=kTRUE) const
 Open and ready to receive data.
Bool_t CanOutput (Bool_t reportErrors=kTRUE) const
 Open and ready to receive/output data.
void SetDbNo (UInt_t dbNo)
void SetDbName (const string &dbName)
void SetLogComment (const std::string &reason)
void SetRequireGlobalSeqno (Int_t requireGlobal)
void SetOverlayVersionDate ()
void Abort ()
Bool_t Close (const char *fileSpec=0)
Bool_t Open (const ContextRange &vr, Int_t aggNo, Dbi::SubSite subsite, Dbi::Task task, TimeStamp versionDate, const string &dbName, const std::string &logComment="")
Bool_t Open (const ContextRange &vr, Int_t aggNo, Dbi::SubSite subsite=0, Dbi::Task task=0, TimeStamp versionDate=TimeStamp(), UInt_t dbNo=0, const std::string &logComment="")
Bool_t Open (const DbiValidityRec &vrec, const string &dbName, const std::string &logComment="")
Bool_t Open (const DbiValidityRec &vrec, UInt_t dbNo=0, const std::string &logComment="")
DbiWriter< T > & operator<< (const T &row)

Private Member Functions

Bool_t NeedsLogEntry () const
Bool_t WritingToMaster () const
 DbiWriter (const DbiWriter &)
DbiWriteroperator= (const DbiWriter &)
void CompleteOpen (UInt_t dbNo=0, const std::string &logComment="")
void Reset ()

Static Private Member Functions

static DbiTableProxyGetTableProxy ()
static DbiTableProxyGetTableProxy (const std::string &tableName)

Private Attributes

Int_t fAggregateNo
 Aggregate noumber for set.
UInt_t fDbNo
 Database number in cascade.
DbiSqlValPacketfPacket
 The assembled record to be output. Never null.
Int_t fRequireGlobalSeqno
 Controls SEQNO type (see DbiCascader::AllocateSeqNo).
DbiTableProxyfTableProxy
 Proxy to associated table.
std::string fTableName
 Associated table name.
Bool_t fUseOverlayVersionDate
 Use overlay version date if true.
DbiValidityRecfValidRec
 Validity record. May be =0 if closed.
DbiLogEntry fLogEntry
 Associated log entry (if any) for update.

Detailed Description

template<class T>
class DbiWriter< T >

Id
DbiWriter.h,v 1.24 2006/08/08 10:51:32 west Exp

Definition at line 45 of file DbiWriter.h.


Constructor & Destructor Documentation

template<class T>
DbiWriter< T >::DbiWriter (  ) 

template<class T>
DbiWriter< T >::DbiWriter ( const ContextRange vr,
Int_t  aggNo,
Dbi::SubSite  subsite,
Dbi::Task  task,
TimeStamp  versionDate,
const std::string &  dbName,
const std::string &  logComment = "",
const std::string &  tableName = "" 
)

template<class T>
DbiWriter< T >::DbiWriter ( const ContextRange vr,
Int_t  aggNo,
Dbi::SubSite  subsite = 0,
Dbi::Task  task = 0,
TimeStamp  versionDate = TimeStamp(0, 0),
UInt_t  dbNo = 0,
const std::string &  logComment = "",
const std::string &  tableName = "" 
)

template<class T>
DbiWriter< T >::DbiWriter ( const DbiValidityRec vrec,
const std::string &  dbName,
const std::string &  logComment = "" 
)

template<class T>
DbiWriter< T >::DbiWriter ( const DbiValidityRec vrec,
UInt_t  dbNo = 0,
const std::string &  logComment = "" 
)

template<class T>
virtual DbiWriter< T >::~DbiWriter (  )  [virtual]

template<class T>
DbiWriter< T >::DbiWriter ( const DbiWriter< T > &   )  [private]


Member Function Documentation

template<class T>
DbiTableProxy& DbiWriter< T >::TableProxy (  )  const

template<class T>
Bool_t DbiWriter< T >::IsOpen ( Bool_t  reportErrors = kTRUE  )  const

Open and ready to receive data.

template<class T>
Bool_t DbiWriter< T >::CanOutput ( Bool_t  reportErrors = kTRUE  )  const

Open and ready to receive/output data.

template<class T>
void DbiWriter< T >::SetDbNo ( UInt_t  dbNo  )  [inline]

Definition at line 88 of file DbiWriter.h.

00088 { fDbNo = dbNo;}

template<class T>
void DbiWriter< T >::SetDbName ( const string &  dbName  ) 

template<class T>
void DbiWriter< T >::SetLogComment ( const std::string &  reason  ) 

template<class T>
void DbiWriter< T >::SetRequireGlobalSeqno ( Int_t  requireGlobal  )  [inline]

Definition at line 92 of file DbiWriter.h.

00092 {fRequireGlobalSeqno = requireGlobal;}

template<class T>
void DbiWriter< T >::SetOverlayVersionDate (  )  [inline]

Definition at line 93 of file DbiWriter.h.

00093 {fUseOverlayVersionDate = kTRUE;}

template<class T>
void DbiWriter< T >::Abort (  )  [inline]

Definition at line 96 of file DbiWriter.h.

00096 { Reset(); }

template<class T>
Bool_t DbiWriter< T >::Close ( const char *  fileSpec = 0  ) 

template<class T>
Bool_t DbiWriter< T >::Open ( const ContextRange vr,
Int_t  aggNo,
Dbi::SubSite  subsite,
Dbi::Task  task,
TimeStamp  versionDate,
const string &  dbName,
const std::string &  logComment = "" 
)

template<class T>
Bool_t DbiWriter< T >::Open ( const ContextRange vr,
Int_t  aggNo,
Dbi::SubSite  subsite = 0,
Dbi::Task  task = 0,
TimeStamp  versionDate = TimeStamp(),
UInt_t  dbNo = 0,
const std::string &  logComment = "" 
)

template<class T>
Bool_t DbiWriter< T >::Open ( const DbiValidityRec vrec,
const string &  dbName,
const std::string &  logComment = "" 
)

template<class T>
Bool_t DbiWriter< T >::Open ( const DbiValidityRec vrec,
UInt_t  dbNo = 0,
const std::string &  logComment = "" 
)

template<class T>
DbiWriter<T>& DbiWriter< T >::operator<< ( const T &  row  ) 

template<class T>
Bool_t DbiWriter< T >::NeedsLogEntry (  )  const [private]

template<class T>
Bool_t DbiWriter< T >::WritingToMaster (  )  const [private]

template<class T>
DbiWriter& DbiWriter< T >::operator= ( const DbiWriter< T > &   )  [private]

template<class T>
void DbiWriter< T >::CompleteOpen ( UInt_t  dbNo = 0,
const std::string &  logComment = "" 
) [private]

template<class T>
void DbiWriter< T >::Reset (  )  [private]

template<class T>
static DbiTableProxy& DbiWriter< T >::GetTableProxy (  )  [static, private]

template<class T>
static DbiTableProxy& DbiWriter< T >::GetTableProxy ( const std::string &  tableName  )  [static, private]


Member Data Documentation

template<class T>
Int_t DbiWriter< T >::fAggregateNo [private]

Aggregate noumber for set.

Definition at line 143 of file DbiWriter.h.

template<class T>
UInt_t DbiWriter< T >::fDbNo [private]

Database number in cascade.

Definition at line 146 of file DbiWriter.h.

template<class T>
DbiSqlValPacket* DbiWriter< T >::fPacket [private]

The assembled record to be output. Never null.

Definition at line 149 of file DbiWriter.h.

template<class T>
Int_t DbiWriter< T >::fRequireGlobalSeqno [private]

Controls SEQNO type (see DbiCascader::AllocateSeqNo).

Definition at line 152 of file DbiWriter.h.

template<class T>
DbiTableProxy* DbiWriter< T >::fTableProxy [private]

Proxy to associated table.

Definition at line 155 of file DbiWriter.h.

template<class T>
std::string DbiWriter< T >::fTableName [private]

Associated table name.

Definition at line 158 of file DbiWriter.h.

template<class T>
Bool_t DbiWriter< T >::fUseOverlayVersionDate [private]

Use overlay version date if true.

Definition at line 161 of file DbiWriter.h.

template<class T>
DbiValidityRec* DbiWriter< T >::fValidRec [private]

Validity record. May be =0 if closed.

Definition at line 164 of file DbiWriter.h.

template<class T>
DbiLogEntry DbiWriter< T >::fLogEntry [private]

Associated log entry (if any) for update.

Definition at line 167 of file DbiWriter.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 Mon Apr 11 20:15:49 2011 for DatabaseInterface by doxygen 1.4.7