library: libSQL
#include "TSQLObjectData.h"

TSQLObjectData


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

class TSQLObjectData : public TObject

Inheritance Chart:
TObject
<-
TSQLObjectData

    protected:
Bool_t ExtractBlobValues() const char* GetClassFieldName(Int_t n) Int_t GetNumClassFields() Bool_t ShiftBlobRow() public:
TSQLObjectData() TSQLObjectData(TSQLClassInfo* sqlinfo, Long64_t objid, TSQLResult* classdata, TSQLRow* classrow, TSQLResult* blobdata, TSQLStatement* blobstmt) TSQLObjectData(const TSQLObjectData&) virtual ~TSQLObjectData() void AddUnpack(const char* tname, const char* value) void AddUnpackInt(const char* tname, Int_t value) static TClass* Class() const char* GetBlobPrefixName() const const char* GetBlobTypeName() const TSQLClassInfo* GetInfo() const const char* GetLocatedField() const Long64_t GetObjId() const const char* GetValue() const virtual TClass* IsA() const Bool_t IsBlobData() const Bool_t LocateColumn(const char* colname, Bool_t isblob = kFALSE) Bool_t PrepareForRawData() void ShiftToNextValue() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Bool_t VerifyDataType(const char* tname, Bool_t errormsg = kTRUE)

Data Members


    protected:
TSQLClassInfo* fInfo ! Long64_t fObjId ! Bool_t fOwner ! TSQLResult* fClassData ! TSQLResult* fBlobData ! TSQLStatement* fBlobStmt ! Int_t fLocatedColumn ! Int_t fLocatedBlob ! TSQLRow* fClassRow ! TSQLRow* fBlobRow ! const char* fLocatedField ! const char* fLocatedValue ! Bool_t fCurrentBlob ! const char* fBlobPrefixName ! name prefix in current blob row const char* fBlobTypeName ! name type (without prefix) in current blob row TObjArray* fUnpack !

Class Description

________________________________________________________________________

 TSQLObjectData is used in TBufferSQL2 class in reading procedure.
 It contains data, request from database table for one specifc
 object for one specific class. For instance, when data for
 class TH1 required, requests will be done to
 TH1_ver4 and TH1_raw4 tables and result of these requests
 will be kept in single TSQLObjectData instance.

________________________________________________________________________
TSQLObjectData()
 default contrsuctor
TSQLObjectData(TSQLClassInfo* sqlinfo, Long64_t objid, TSQLResult* classdata, TSQLRow* classrow, TSQLResult* blobdata, TSQLStatement* blobstmt)
 normal contrsuctor,
~TSQLObjectData()
 destructor of TSQLObjectData object
Int_t GetNumClassFields()
 return number of columns in class table result
const char* GetClassFieldName(Int_t n)
 get name of class table column
Bool_t LocateColumn(const char* colname, Bool_t isblob)
 locate column of that name in results
Bool_t ShiftBlobRow()
 shift cursor to next blob value
Bool_t ExtractBlobValues()
 extract from curent blob row value and names identifiers
void AddUnpack(const char* tname, const char* value)
 add emulated data
 this used to place version or TObject raw data, read from normal tables
void AddUnpackInt(const char* tname, Int_t value)
 emulate integer value in raw data
void ShiftToNextValue()
 shift to next column or next row in blob data
Bool_t VerifyDataType(const char* tname, Bool_t errormsg)
 checks if data type corresponds to that stored in raw table
Bool_t PrepareForRawData()
 prepare to read data from raw table
Long64_t GetObjId()
TSQLObjectData()
TSQLClassInfo* GetInfo()
Bool_t IsBlobData()
const char* GetValue()
const char* GetLocatedField()
const char* GetBlobPrefixName()
const char* GetBlobTypeName()

Author: Sergey Linev 20/11/2005
Last update: root/sql:$Name: $:$Id: TSQLObjectData.cxx,v 1.8 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.