library: libSQL
#include "TSQLStructure.h"

TSQLTableData


class description - header file - source file - inheritance tree (.pdf)

class TSQLTableData : public TObject

Inheritance Chart:
TObject
<-
TSQLTableData

    protected:
TString DefineSQLName(const char* fullname) Bool_t HasSQLName(const char* sqlname) public:
TSQLTableData(TSQLFile* f = 0, TSQLClassInfo* info = 0) TSQLTableData(const TSQLTableData&) virtual ~TSQLTableData() void AddColumn(const char* name, Long64_t value) void AddColumn(const char* name, const char* sqltype, const char* value, Bool_t numeric) static TClass* Class() const char* GetColumn(Int_t n) Int_t GetNumColumns() virtual TClass* IsA() const Bool_t IsNumeric(Int_t n) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) TObjArray* TakeColInfos()

Data Members


    protected:
TSQLFile* fFile ! TSQLClassInfo* fInfo ! TObjArray fColumns ! collection of columns TObjArray* fColInfos ! array with TSQLClassColumnInfo, used later for TSQLClassInfo

Class Description

________________________________________________________________________

  This is hierarhical structure, which is created when data is written
  by TBufferSQL2. It contains data all structurual information such:
  version of written class, data memeber types of that class, value for
  each data memeber and so on.
  Such structure in some sense similar to XML node and subnodes structure
  Once it created, it converted to SQL statements, which are submitted
  to database server.

________________________________________________________________________
TSQLTableData(TSQLFile* f, TSQLClassInfo* info)
 normal constructor
~TSQLTableData()
 destructor
void AddColumn(const char* name, Long64_t value)
 Add INT column to list of columns
void AddColumn(const char* name, const char* sqltype, const char* value, Bool_t numeric)
 Add nomral column to list of columns
TString DefineSQLName(const char* fullname)
 produce suitable name for column, taking into account length limitation
Bool_t HasSQLName(const char* sqlname)
 checks if columns list already has that sql name
Int_t GetNumColumns()
 returns number of columns in provided set
const char* GetColumn(Int_t n)
 returm column value
Bool_t IsNumeric(Int_t n)
 identifies if column has numeric value
TObjArray* TakeColInfos()
 take ownership over colinfos
TSQLTableData(TSQLFile* f = 0, TSQLClassInfo* info = 0)

Author: Sergey Linev 20/11/2005
Last update: root/sql:$Name: $:$Id: TSQLStructure.cxx,v 1.13 2006/06/22 08:21:22 brun Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.