/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 | Static Private Member Functions | Private Attributes
DbiWriter< T > Class Template Reference

#include <DbiWriter.h>

Collaboration diagram for DbiWriter< T >:
Collaboration graph
[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 ()
void Init ()
 initialize some config data members
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.
UInt_t GetNumSqlStmts () const
DbiValidityRecGetValidityRec () const
UInt_t GetLastSeqnoClosed () const
void SetDbNo (UInt_t dbNo)
void SetDbName (const string &dbName)
void SetLogComment (const std::string &reason)
void SetRequireGlobalSeqno (Int_t requireGlobal)
void SetOverlayVersionDate ()
void SetTimeStartFlooredVersionDate (Bool_t tfvd)
Bool_t GetTimeStartFlooredVersionDate ()
void SetRequireUniqueVersionDate (Bool_t requireUnique)
Bool_t GetRequireUniqueVersionDate ()
void SetUniqueVersionDateSiteMask (UInt_t siteMask)
void SetUniqueVersionDateSimMask (UInt_t simMask)
UInt_t GetUniqueVersionDateSiteMask ()
UInt_t GetUniqueVersionDateSimMask ()
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.
UInt_t fLastSeqnoClosed
 SEQNO from the last close.
Bool_t fRequireUniqueVersionDate
 uniqing switch
UInt_t fUniqueVersionDateSiteMask
 uniqing sitemask config
UInt_t fUniqueVersionDateSimMask
 uniqing simmask config
Bool_t fTimeStartFlooredVersionDate
 restricts overlay version date to be gt or equal to TIMESTART of the contextrange

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>
void DbiWriter< T >::Init ( )

initialize some config data members

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>
UInt_t DbiWriter< T >::GetNumSqlStmts ( ) const
template<class T>
DbiValidityRec* DbiWriter< T >::GetValidityRec ( ) const
template<class T>
UInt_t DbiWriter< T >::GetLastSeqnoClosed ( ) const
template<class T>
void DbiWriter< T >::SetDbNo ( UInt_t  dbNo) [inline]

Definition at line 97 of file DbiWriter.h.

{ 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 101 of file DbiWriter.h.

{fRequireGlobalSeqno = requireGlobal;}
template<class T>
void DbiWriter< T >::SetOverlayVersionDate ( ) [inline]

Definition at line 102 of file DbiWriter.h.

template<class T>
void DbiWriter< T >::SetTimeStartFlooredVersionDate ( Bool_t  tfvd) [inline]

Definition at line 106 of file DbiWriter.h.

template<class T>
Bool_t DbiWriter< T >::GetTimeStartFlooredVersionDate ( ) [inline]

Definition at line 107 of file DbiWriter.h.

template<class T>
void DbiWriter< T >::SetRequireUniqueVersionDate ( Bool_t  requireUnique) [inline]

Definition at line 111 of file DbiWriter.h.

{fRequireUniqueVersionDate = requireUnique ; } 
template<class T>
Bool_t DbiWriter< T >::GetRequireUniqueVersionDate ( ) [inline]

Definition at line 112 of file DbiWriter.h.

template<class T>
void DbiWriter< T >::SetUniqueVersionDateSiteMask ( UInt_t  siteMask) [inline]

Definition at line 120 of file DbiWriter.h.

template<class T>
void DbiWriter< T >::SetUniqueVersionDateSimMask ( UInt_t  simMask) [inline]

Definition at line 121 of file DbiWriter.h.

{ fUniqueVersionDateSimMask  = simMask ; } 
template<class T>
UInt_t DbiWriter< T >::GetUniqueVersionDateSiteMask ( ) [inline]

Definition at line 122 of file DbiWriter.h.

template<class T>
UInt_t DbiWriter< T >::GetUniqueVersionDateSimMask ( ) [inline]

Definition at line 123 of file DbiWriter.h.

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

Definition at line 127 of file DbiWriter.h.

{ 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 174 of file DbiWriter.h.

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

Database number in cascade.

Definition at line 177 of file DbiWriter.h.

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

The assembled record to be output. Never null.

Definition at line 180 of file DbiWriter.h.

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

Controls SEQNO type (see DbiCascader::AllocateSeqNo)

Definition at line 183 of file DbiWriter.h.

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

Proxy to associated table.

Definition at line 186 of file DbiWriter.h.

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

Associated table name.

Definition at line 189 of file DbiWriter.h.

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

Use overlay version date if true.

Definition at line 192 of file DbiWriter.h.

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

Validity record. May be =0 if closed.

Definition at line 195 of file DbiWriter.h.

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

Associated log entry (if any) for update.

Definition at line 198 of file DbiWriter.h.

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

SEQNO from the last close.

Definition at line 201 of file DbiWriter.h.

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

uniqing switch

Definition at line 204 of file DbiWriter.h.

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

uniqing sitemask config

Definition at line 207 of file DbiWriter.h.

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

uniqing simmask config

Definition at line 210 of file DbiWriter.h.

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

restricts overlay version date to be gt or equal to TIMESTART of the contextrange

Definition at line 213 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 Fri May 16 2014 09:56:46 for DatabaseInterface by doxygen 1.7.4