TSQLObjectData Class Reference

#include <TSQLObjectData.h>

Inheritance diagram for TSQLObjectData:

TObject TObject List of all members.

Public Member Functions

 TSQLObjectData ()
 TSQLObjectData (TSQLClassInfo *sqlinfo, Long64_t objid, TSQLResult *classdata, TSQLRow *classrow, TSQLResult *blobdata, TSQLStatement *blobstmt)
virtual ~TSQLObjectData ()
Long64_t GetObjId () const
TSQLClassInfoGetInfo () const
Bool_t LocateColumn (const char *colname, Bool_t isblob=kFALSE)
Bool_t IsBlobData () const
void ShiftToNextValue ()
void AddUnpack (const char *tname, const char *value)
void AddUnpackInt (const char *tname, Int_t value)
const char * GetValue () const
const char * GetLocatedField () const
const char * GetBlobPrefixName () const
const char * GetBlobTypeName () const
Bool_t VerifyDataType (const char *tname, Bool_t errormsg=kTRUE)
Bool_t PrepareForRawData ()
 TSQLObjectData ()
 TSQLObjectData (TSQLClassInfo *sqlinfo, Long64_t objid, TSQLResult *classdata, TSQLRow *classrow, TSQLResult *blobdata, TSQLStatement *blobstmt)
virtual ~TSQLObjectData ()
Long64_t GetObjId () const
TSQLClassInfoGetInfo () const
Bool_t LocateColumn (const char *colname, Bool_t isblob=kFALSE)
Bool_t IsBlobData () const
void ShiftToNextValue ()
void AddUnpack (const char *tname, const char *value)
void AddUnpackInt (const char *tname, Int_t value)
const char * GetValue () const
const char * GetLocatedField () const
const char * GetBlobPrefixName () const
const char * GetBlobTypeName () const
Bool_t VerifyDataType (const char *tname, Bool_t errormsg=kTRUE)
Bool_t PrepareForRawData ()

Protected Member Functions

Bool_t ExtractBlobValues ()
Bool_t ShiftBlobRow ()
Int_t GetNumClassFields ()
const char * GetClassFieldName (Int_t n)
Bool_t ExtractBlobValues ()
Bool_t ShiftBlobRow ()
Int_t GetNumClassFields ()
const char * GetClassFieldName (Int_t n)

Protected Attributes

TSQLClassInfofInfo
Long64_t fObjId
Bool_t fOwner
TSQLResultfClassData
TSQLResultfBlobData
TSQLStatementfBlobStmt
Int_t fLocatedColumn
TSQLRowfClassRow
TSQLRowfBlobRow
const char * fLocatedField
const char * fLocatedValue
Bool_t fCurrentBlob
const char * fBlobPrefixName
const char * fBlobTypeName
 name prefix in current blob row
TObjArrayfUnpack
 name type (without prefix) in current blob row
TSQLClassInfofInfo
TSQLResultfClassData
TSQLResultfBlobData
TSQLStatementfBlobStmt
TSQLRowfClassRow
TSQLRowfBlobRow
const char * fLocatedField
const char * fLocatedValue
const char * fBlobPrefixName
const char * fBlobTypeName
 name prefix in current blob row
TObjArrayfUnpack
 name type (without prefix) in current blob row

Detailed Description

Definition at line 62 of file TSQLObjectData.h.


Constructor & Destructor Documentation

TSQLObjectData::TSQLObjectData (  ) 

TSQLObjectData::TSQLObjectData ( TSQLClassInfo sqlinfo,
Long64_t  objid,
TSQLResult classdata,
TSQLRow classrow,
TSQLResult blobdata,
TSQLStatement blobstmt 
)

Definition at line 86 of file TSQLObjectData.cxx.

References fClassData, fClassRow, fOwner, kTRUE, TSQLResult::Next(), and ShiftBlobRow().

TSQLObjectData::~TSQLObjectData (  )  [virtual]

Definition at line 121 of file TSQLObjectData.cxx.

References TObjArray::Delete(), fBlobData, fBlobRow, fBlobStmt, fClassData, fClassRow, fOwner, and fUnpack.

TSQLObjectData::TSQLObjectData (  ) 

TSQLObjectData::TSQLObjectData ( TSQLClassInfo sqlinfo,
Long64_t  objid,
TSQLResult classdata,
TSQLRow classrow,
TSQLResult blobdata,
TSQLStatement blobstmt 
)

virtual TSQLObjectData::~TSQLObjectData (  )  [virtual]


Member Function Documentation

Long64_t TSQLObjectData::GetObjId (  )  const [inline]

Definition at line 76 of file TSQLObjectData.h.

References fObjId.

TSQLClassInfo* TSQLObjectData::GetInfo (  )  const [inline]

Definition at line 77 of file TSQLObjectData.h.

References fInfo.

Bool_t TSQLObjectData::LocateColumn ( const char *  colname,
Bool_t  isblob = kFALSE 
)

Definition at line 152 of file TSQLObjectData.cxx.

References TObjArray::Delete(), ExtractBlobValues(), fBlobRow, fBlobStmt, fClassData, fClassRow, fCurrentBlob, TSQLClassInfo::FindColumn(), fInfo, fLocatedColumn, fLocatedField, fLocatedValue, fUnpack, GetClassFieldName(), TSQLRow::GetField(), kFALSE, and kTRUE.

Referenced by TSQLStructure::UnpackTObject(), and TSQLStructure::UnpackTString().

Bool_t TSQLObjectData::IsBlobData (  )  const [inline]

Definition at line 80 of file TSQLObjectData.h.

References fCurrentBlob, and fUnpack.

Referenced by TBufferSQL2::ReadFastArray(), TBufferSQL2::ReadVersion(), TBufferSQL2::SqlReadObject(), VerifyDataType(), and TBufferSQL2::WorkWithClass().

void TSQLObjectData::ShiftToNextValue (  ) 

Definition at line 293 of file TSQLObjectData.cxx.

References TObjArray::Compress(), ExtractBlobValues(), fBlobPrefixName, fBlobTypeName, fClassData, fClassRow, fCurrentBlob, TObjArray::First(), fLocatedColumn, fLocatedField, fLocatedValue, fUnpack, GetClassFieldName(), TSQLRow::GetField(), TObjArray::GetLast(), GetNumClassFields(), kFALSE, kTRUE, TObjArray::Remove(), and ShiftBlobRow().

Referenced by TBufferSQL2::ReadVersion(), TBufferSQL2::SqlReadObject(), TBufferSQL2::SqlReadValue(), TSQLStructure::UnpackTObject(), and TBufferSQL2::WorkWithClass().

void TSQLObjectData::AddUnpack ( const char *  tname,
const char *  value 
)

Definition at line 266 of file TSQLObjectData.cxx.

References TObjArray::Add(), fBlobPrefixName, fBlobTypeName, fLocatedValue, fUnpack, and str.

Referenced by AddUnpackInt().

void TSQLObjectData::AddUnpackInt ( const char *  tname,
Int_t  value 
)

Definition at line 283 of file TSQLObjectData.cxx.

References AddUnpack(), TString::Data(), and TString::Form().

const char* TSQLObjectData::GetValue (  )  const [inline]

Definition at line 86 of file TSQLObjectData.h.

References fLocatedValue.

Referenced by TBufferSQL2::ReadVersion(), TBufferSQL2::SqlReadObject(), TBufferSQL2::SqlReadValue(), TSQLStructure::UnpackTObject(), TSQLStructure::UnpackTString(), and TBufferSQL2::WorkWithClass().

const char* TSQLObjectData::GetLocatedField (  )  const [inline]

Definition at line 87 of file TSQLObjectData.h.

References fLocatedField.

Referenced by TBufferSQL2::SqlReadObject().

const char* TSQLObjectData::GetBlobPrefixName (  )  const [inline]

Definition at line 88 of file TSQLObjectData.h.

References fBlobPrefixName.

Referenced by TBufferSQL2::ReadVersion().

const char* TSQLObjectData::GetBlobTypeName (  )  const [inline]

Definition at line 89 of file TSQLObjectData.h.

References fBlobTypeName.

Bool_t TSQLObjectData::VerifyDataType ( const char *  tname,
Bool_t  errormsg = kTRUE 
)

Definition at line 333 of file TSQLObjectData.cxx.

References TObject::Error(), fBlobTypeName, gDebug, IsBlobData(), kFALSE, kTRUE, and v1.

Referenced by TBufferSQL2::ReadFastArray(), TBufferSQL2::ReadVersion(), TBufferSQL2::SqlReadObject(), TBufferSQL2::SqlReadValue(), and TBufferSQL2::WorkWithClass().

Bool_t TSQLObjectData::PrepareForRawData (  ) 

Definition at line 367 of file TSQLObjectData.cxx.

References ExtractBlobValues(), fCurrentBlob, kFALSE, and kTRUE.

Referenced by TSQLStructure::LocateElementColumn(), and TBufferSQL2::SqlReadObjectDirect().

Bool_t TSQLObjectData::ExtractBlobValues (  )  [protected]

Definition at line 219 of file TSQLObjectData.cxx.

References fBlobPrefixName, fBlobRow, fBlobStmt, fBlobTypeName, fLocatedValue, TSQLRow::GetField(), TSQLStatement::GetString(), kFALSE, kTRUE, and name.

Referenced by LocateColumn(), PrepareForRawData(), and ShiftToNextValue().

Bool_t TSQLObjectData::ShiftBlobRow (  )  [protected]

Definition at line 203 of file TSQLObjectData.cxx.

References fBlobData, fBlobRow, fBlobStmt, TSQLResult::Next(), and TSQLStatement::NextResultRow().

Referenced by ShiftToNextValue(), and TSQLObjectData().

Int_t TSQLObjectData::GetNumClassFields (  )  [protected]

Definition at line 134 of file TSQLObjectData.cxx.

References fClassData, and TSQLResult::GetFieldCount().

Referenced by ShiftToNextValue().

const char * TSQLObjectData::GetClassFieldName ( Int_t  n  )  [protected]

Definition at line 143 of file TSQLObjectData.cxx.

References fClassData, and TSQLResult::GetFieldName().

Referenced by LocateColumn(), and ShiftToNextValue().

Long64_t TSQLObjectData::GetObjId (  )  const [inline]

Definition at line 76 of file TSQLObjectData.h.

References fObjId.

TSQLClassInfo* TSQLObjectData::GetInfo (  )  const [inline]

Definition at line 77 of file TSQLObjectData.h.

References fInfo.

Bool_t TSQLObjectData::LocateColumn ( const char *  colname,
Bool_t  isblob = kFALSE 
)

Bool_t TSQLObjectData::IsBlobData (  )  const [inline]

Definition at line 80 of file TSQLObjectData.h.

References fCurrentBlob, and fUnpack.

void TSQLObjectData::ShiftToNextValue (  ) 

void TSQLObjectData::AddUnpack ( const char *  tname,
const char *  value 
)

void TSQLObjectData::AddUnpackInt ( const char *  tname,
Int_t  value 
)

const char* TSQLObjectData::GetValue (  )  const [inline]

Definition at line 86 of file TSQLObjectData.h.

References fLocatedValue.

const char* TSQLObjectData::GetLocatedField (  )  const [inline]

Definition at line 87 of file TSQLObjectData.h.

References fLocatedField.

const char* TSQLObjectData::GetBlobPrefixName (  )  const [inline]

Definition at line 88 of file TSQLObjectData.h.

References fBlobPrefixName.

const char* TSQLObjectData::GetBlobTypeName (  )  const [inline]

Definition at line 89 of file TSQLObjectData.h.

References fBlobTypeName.

Bool_t TSQLObjectData::VerifyDataType ( const char *  tname,
Bool_t  errormsg = kTRUE 
)

Bool_t TSQLObjectData::PrepareForRawData (  ) 

Bool_t TSQLObjectData::ExtractBlobValues (  )  [protected]

Bool_t TSQLObjectData::ShiftBlobRow (  )  [protected]

Int_t TSQLObjectData::GetNumClassFields (  )  [protected]

const char* TSQLObjectData::GetClassFieldName ( Int_t  n  )  [protected]


Member Data Documentation

TSQLClassInfo* TSQLObjectData::fInfo [protected]

Definition at line 101 of file TSQLObjectData.h.

Referenced by GetInfo(), and LocateColumn().

Long64_t TSQLObjectData::fObjId [protected]

Definition at line 102 of file TSQLObjectData.h.

Referenced by GetObjId().

Bool_t TSQLObjectData::fOwner [protected]

Definition at line 103 of file TSQLObjectData.h.

Referenced by TSQLObjectData(), and ~TSQLObjectData().

TSQLResult* TSQLObjectData::fClassData [protected]

Definition at line 104 of file TSQLObjectData.h.

Referenced by GetClassFieldName(), GetNumClassFields(), LocateColumn(), ShiftToNextValue(), TSQLObjectData(), and ~TSQLObjectData().

TSQLResult* TSQLObjectData::fBlobData [protected]

Definition at line 105 of file TSQLObjectData.h.

Referenced by ShiftBlobRow(), and ~TSQLObjectData().

TSQLStatement* TSQLObjectData::fBlobStmt [protected]

Definition at line 106 of file TSQLObjectData.h.

Referenced by ExtractBlobValues(), LocateColumn(), ShiftBlobRow(), and ~TSQLObjectData().

Int_t TSQLObjectData::fLocatedColumn [protected]

Definition at line 107 of file TSQLObjectData.h.

Referenced by LocateColumn(), and ShiftToNextValue().

TSQLRow* TSQLObjectData::fClassRow [protected]

Definition at line 108 of file TSQLObjectData.h.

Referenced by LocateColumn(), ShiftToNextValue(), TSQLObjectData(), and ~TSQLObjectData().

TSQLRow* TSQLObjectData::fBlobRow [protected]

Definition at line 109 of file TSQLObjectData.h.

Referenced by ExtractBlobValues(), LocateColumn(), ShiftBlobRow(), and ~TSQLObjectData().

const char* TSQLObjectData::fLocatedField [protected]

Definition at line 110 of file TSQLObjectData.h.

Referenced by GetLocatedField(), LocateColumn(), and ShiftToNextValue().

const char* TSQLObjectData::fLocatedValue [protected]

Definition at line 111 of file TSQLObjectData.h.

Referenced by AddUnpack(), ExtractBlobValues(), GetValue(), LocateColumn(), and ShiftToNextValue().

Bool_t TSQLObjectData::fCurrentBlob [protected]

Definition at line 112 of file TSQLObjectData.h.

Referenced by IsBlobData(), LocateColumn(), PrepareForRawData(), and ShiftToNextValue().

const char* TSQLObjectData::fBlobPrefixName [protected]

Definition at line 113 of file TSQLObjectData.h.

Referenced by AddUnpack(), ExtractBlobValues(), GetBlobPrefixName(), and ShiftToNextValue().

const char* TSQLObjectData::fBlobTypeName [protected]

name prefix in current blob row

Definition at line 114 of file TSQLObjectData.h.

Referenced by AddUnpack(), ExtractBlobValues(), GetBlobTypeName(), ShiftToNextValue(), and VerifyDataType().

TObjArray* TSQLObjectData::fUnpack [protected]

name type (without prefix) in current blob row

Definition at line 115 of file TSQLObjectData.h.

Referenced by AddUnpack(), IsBlobData(), LocateColumn(), ShiftToNextValue(), and ~TSQLObjectData().

TSQLClassInfo* TSQLObjectData::fInfo [protected]

Definition at line 101 of file TSQLObjectData.h.

TSQLResult* TSQLObjectData::fClassData [protected]

Definition at line 104 of file TSQLObjectData.h.

TSQLResult* TSQLObjectData::fBlobData [protected]

Definition at line 105 of file TSQLObjectData.h.

TSQLStatement* TSQLObjectData::fBlobStmt [protected]

Definition at line 106 of file TSQLObjectData.h.

TSQLRow* TSQLObjectData::fClassRow [protected]

Definition at line 108 of file TSQLObjectData.h.

TSQLRow* TSQLObjectData::fBlobRow [protected]

Definition at line 109 of file TSQLObjectData.h.

const char* TSQLObjectData::fLocatedField [protected]

Definition at line 110 of file TSQLObjectData.h.

const char* TSQLObjectData::fLocatedValue [protected]

Definition at line 111 of file TSQLObjectData.h.

const char* TSQLObjectData::fBlobPrefixName [protected]

Definition at line 113 of file TSQLObjectData.h.

const char* TSQLObjectData::fBlobTypeName [protected]

name prefix in current blob row

Definition at line 114 of file TSQLObjectData.h.

TObjArray* TSQLObjectData::fUnpack [protected]

name type (without prefix) in current blob row

Definition at line 115 of file TSQLObjectData.h.


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