TDbiValRecSet.cxx File Reference

#include "TDbiDBProxy.hxx"
#include "TDbiResultSetNonAgg.hxx"
#include "TDbiInRowStream.hxx"
#include "TDbiTableProxy.hxx"
#include "TDbiDatabaseManager.hxx"
#include "TDbiValidityRec.hxx"
#include "TDbiValRecSet.hxx"
#include <TSK_DBI_Log.hxx>
#include <MsgFormat.h>
Include dependency graph for TDbiValRecSet.cxx:

Go to the source code of this file.

Functions

 ClassImp (TDbiValRecSet) TDbiValRecSet

Function Documentation

ClassImp ( TDbiValRecSet   ) 

Definition at line 14 of file TDbiValRecSet.cxx.

References TDbiTableProxy::GetDBProxy(), TDbiDatabaseManager::GetTableProxy(), TDbiDatabaseManager::Instance(), TDbiDBProxy::QueryAllValidities(), and SK_DBI_Trace.

00024                 : ctors, dtor, operators then in alphabetical order.
00025 
00026 //.....................................................................
00027 
00028 TDbiValRecSet::TDbiValRecSet(const string& tableName,UInt_t dbNo,UInt_t seqNo) :
00029 fDbNo(dbNo),
00030 fResult(0)
00031 {
00032 //
00033 //
00034 //  Purpose:  Constructor
00035 //
00036 //  Arguments:
00037 //    tableName    in    Table Name whose TDbiValidityRecs are required.
00038 //    dbNo         in    Database number in the cascade.
00039 //    seqNo        in    Just this SEQNO if >0 or all if 0 [default: 0]
00040 //
00041 //  Return:    n/a
00042 //
00043 //  Contact:   N. West
00044 //
00045 //  Specification:-
00046 //  =============
00047 //
00048 //  o  For the required table in the required database, load every
00049 //     TDbiValidityRec into TDbiResultSet.
00050 
00051 
00052 //  Program Notes:-
00053 //  =============
00054 
00055 //  None.
00056 
00057 
00058   SK_DBI_Trace( "Creating TDbiValRecSet" << "  ");
00059 
00060 // Get Db proxy for the table.
00061   TDbiValidityRec pet;
00062   const TDbiDBProxy& proxy = TDbiDatabaseManager::Instance()
00063                            .GetTableProxy(tableName,&pet)
00064                            .GetDBProxy();
00065 
00066 // Collect up all validity records.
00067   TDbiInRowStream* rset = proxy.QueryAllValidities(dbNo,seqNo);
00068   fResult = new TDbiResultSetNonAgg(rset,&pet,0,kFALSE);
00069   delete rset;
00070 
00071 
00072 }

Here is the call graph for this function:


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1