#include "DbiDetector.hxx"
#include "DbiSimFlag.hxx"
#include "TDbiBinaryFile.hxx"
#include "TDbiCache.hxx"
#include "TDbiConnectionMaintainer.hxx"
#include "TDbiResultSetAgg.hxx"
#include "TDbiResultSetNonAgg.hxx"
#include "TDbiInRowStream.hxx"
#include "TDbiTableProxy.hxx"
#include "TDbiTableRow.hxx"
#include "TDbiTimerManager.hxx"
#include "TDbiValidityRec.hxx"
#include "TDbiValidityRecBuilder.hxx"
#include <TSK_DBI_Log.hxx>
#include <MsgFormat.h>
Go to the source code of this file.
Functions | |
ClassImp (TDbiTableProxy) TDbiTableProxy |
ClassImp | ( | TDbiTableProxy | ) |
Purpose: Constructor
Arguments: in cascader Reference to one and only cascader in tableName Table name. in tableRow Example table row object.
Return: n/a
Contact: N. West
Specification:- =============
o Create table proxy for supplied table name.
Program Notes:- =============
Definition at line 20 of file TDbiTableProxy.cxx.
References SK_DBI_Info, and SK_DBI_Trace.
00029 : ctors, dtor, operators then in alphabetical order. 00030 00031 //..................................................................... 00032 00033 /// 00034 /// 00035 /// Purpose: Constructor 00036 /// 00037 /// Arguments: 00038 /// in cascader Reference to one and only cascader 00039 /// in tableName Table name. 00040 /// in tableRow Example table row object. 00041 /// 00042 /// Return: n/a 00043 /// 00044 /// Contact: N. West 00045 /// 00046 /// Specification:- 00047 /// ============= 00048 /// 00049 /// o Create table proxy for supplied table name. 00050 /// 00051 /// 00052 /// Program Notes:- 00053 /// ============= 00054 /// 00055 TDbiTableProxy::TDbiTableProxy(TDbiCascader* cascader, 00056 const string& tableName, 00057 const TDbiTableRow* tableRow) : 00058 fCascader(cascader), 00059 fMetaData(tableName), 00060 fMetaValid(tableName+"VLD"), 00061 fCanL2Cache(kFALSE), 00062 fCache(0), 00063 fDBProxy(*cascader,tableName,&fMetaData,&fMetaValid,this), 00064 fExists(0), 00065 fTableName(tableName), 00066 fTableRow(tableRow->CreateTableRow()) 00067 { 00068 //one. 00069 00070 00071 fCache = new TDbiCache(*this,fTableName); 00072 this->RefreshMetaData(); 00073 fExists = fDBProxy.TableExists(); 00074 fCanL2Cache = tableRow->CanL2Cache(); 00075 if ( fCanL2Cache ) 00076 SK_DBI_Info( "TDbiTableProxy: Can use L2 cache for table " << this->GetRowName() << " "); 00077 else 00078 SK_DBI_Info( "TDbiTableProxy: L2 cache not allowed for table " << this->GetRowName() << " "); 00079 00080 SK_DBI_Trace( "Creating TDbiTableProxy " 00081 << fTableName.c_str() << " at " << this 00082 << ( fExists ? " (table exists)" 00083 : " (table missing)" ) 00084 << " "); 00085 }