#ifndef ROOT_TSQLColumnInfo
#define ROOT_TSQLColumnInfo
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
class TSQLColumnInfo : public TNamed {
protected:
TString fTypeName;
Int_t fSQLType;
Int_t fSize;
Int_t fLength;
Int_t fScale;
Int_t fSigned;
Bool_t fNullable;
public:
TSQLColumnInfo();
TSQLColumnInfo(const char* columnname,
const char* sqltypename = "unknown",
Bool_t nullable = kFALSE,
Int_t sqltype = -1,
Int_t size = -1,
Int_t length = -1,
Int_t scale = -1,
Int_t sign = -1);
virtual ~TSQLColumnInfo() {}
const char* GetTypeName() const { return fTypeName.Data(); }
Bool_t IsNullable() const { return fNullable; }
Int_t GetSQLType() const { return fSQLType; }
Int_t GetSize() const { return fSize; }
Int_t GetLength() const { return fLength; }
Int_t GetScale() const { return fScale; }
Int_t GetSigned() const { return fSigned; }
Bool_t IsSigned() const { return fSigned==1; }
Bool_t IsUnsigned() const { return fSigned==0; }
virtual void Print(Option_t* option = "") const;
ClassDef(TSQLColumnInfo, 0)
};
#endif
Last change: Wed Jun 25 08:52:34 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.