#include <DbiRowStream.h>
Inheritance diagram for DbiRowStream:

Public Member Functions | |
| DbiRowStream (const DbiTableMetaData *metaData) | |
| virtual | ~DbiRowStream () |
| virtual const DbiFieldType & | ColFieldType (UInt_t col) const |
| virtual string | ColName (UInt_t col) const |
| virtual const DbiFieldType & | CurColFieldType () const |
| virtual string | CurColName () const |
| virtual UInt_t | CurColNum () const |
| Bool_t | HasRowCounter () const |
| virtual UInt_t | NumCols () const |
| virtual string | TableName () const |
| virtual string | TableNameTc () const |
| virtual const DbiTableMetaData * | MetaData () const |
| virtual void | DecrementCurCol () |
| virtual void | IncrementCurCol () |
Protected Member Functions | |
| virtual void | ClearCurCol () |
Private Attributes | |
| UShort_t | fCurCol |
| Current column in query (1..fNumCols). | |
| Bool_t | fHasRowCounter |
| True if main table has ROW_COUNTER as second column. | |
| const DbiTableMetaData * | fMetaData |
| Owned by DbiTableProxy. | |
DatabaseInterface
Contact: n.west1@physics.ox.ac.uk
Definition at line 30 of file DbiRowStream.h.
|
|
Definition at line 45 of file DbiRowStream.cxx. 00045 : 00046 fCurCol(1), 00047 fHasRowCounter(kFALSE), 00048 fMetaData(metaData) 00049 { 00050 // 00051 // 00052 // Purpose: Default constructor 00053 // 00054 // Arguments: 00055 // metaData in Meta data for table. 00056 // tableName in Table name. 00057 // 00058 // Return: n/a 00059 // 00060 // Contact: N. West 00061 // 00062 // Specification:- 00063 // ============= 00064 // 00065 // o Create RowStream. 00066 00067 00068 // Program Notes:- 00069 // ============= 00070 00071 // None. 00072 00073 LEA_CTOR //Leak Checker 00074 00075 MSG("Dbi", Msg::kVerbose) << "Creating DbiRowStream" << endl; 00076 fHasRowCounter = fMetaData->HasRowCounter(); 00077 00078 }
|
|
|
Definition at line 83 of file DbiRowStream.cxx. 00083 {
00084 //
00085 //
00086 // Purpose: Destructor
00087 //
00088 // Arguments:
00089 // None.
00090 //
00091 // Return: n/a
00092 //
00093 // Contact: N. West
00094 //
00095 // Specification:-
00096 // =============
00097 //
00098 // o Destroy RowStream.
00099
00100
00101 // Program Notes:-
00102 // =============
00103
00104 // None.
00105
00106 LEA_DTOR //Leak Checker
00107
00108 MSG("Dbi", Msg::kVerbose) << "Destroying DbiRowStream" << endl;
00109
00110 }
|
|
|
Definition at line 63 of file DbiRowStream.h. Referenced by DbiOutRowStream::Clear(), and DbiResultSet::FetchRow(). 00063 { fCurCol = 1; }
|
|
|
Definition at line 114 of file DbiRowStream.cxx. References DbiTableMetaData::ColFieldType(), and fMetaData. Referenced by DbiResultSet::GetStringFromTSQL(). 00114 {
00115 //
00116 //
00117 // Purpose: Return specified column type, if defined
00118 //
00119 // Arguments: None.
00120
00121 return fMetaData->ColFieldType(col);
00122 }
|
|
|
Definition at line 125 of file DbiRowStream.cxx. References DbiTableMetaData::ColName(), and fMetaData. 00125 {
00126 //
00127 //
00128 // Purpose: Return specified column name, if defined
00129
00130 return fMetaData->ColName(col);
00131 }
|
|
|
Definition at line 134 of file DbiRowStream.cxx. References DbiTableMetaData::ColFieldType(), fCurCol, and fMetaData. Referenced by DbiConfigSet::Fill(), DbiResultSet::LoadCurValue(), DbiDBProxy::ReplaceSeqNoOracle(), DbiOutRowStream::Store(), and DbiOutRowStream::StoreDefaultIfInvalid(). 00134 {
00135 //
00136 //
00137 // Purpose: Return current column type, if defined
00138 //
00139 // Arguments: None.
00140 //
00141 // Return: Current column type, if defined. Unknown otherwise.
00142 //
00143 // Contact: N. West
00144 //
00145 // Specification:-
00146 // =============
00147 //
00148 // o Current column name, if defined. unknown otherwise.
00149
00150 // Program Notes:-
00151 // =============
00152
00153 // None.
00154
00155 return fMetaData->ColFieldType(fCurCol);
00156 }
|
|
|
|
|
Definition at line 55 of file DbiRowStream.h. Referenced by DbiResultAgg::DbiResultAgg(), and DbiResultNonAgg::DbiResultNonAgg().
|
|
|
|
|
Definition at line 52 of file DbiRowStream.h. Referenced by DbiResultSet::AsString(), and DbiResultSet::RowAsCsv(). 00052 { return fMetaData; }
|
|
|
|
Definition at line 213 of file DbiRowStream.cxx. References fMetaData, DbiTableMetaData::TableName(), and UtilString::ToUpper(). Referenced by SpillServerMon::Fill(), SimPmtM16Crosstalk::Fill(), PulserTimeDrift::Fill(), DbuNearRunQuality::Fill(), DbuFarRunQuality::Fill(), CalVaLinearity::Fill(), CalTimeJump::Fill(), CalPmtDrift::Fill(), BfieldCoilCurrent::Fill(), and BadHardware::Fill(). 00213 {
00214 //
00215 //
00216 // Purpose: Return table name in upper case.
00217 //
00218
00219 return UtilString::ToUpper(fMetaData->TableName());
00220 }
|
|
|
Definition at line 224 of file DbiRowStream.cxx. References fMetaData, and DbiTableMetaData::TableName(). Referenced by DbiResultSet::AsString(), DbiResultSet::CurColExists(), DbiResult::DbiResult(), and DbiOutRowStream::StoreDefaultIfInvalid(). 00224 {
00225 //
00226 //
00227 // Purpose: Return table name in true case.
00228
00229 return fMetaData->TableName();
00230 }
|
|
|
Current column in query (1..fNumCols).
Definition at line 71 of file DbiRowStream.h. Referenced by CurColFieldType(), and CurColName(). |
|
|
True if main table has ROW_COUNTER as second column.
Definition at line 74 of file DbiRowStream.h. |
|
|
Owned by DbiTableProxy.
Definition at line 77 of file DbiRowStream.h. Referenced by ColFieldType(), ColName(), CurColFieldType(), CurColName(), NumCols(), TableName(), and TableNameTc(). |
1.3.9.1