TSQLColumnInfo Class Reference

#include <TSQLColumnInfo.h>

Inheritance diagram for TSQLColumnInfo:

TNamed TNamed TObject TObject TObject TObject List of all members.

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

Detailed Description

Definition at line 19 of file TSQLColumnInfo.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

const char* TSQLColumnInfo::GetTypeName (  )  const [inline]

Definition at line 45 of file TSQLColumnInfo.h.

References TString::Data(), and fTypeName.

Bool_t TSQLColumnInfo::IsNullable (  )  const [inline]

Definition at line 46 of file TSQLColumnInfo.h.

References fNullable.

Int_t TSQLColumnInfo::GetSQLType (  )  const [inline]

Definition at line 47 of file TSQLColumnInfo.h.

References fSQLType.

Int_t TSQLColumnInfo::GetSize (  )  const [inline]

Definition at line 48 of file TSQLColumnInfo.h.

References fSize.

Int_t TSQLColumnInfo::GetLength (  )  const [inline]

Definition at line 49 of file TSQLColumnInfo.h.

References fLength.

Int_t TSQLColumnInfo::GetScale (  )  const [inline]

Definition at line 50 of file TSQLColumnInfo.h.

References fScale.

Int_t TSQLColumnInfo::GetSigned (  )  const [inline]

Definition at line 51 of file TSQLColumnInfo.h.

References fSigned.

Bool_t TSQLColumnInfo::IsSigned (  )  const [inline]

Definition at line 52 of file TSQLColumnInfo.h.

References fSigned.

Bool_t TSQLColumnInfo::IsUnsigned (  )  const [inline]

Definition at line 53 of file TSQLColumnInfo.h.

References fSigned.

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]

Definition at line 45 of file TSQLColumnInfo.h.

References TString::Data(), and fTypeName.

Bool_t TSQLColumnInfo::IsNullable (  )  const [inline]

Definition at line 46 of file TSQLColumnInfo.h.

References fNullable.

Int_t TSQLColumnInfo::GetSQLType (  )  const [inline]

Definition at line 47 of file TSQLColumnInfo.h.

References fSQLType.

Int_t TSQLColumnInfo::GetSize (  )  const [inline]

Definition at line 48 of file TSQLColumnInfo.h.

References fSize.

Int_t TSQLColumnInfo::GetLength (  )  const [inline]

Definition at line 49 of file TSQLColumnInfo.h.

References fLength.

Int_t TSQLColumnInfo::GetScale (  )  const [inline]

Definition at line 50 of file TSQLColumnInfo.h.

References fScale.

Int_t TSQLColumnInfo::GetSigned (  )  const [inline]

Definition at line 51 of file TSQLColumnInfo.h.

References fSigned.

Bool_t TSQLColumnInfo::IsSigned (  )  const [inline]

Definition at line 52 of file TSQLColumnInfo.h.

References fSigned.

Bool_t TSQLColumnInfo::IsUnsigned (  )  const [inline]

Definition at line 53 of file TSQLColumnInfo.h.

References fSigned.

virtual void TSQLColumnInfo::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.


Member Data Documentation

TString TSQLColumnInfo::fTypeName [protected]

Definition at line 23 of file TSQLColumnInfo.h.

Referenced by GetTypeName(), and Print().

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.

Referenced by GetSize(), and Print().

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().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:47:03 2011 for ROOT_528-00b_version by  doxygen 1.5.1