#include <TSQLColumnInfo.h>
Inheritance diagram for TSQLColumnInfo:
Public Member Functions | |
TSQLColumnInfo () | |
identify if value can be NULL | |
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 |
Bool_t | IsNullable () const |
Int_t | GetSQLType () const |
Int_t | GetSize () const |
Int_t | GetLength () const |
Int_t | GetScale () const |
Int_t | GetSigned () const |
Bool_t | IsSigned () const |
Bool_t | IsUnsigned () const |
virtual void | Print (Option_t *option="") const |
TSQLColumnInfo () | |
identify if value can be NULL | |
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 |
Bool_t | IsNullable () const |
Int_t | GetSQLType () const |
Int_t | GetSize () const |
Int_t | GetLength () const |
Int_t | GetScale () const |
Int_t | GetSigned () const |
Bool_t | IsSigned () const |
Bool_t | IsUnsigned () const |
virtual void | Print (Option_t *option="") const |
Protected Attributes | |
TString | fTypeName |
Int_t | fSQLType |
sql type name, as reported by DB. Should be as much as close to declaration of column in CREATE TABLE query | |
Int_t | fSize |
datatype code (see TSQLServer::ESQLDataTypes constants), -1 if not defeined | |
Int_t | fLength |
size of column in bytes, -1 if not defing | |
Int_t | fScale |
datatype length definition, for instance VARCHAR(len) or FLOAT(len), -1 if not defined | |
Int_t | fSigned |
datatype scale factor, used for instance in NUMBER(len,scale) definition. -1 if not defined | |
Bool_t | fNullable |
if datatype signed or not, 0 - kFALSE, 1 - kTRUE, -1 - unknown |
Definition at line 19 of file TSQLColumnInfo.h.
TSQLColumnInfo::TSQLColumnInfo | ( | ) |
identify if value can be NULL
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 | |||
) |
Definition at line 62 of file TSQLColumnInfo.cxx.
virtual TSQLColumnInfo::~TSQLColumnInfo | ( | ) | [inline, virtual] |
Definition at line 43 of file TSQLColumnInfo.h.
TSQLColumnInfo::TSQLColumnInfo | ( | ) |
identify if value can be NULL
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::~TSQLColumnInfo | ( | ) | [inline, virtual] |
Definition at line 43 of file TSQLColumnInfo.h.
const char* TSQLColumnInfo::GetTypeName | ( | ) | const [inline] |
Bool_t TSQLColumnInfo::IsNullable | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetSQLType | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetSize | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetLength | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetScale | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetSigned | ( | ) | const [inline] |
Bool_t TSQLColumnInfo::IsSigned | ( | ) | const [inline] |
Bool_t TSQLColumnInfo::IsUnsigned | ( | ) | const [inline] |
void TSQLColumnInfo::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TNamed.
Definition at line 83 of file TSQLColumnInfo.cxx.
References fLength, fNullable, fScale, fSigned, fSize, fSQLType, fTypeName, TNamed::GetName(), TROOT::IndentLevel(), TSQLServer::kSQL_BINARY, TSQLServer::kSQL_CHAR, TSQLServer::kSQL_DOUBLE, TSQLServer::kSQL_FLOAT, TSQLServer::kSQL_INTEGER, TSQLServer::kSQL_NUMERIC, TSQLServer::kSQL_TIMESTAMP, and TSQLServer::kSQL_VARCHAR.
const char* TSQLColumnInfo::GetTypeName | ( | ) | const [inline] |
Bool_t TSQLColumnInfo::IsNullable | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetSQLType | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetSize | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetLength | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetScale | ( | ) | const [inline] |
Int_t TSQLColumnInfo::GetSigned | ( | ) | const [inline] |
Bool_t TSQLColumnInfo::IsSigned | ( | ) | const [inline] |
Bool_t TSQLColumnInfo::IsUnsigned | ( | ) | const [inline] |
virtual void TSQLColumnInfo::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TNamed.
TString TSQLColumnInfo::fTypeName [protected] |
Int_t TSQLColumnInfo::fSQLType [protected] |
sql type name, as reported by DB. Should be as much as close to declaration of column in CREATE TABLE query
Definition at line 26 of file TSQLColumnInfo.h.
Referenced by GetSQLType(), and Print().
Int_t TSQLColumnInfo::fSize [protected] |
datatype code (see TSQLServer::ESQLDataTypes constants), -1 if not defeined
Definition at line 27 of file TSQLColumnInfo.h.
Int_t TSQLColumnInfo::fLength [protected] |
size of column in bytes, -1 if not defing
Definition at line 28 of file TSQLColumnInfo.h.
Referenced by GetLength(), and Print().
Int_t TSQLColumnInfo::fScale [protected] |
datatype length definition, for instance VARCHAR(len) or FLOAT(len), -1 if not defined
Definition at line 29 of file TSQLColumnInfo.h.
Referenced by GetScale(), and Print().
Int_t TSQLColumnInfo::fSigned [protected] |
datatype scale factor, used for instance in NUMBER(len,scale) definition. -1 if not defined
Definition at line 30 of file TSQLColumnInfo.h.
Referenced by GetSigned(), IsSigned(), IsUnsigned(), and Print().
Bool_t TSQLColumnInfo::fNullable [protected] |
if datatype signed or not, 0 - kFALSE, 1 - kTRUE, -1 - unknown
Definition at line 31 of file TSQLColumnInfo.h.
Referenced by IsNullable(), and Print().