#include <DbiWriter.h>
Collaboration diagram for DbiWriter< T >:
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 () |
DbiTableProxy & | TableProxy () 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 &) | |
DbiWriter & | operator= (const DbiWriter &) |
void | CompleteOpen (UInt_t dbNo=0, const std::string &logComment="") |
void | Reset () |
Static Private Member Functions | |
static DbiTableProxy & | GetTableProxy () |
static DbiTableProxy & | GetTableProxy (const std::string &tableName) |
Private Attributes | |
Int_t | fAggregateNo |
Aggregate noumber for set. | |
UInt_t | fDbNo |
Database number in cascade. | |
DbiSqlValPacket * | fPacket |
The assembled record to be output. Never null. | |
Int_t | fRequireGlobalSeqno |
Controls SEQNO type (see DbiCascader::AllocateSeqNo). | |
DbiTableProxy * | fTableProxy |
Proxy to associated table. | |
std::string | fTableName |
Associated table name. | |
Bool_t | fUseOverlayVersionDate |
Use overlay version date if true. | |
DbiValidityRec * | fValidRec |
Validity record. May be =0 if closed. | |
DbiLogEntry | fLogEntry |
Associated log entry (if any) for update. |
Definition at line 45 of file DbiWriter.h.
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 = "" | |||
) |
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 = "" | |||
) |
DbiWriter< T >::DbiWriter | ( | const DbiValidityRec & | vrec, | |
const std::string & | dbName, | |||
const std::string & | logComment = "" | |||
) |
DbiWriter< T >::DbiWriter | ( | const DbiValidityRec & | vrec, | |
UInt_t | dbNo = 0 , |
|||
const std::string & | logComment = "" | |||
) |
DbiTableProxy& DbiWriter< T >::TableProxy | ( | ) | const |
Bool_t DbiWriter< T >::IsOpen | ( | Bool_t | reportErrors = kTRUE |
) | const |
Open and ready to receive data.
Bool_t DbiWriter< T >::CanOutput | ( | Bool_t | reportErrors = kTRUE |
) | const |
Open and ready to receive/output data.
void DbiWriter< T >::SetDbNo | ( | UInt_t | dbNo | ) | [inline] |
void DbiWriter< T >::SetDbName | ( | const string & | dbName | ) |
void DbiWriter< T >::SetLogComment | ( | const std::string & | reason | ) |
void DbiWriter< T >::SetRequireGlobalSeqno | ( | Int_t | requireGlobal | ) | [inline] |
void DbiWriter< T >::SetOverlayVersionDate | ( | ) | [inline] |
void DbiWriter< T >::Abort | ( | ) | [inline] |
Bool_t DbiWriter< T >::Close | ( | const char * | fileSpec = 0 |
) |
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 = "" | |||
) |
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 = "" | |||
) |
Bool_t DbiWriter< T >::Open | ( | const DbiValidityRec & | vrec, | |
const string & | dbName, | |||
const std::string & | logComment = "" | |||
) |
Bool_t DbiWriter< T >::Open | ( | const DbiValidityRec & | vrec, | |
UInt_t | dbNo = 0 , |
|||
const std::string & | logComment = "" | |||
) |
Bool_t DbiWriter< T >::NeedsLogEntry | ( | ) | const [private] |
Bool_t DbiWriter< T >::WritingToMaster | ( | ) | const [private] |
void DbiWriter< T >::CompleteOpen | ( | UInt_t | dbNo = 0 , |
|
const std::string & | logComment = "" | |||
) | [private] |
void DbiWriter< T >::Reset | ( | ) | [private] |
static DbiTableProxy& DbiWriter< T >::GetTableProxy | ( | ) | [static, private] |
static DbiTableProxy& DbiWriter< T >::GetTableProxy | ( | const std::string & | tableName | ) | [static, private] |
Int_t DbiWriter< T >::fAggregateNo [private] |
DbiSqlValPacket* DbiWriter< T >::fPacket [private] |
Int_t DbiWriter< T >::fRequireGlobalSeqno [private] |
DbiTableProxy* DbiWriter< T >::fTableProxy [private] |
std::string DbiWriter< T >::fTableName [private] |
Bool_t DbiWriter< T >::fUseOverlayVersionDate [private] |
DbiValidityRec* DbiWriter< T >::fValidRec [private] |
DbiLogEntry DbiWriter< T >::fLogEntry [private] |