DbiRowStream Class Reference

#include <DbiRowStream.h>

Inheritance diagram for DbiRowStream:
DbiOutRowStream DbiResultSet

List of all members.

Public Member Functions

 DbiRowStream (const DbiTableMetaData *metaData)
virtual ~DbiRowStream ()
virtual const DbiFieldTypeColFieldType (UInt_t col) const
virtual string ColName (UInt_t col) const
virtual const DbiFieldTypeCurColFieldType () 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 DbiTableMetaDataMetaData () 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 DbiTableMetaDatafMetaData
 Owned by DbiTableProxy.

Detailed Description

Id
DbiRowStream.h,v 1.7 2006/08/08 10:51:32 west Exp

Definition at line 30 of file DbiRowStream.h.


Constructor & Destructor Documentation

DbiRowStream::DbiRowStream ( const DbiTableMetaData metaData  ) 

Definition at line 45 of file DbiRowStream.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

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 }

DbiRowStream::~DbiRowStream (  )  [virtual]

Definition at line 83 of file DbiRowStream.cxx.

References Msg::kVerbose, LEA_DTOR, and MSG.

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 }


Member Function Documentation

virtual void DbiRowStream::ClearCurCol (  )  [inline, protected, virtual]

Definition at line 63 of file DbiRowStream.h.

References fCurCol.

Referenced by DbiOutRowStream::Clear(), and DbiResultSet::FetchRow().

00063 { fCurCol = 1; }

const DbiFieldType & DbiRowStream::ColFieldType ( UInt_t  col  )  const [virtual]

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 }

string DbiRowStream::ColName ( UInt_t  col  )  const [virtual]

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 }

const DbiFieldType & DbiRowStream::CurColFieldType (  )  const [virtual]

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 }

string DbiRowStream::CurColName (  )  const [virtual]

Definition at line 160 of file DbiRowStream.cxx.

References DbiTableMetaData::ColName(), fCurCol, and fMetaData.

Referenced by DbiResultNonAgg::DbiResultNonAgg(), FabSteelPlate::Fill(), UgliDbiStripStruct::Fill(), SpillServerMon::Fill(), SimPmtM64Crosstalk::Fill(), PlexPixelSpotToStripEnd::Fill(), FabPlnInstall::Fill(), CalDetTOFRange::Fill(), PlexVetoShieldMuxToMdl::Fill(), PlexPinDiodeToLed::Fill(), CalDetCERRange::Fill(), BfieldMapData::Fill(), DbuFarRunQuality::Fill(), BfldDbiPlaneMap::Fill(), UgliDbiSteelPln::Fill(), PulserTimeDrift::Fill(), Dcs_Mag_Cal::Fill(), DbiDemoData1::Fill(), CandDigitBadChannels::Fill(), CalTimeCalibration::Fill(), CalStripToStrip::Fill(), PlexStripEndToLed::Fill(), CalADCtoPE::Fill(), UgliDbiScintPln::Fill(), PlexRawChannelToPinDiode::Fill(), PlexRawChannelReadoutType::Fill(), DbiConfigSet::Fill(), CalDetBeamMomentum::Fill(), UgliDbiStrip::Fill(), UgliDbiScintMdlStruct::Fill(), ChannelsToFilter::Fill(), CalVaLinearity::Fill(), CalPmtDrift::Fill(), DbuNearRunQuality::Fill(), CalTimeJump::Fill(), PulserTimingCardSetting::Fill(), CalStripAtten::Fill(), UgliDbiScintMdl::Fill(), SpillTimeCalibration::Fill(), CalTempCalibration::Fill(), CalMapperFits::Fill(), CalDetCERTimeWin::Fill(), UgliDbiGeometry::Fill(), PlexPixelToRawChannel::Fill(), FabNDThickness::Fill(), Dcs_Env_Cal::Fill(), CalMIPCalibration::Fill(), UgliDbiScintPlnStruct::Fill(), SpillTimeND::Fill(), MCFilePOTInfo::Fill(), FarTimingFid::Fill(), SimPmtM16Crosstalk::Fill(), CalDetOverlapWin::Fill(), CalADCtoPEs::Fill(), BfieldMapHeader::Fill(), BfieldCoilCurrent::Fill(), and DbiOutRowStream::StoreDefaultIfInvalid().

00160                                       {
00161 //
00162 //
00163 //  Purpose: Return current column name, if defined 
00164 //
00165 //  Arguments: None.
00166 //
00167 //  Return: Current column name, if defined. "Undefined" otherwise.  
00168 //
00169 //  Contact:   N. West
00170 //
00171 //  Specification:-
00172 //  =============
00173 //
00174 //  o Current column name, if defined. "Undefined" otherwise.
00175 
00176 //  Program Notes:-
00177 //  =============
00178 
00179 //  None.
00180 
00181   return fMetaData->ColName(fCurCol);
00182 }

virtual UInt_t DbiRowStream::CurColNum (  )  const [inline, virtual]
virtual void DbiRowStream::DecrementCurCol (  )  [inline, virtual]

Definition at line 55 of file DbiRowStream.h.

References fCurCol.

Referenced by DbiResultNonAgg::DbiResultNonAgg().

00055                                   { 
00056                             fCurCol = (fCurCol <= 1) ? 1 : fCurCol -1; }

Bool_t DbiRowStream::HasRowCounter (  )  const [inline]

Definition at line 47 of file DbiRowStream.h.

References fHasRowCounter.

Referenced by DbiSqlValPacket::AddRow(), DbiResultNonAgg::DbiResultNonAgg(), FabSteelPlate::Fill(), UgliDbiStripStruct::Fill(), SimPmtM64Crosstalk::Fill(), PlexPixelSpotToStripEnd::Fill(), FabPlnInstall::Fill(), CalDetTOFRange::Fill(), PlexVetoShieldMuxToMdl::Fill(), PlexPinDiodeToLed::Fill(), CalDetCERRange::Fill(), BfieldMapData::Fill(), BfldDbiPlaneMap::Fill(), UgliDbiSteelPln::Fill(), PulserTimeDrift::Fill(), Dcs_Mag_Cal::Fill(), CandDigitBadChannels::Fill(), CalTimeCalibration::Fill(), CalStripToStrip::Fill(), PlexStripEndToLed::Fill(), CalADCtoPE::Fill(), UgliDbiScintPln::Fill(), PlexRawChannelToPinDiode::Fill(), PlexRawChannelReadoutType::Fill(), DbiConfigSet::Fill(), CalDetBeamMomentum::Fill(), UgliDbiStrip::Fill(), UgliDbiScintMdlStruct::Fill(), DbuRunSummary::Fill(), ChannelsToFilter::Fill(), CalVaLinearity::Fill(), CalPmtDrift::Fill(), CalTimeJump::Fill(), PulserTimingCardSetting::Fill(), CalStripAtten::Fill(), UgliDbiScintMdl::Fill(), DbuDaqFileSummary::Fill(), SpillTimeCalibration::Fill(), CalTempCalibration::Fill(), CalMapperFits::Fill(), CalDetCERTimeWin::Fill(), UgliDbiGeometry::Fill(), PlexPixelToRawChannel::Fill(), FabNDThickness::Fill(), Dcs_Env_Cal::Fill(), CalMIPCalibration::Fill(), UgliDbiScintPlnStruct::Fill(), SpillTimeND::Fill(), MCFilePOTInfo::Fill(), FarTimingFid::Fill(), SimPmtM16Crosstalk::Fill(), CalDetOverlapWin::Fill(), CalADCtoPEs::Fill(), BfieldMapHeader::Fill(), BfieldCoilCurrent::Fill(), and BfldDbiPlaneMap::Store().

00047 { return fHasRowCounter; }

virtual void DbiRowStream::IncrementCurCol (  )  [inline, virtual]

Definition at line 59 of file DbiRowStream.h.

References fCurCol.

Referenced by DbiResultSet::AsString(), DbiResultNonAgg::DbiResultNonAgg(), FabSteelPlate::Fill(), UgliDbiStripStruct::Fill(), SpillServerMon::Fill(), SimPmtM64Crosstalk::Fill(), PlexPixelSpotToStripEnd::Fill(), FabPlnInstall::Fill(), CalDetTOFRange::Fill(), PlexVetoShieldMuxToMdl::Fill(), PlexPinDiodeToLed::Fill(), CalDetCERRange::Fill(), BfieldMapData::Fill(), DbuFarRunQuality::Fill(), BfldDbiPlaneMap::Fill(), UgliDbiSteelPln::Fill(), PulserTimeDrift::Fill(), Dcs_Mag_Cal::Fill(), DbiDemoData1::Fill(), CandDigitBadChannels::Fill(), CalTimeCalibration::Fill(), CalStripToStrip::Fill(), PlexStripEndToLed::Fill(), CalADCtoPE::Fill(), UgliDbiScintPln::Fill(), PlexRawChannelToPinDiode::Fill(), PlexRawChannelReadoutType::Fill(), DbiConfigSet::Fill(), CalDetBeamMomentum::Fill(), UgliDbiStrip::Fill(), UgliDbiScintMdlStruct::Fill(), ChannelsToFilter::Fill(), CalVaLinearity::Fill(), CalPmtDrift::Fill(), DbuNearRunQuality::Fill(), CalTimeJump::Fill(), PulserTimingCardSetting::Fill(), CalStripAtten::Fill(), UgliDbiScintMdl::Fill(), SpillTimeCalibration::Fill(), CalTempCalibration::Fill(), CalMapperFits::Fill(), CalDetCERTimeWin::Fill(), UgliDbiGeometry::Fill(), PlexPixelToRawChannel::Fill(), FabNDThickness::Fill(), Dcs_Env_Cal::Fill(), CalMIPCalibration::Fill(), UgliDbiScintPlnStruct::Fill(), SpillTimeND::Fill(), MCFilePOTInfo::Fill(), FarTimingFid::Fill(), SimPmtM16Crosstalk::Fill(), CalDetOverlapWin::Fill(), CalADCtoPEs::Fill(), BfieldMapHeader::Fill(), BfieldCoilCurrent::Fill(), DbiDBProxy::ReplaceSeqNoOracle(), and DbiOutRowStream::Store().

00059 { ++fCurCol; }

virtual const DbiTableMetaData* DbiRowStream::MetaData (  )  const [inline, virtual]

Definition at line 52 of file DbiRowStream.h.

References fMetaData.

Referenced by DbiResultSet::AsString(), and DbiResultSet::RowAsCsv().

00052 { return fMetaData; }

UInt_t DbiRowStream::NumCols (  )  const [virtual]

Definition at line 186 of file DbiRowStream.cxx.

References fMetaData, and DbiTableMetaData::NumCols().

Referenced by DbiResultSet::CurColExists(), FabSteelPlate::Fill(), UgliDbiStripStruct::Fill(), SpillServerMon::Fill(), SimPmtM64Crosstalk::Fill(), PlexPixelSpotToStripEnd::Fill(), FabPlnInstall::Fill(), CalDetTOFRange::Fill(), PlexVetoShieldMuxToMdl::Fill(), PlexPinDiodeToLed::Fill(), CalDetCERRange::Fill(), BfieldMapData::Fill(), DbuFarRunQuality::Fill(), BfldDbiPlaneMap::Fill(), UgliDbiSteelPln::Fill(), PulserTimeDrift::Fill(), Dcs_Mag_Cal::Fill(), DbiDemoData1::Fill(), CandDigitBadChannels::Fill(), CalTimeCalibration::Fill(), CalStripToStrip::Fill(), PlexStripEndToLed::Fill(), CalADCtoPE::Fill(), UgliDbiScintPln::Fill(), PlexRawChannelToPinDiode::Fill(), PlexRawChannelReadoutType::Fill(), DbiConfigSet::Fill(), CalDetBeamMomentum::Fill(), UgliDbiStrip::Fill(), UgliDbiScintMdlStruct::Fill(), DbuRunSummary::Fill(), ChannelsToFilter::Fill(), CalVaLinearity::Fill(), CalPmtDrift::Fill(), DbuNearRunQuality::Fill(), CalTimeJump::Fill(), PulserTimingCardSetting::Fill(), CalStripAtten::Fill(), UgliDbiScintMdl::Fill(), DbuDaqFileSummary::Fill(), SpillTimeCalibration::Fill(), CalTempCalibration::Fill(), CalMapperFits::Fill(), CalDetCERTimeWin::Fill(), UgliDbiGeometry::Fill(), PlexPixelToRawChannel::Fill(), FabNDThickness::Fill(), Dcs_Env_Cal::Fill(), CalMIPCalibration::Fill(), UgliDbiScintPlnStruct::Fill(), SpillTimeND::Fill(), MCFilePOTInfo::Fill(), FarTimingFid::Fill(), SimPmtM16Crosstalk::Fill(), CalDetOverlapWin::Fill(), CalADCtoPEs::Fill(), BfieldMapHeader::Fill(), BfieldCoilCurrent::Fill(), DbiOutRowStream::IsComplete(), DbiDBProxy::ReplaceSeqNoOracle(), DbiResultSet::RowAsCsv(), and BfldDbiPlaneMap::Store().

00186                                    {
00187 //
00188 //
00189 //  Purpose: Return the number of columns.
00190 //
00191 //  Arguments: None.
00192 //
00193 //  Return: the number of columns 
00194 //
00195 //  Contact:   N. West
00196 //
00197 //  Specification:-
00198 //  =============
00199 //
00200 //  o Return the number of columns.
00201 
00202 //  Program Notes:-
00203 //  =============
00204 
00205 //  None.
00206 
00207   return fMetaData->NumCols();
00208 
00209 }

string DbiRowStream::TableName (  )  const [virtual]
string DbiRowStream::TableNameTc (  )  const [virtual]

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 }


Member Data Documentation

UShort_t DbiRowStream::fCurCol [private]

Current column in query (1..fNumCols).

Definition at line 71 of file DbiRowStream.h.

Referenced by ClearCurCol(), CurColFieldType(), CurColName(), CurColNum(), DecrementCurCol(), and IncrementCurCol().

Bool_t DbiRowStream::fHasRowCounter [private]

True if main table has ROW_COUNTER as second column.

Definition at line 74 of file DbiRowStream.h.

Referenced by HasRowCounter().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1