#ifndef ROOT_TSQLClassInfo
#define ROOT_TSQLClassInfo
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TObjArray;
class TSQLClassColumnInfo : public TObject {
public:
TSQLClassColumnInfo();
TSQLClassColumnInfo(const char* name,
const char* sqlname,
const char* sqltype);
virtual ~TSQLClassColumnInfo();
virtual const char* GetName() const { return fName.Data(); }
const char* GetSQLName() const { return fSQLName.Data(); }
const char* GetSQLType() const { return fSQLType.Data(); }
protected:
TString fName;
TString fSQLName;
TString fSQLType;
ClassDef(TSQLClassColumnInfo, 1);
};
class TSQLClassInfo : public TObject {
public:
TSQLClassInfo();
TSQLClassInfo(Long64_t classid,
const char* classname,
Int_t version);
virtual ~TSQLClassInfo();
Long64_t GetClassId() const { return fClassId; }
virtual const char* GetName() const { return fClassName.Data(); }
Int_t GetClassVersion() const { return fClassVersion; }
void SetClassTableName(const char* name) { fClassTable = name; }
void SetRawTableName(const char* name) { fRawTable = name; }
const char* GetClassTableName() const { return fClassTable.Data(); }
const char* GetRawTableName() const { return fRawTable.Data(); }
void SetTableStatus(TObjArray* columns = 0, Bool_t israwtable = kFALSE);
void SetColumns(TObjArray* columns);
void SetRawExist(Bool_t on) { fRawtableExist = on; }
Bool_t IsClassTableExist() const { return GetColumns()!=0; }
Bool_t IsRawTableExist() const { return fRawtableExist; }
TObjArray* GetColumns() const { return fColumns; }
Int_t FindColumn(const char* name, Bool_t sqlname = kFALSE);
protected:
TString fClassName;
Int_t fClassVersion;
Long64_t fClassId;
TString fClassTable;
TString fRawTable;
TObjArray* fColumns;
Bool_t fRawtableExist;
ClassDef(TSQLClassInfo, 1);
};
#endif
Last change: Wed Jun 25 08:52:33 2008
Last generated: 2008-06-25 08:52
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.