/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Private Member Functions | Private Attributes
DbiDBProxy Class Reference

#include <DbiDBProxy.h>

Collaboration diagram for DbiDBProxy:
Collaboration graph
[legend]

List of all members.

Public Types

typedef const std::vector< UInt_t > SeqList_t

Public Member Functions

 DbiDBProxy (DbiCascader &cascader, const string &tableName, const DbiTableMetaData *metaData, const DbiTableMetaData *metaValid, const DbiTableProxy *tableProxy)
virtual ~DbiDBProxy ()
UInt_t GetNumDb () const
const string & GetTableName () const
const DbiTableProxyGetTableProxy () const
void StoreMetaData (DbiTableMetaData &metaData) const
Bool_t TableExists () const
UInt_t FindSeqNoWithVersionDate (const TimeStamp &versionDate, const DbiValidityRec &vrec, UInt_t dbNo, UInt_t uniqingSiteMask=0, UInt_t uniqingSimMask=0, UInt_t excludingSeqno=0, UInt_t useTimeGate=0, Bool_t count=false) const
UInt_t FindSeqNoWithVersionDate (const TimeStamp &versionDate, const Context &vc, const Dbi::SubSite &subsite, const Dbi::Task &task, UInt_t dbNo, UInt_t uniqingSiteMask, UInt_t uniqingSimMask, UInt_t excludingSeqno, UInt_t useTimeGate, Bool_t count) const
void FindTimeBoundaries (const Context &vc, const Dbi::SubSite &subsite, const Dbi::Task &task, UInt_t dbNo, TimeStamp earliestCreate, TimeStamp &start, TimeStamp &end) const
DbiResultSetQueryAllValidities (UInt_t dbNo, UInt_t seqNo=0) const
DbiResultSetQuerySeqNo (UInt_t seqNo, UInt_t dbNo) const
DbiResultSetQuerySeqNos (SeqList_t &seqNos, UInt_t dbNo, const string &sqlData="", const string &fillOpts="") const
 Secondary query for aggregate and extended context queries.
DbiResultSetQueryValidity (const Context &vc, const Dbi::SubSite &subsite, const Dbi::Task &task, UInt_t dbNo) const
DbiResultSetQueryValidity (const string &context, const Dbi::SubSite &subsite, const Dbi::Task &task, UInt_t dbNo) const
DbiResultSetQueryValidity (UInt_t seqNo, UInt_t dbNo) const
Bool_t ReplaceInsertDate (const TimeStamp &ts, UInt_t SeqNo, UInt_t dbNo) const
Bool_t RemoveSeqNo (UInt_t seqNo, UInt_t dbNo) const
Bool_t ReplaceSeqNo (UInt_t oldSeqNo, UInt_t newSeqNo, UInt_t dbNo) const
void SetSqlCondition (const string &sql)
void SetExtraOrdering (const string &sql)
string GetSqlCondition ()
string GetExtraOrdering ()

Private Member Functions

Bool_t ReplaceSeqNoOracle (UInt_t oldSeqNo, UInt_t newSeqNo, UInt_t dbNo) const
 DbiDBProxy (const DbiDBProxy &)
DbiDBProxyoperator= (const DbiDBProxy &)

Private Attributes

DbiCascaderfCascader
 Reference to one and only cascader.
const DbiTableMetaDatafMetaData
 Owned by DbiTableProxy.
const DbiTableMetaDatafMetaValid
 Owned by DbiTableProxy.
string fSqlCondition
 Optional condition to be applied.
string fTableName
 Table Name.
const DbiTableProxyfTableProxy
 Owning DbiTableProxy.
string fVldSuffix
 Vld or Validity.
string fExtraOrdering
 extra ordering : impinged between "order by VERSIONDATE desc" and the terminating ";" when non-blank is auto-preceded with a "," examples of values useful for debugging "SEQNO asc" "SEQNO desc" "TIMESTART asc" "TIMESTART desc"

Detailed Description

Id:
DbiDBProxy.h,v 1.27 2007/04/26 14:19:57 west Exp

Definition at line 51 of file DbiDBProxy.h.


Member Typedef Documentation

typedef const std::vector<UInt_t> DbiDBProxy::SeqList_t

Definition at line 57 of file DbiDBProxy.h.


Constructor & Destructor Documentation

DbiDBProxy::DbiDBProxy ( DbiCascader cascader,
const string &  tableName,
const DbiTableMetaData metaData,
const DbiTableMetaData metaValid,
const DbiTableProxy tableProxy 
)
virtual DbiDBProxy::~DbiDBProxy ( ) [virtual]
DbiDBProxy::DbiDBProxy ( const DbiDBProxy ) [private]

Member Function Documentation

UInt_t DbiDBProxy::GetNumDb ( ) const
const string& DbiDBProxy::GetTableName ( ) const [inline]

Definition at line 70 of file DbiDBProxy.h.

{ return fTableName; }
const DbiTableProxy* DbiDBProxy::GetTableProxy ( ) const [inline]

Definition at line 71 of file DbiDBProxy.h.

{ return fTableProxy; }
void DbiDBProxy::StoreMetaData ( DbiTableMetaData metaData) const
Bool_t DbiDBProxy::TableExists ( ) const
UInt_t DbiDBProxy::FindSeqNoWithVersionDate ( const TimeStamp versionDate,
const DbiValidityRec vrec,
UInt_t  dbNo,
UInt_t  uniqingSiteMask = 0,
UInt_t  uniqingSimMask = 0,
UInt_t  excludingSeqno = 0,
UInt_t  useTimeGate = 0,
Bool_t  count = false 
) const
UInt_t DbiDBProxy::FindSeqNoWithVersionDate ( const TimeStamp versionDate,
const Context vc,
const Dbi::SubSite subsite,
const Dbi::Task task,
UInt_t  dbNo,
UInt_t  uniqingSiteMask,
UInt_t  uniqingSimMask,
UInt_t  excludingSeqno,
UInt_t  useTimeGate,
Bool_t  count 
) const
void DbiDBProxy::FindTimeBoundaries ( const Context vc,
const Dbi::SubSite subsite,
const Dbi::Task task,
UInt_t  dbNo,
TimeStamp  earliestCreate,
TimeStamp start,
TimeStamp end 
) const
DbiResultSet* DbiDBProxy::QueryAllValidities ( UInt_t  dbNo,
UInt_t  seqNo = 0 
) const
DbiResultSet* DbiDBProxy::QuerySeqNo ( UInt_t  seqNo,
UInt_t  dbNo 
) const
DbiResultSet* DbiDBProxy::QuerySeqNos ( SeqList_t seqNos,
UInt_t  dbNo,
const string &  sqlData = "",
const string &  fillOpts = "" 
) const

Secondary query for aggregate and extended context queries.

DbiResultSet* DbiDBProxy::QueryValidity ( const Context vc,
const Dbi::SubSite subsite,
const Dbi::Task task,
UInt_t  dbNo 
) const
DbiResultSet* DbiDBProxy::QueryValidity ( const string &  context,
const Dbi::SubSite subsite,
const Dbi::Task task,
UInt_t  dbNo 
) const
DbiResultSet* DbiDBProxy::QueryValidity ( UInt_t  seqNo,
UInt_t  dbNo 
) const
Bool_t DbiDBProxy::ReplaceInsertDate ( const TimeStamp ts,
UInt_t  SeqNo,
UInt_t  dbNo 
) const
Bool_t DbiDBProxy::RemoveSeqNo ( UInt_t  seqNo,
UInt_t  dbNo 
) const
Bool_t DbiDBProxy::ReplaceSeqNo ( UInt_t  oldSeqNo,
UInt_t  newSeqNo,
UInt_t  dbNo 
) const
void DbiDBProxy::SetSqlCondition ( const string &  sql) [inline]

Definition at line 138 of file DbiDBProxy.h.

                                                   { 
                                                  fSqlCondition = sql; }
void DbiDBProxy::SetExtraOrdering ( const string &  sql) [inline]

Definition at line 141 of file DbiDBProxy.h.

                                                    { 
                                                  fExtraOrdering = sql; }
string DbiDBProxy::GetSqlCondition ( ) [inline]

Definition at line 145 of file DbiDBProxy.h.

{ return fSqlCondition ; }
string DbiDBProxy::GetExtraOrdering ( ) [inline]

Definition at line 147 of file DbiDBProxy.h.

{ return fExtraOrdering ; }
Bool_t DbiDBProxy::ReplaceSeqNoOracle ( UInt_t  oldSeqNo,
UInt_t  newSeqNo,
UInt_t  dbNo 
) const [private]
DbiDBProxy& DbiDBProxy::operator= ( const DbiDBProxy ) [private]

Member Data Documentation

Reference to one and only cascader.

Definition at line 163 of file DbiDBProxy.h.

Owned by DbiTableProxy.

Definition at line 166 of file DbiDBProxy.h.

Owned by DbiTableProxy.

Definition at line 169 of file DbiDBProxy.h.

string DbiDBProxy::fSqlCondition [private]

Optional condition to be applied.

See Usage Notes.

Definition at line 173 of file DbiDBProxy.h.

string DbiDBProxy::fTableName [private]

Table Name.

Definition at line 176 of file DbiDBProxy.h.

Owning DbiTableProxy.

Definition at line 179 of file DbiDBProxy.h.

string DbiDBProxy::fVldSuffix [private]

Vld or Validity.

Definition at line 182 of file DbiDBProxy.h.

string DbiDBProxy::fExtraOrdering [private]

extra ordering : impinged between "order by VERSIONDATE desc" and the terminating ";" when non-blank is auto-preceded with a "," examples of values useful for debugging "SEQNO asc" "SEQNO desc" "TIMESTART asc" "TIMESTART desc"

Definition at line 186 of file DbiDBProxy.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