ROOT » IO » SQL » TKeySQL

class TKeySQL: public TKey


 TKeySQL is represents a metainforamtion about object, which was written to
 SQL database. It keeps object id, which used to locate object data
 from database tables.

Function Members (Methods)

public:
virtual~TKeySQL()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTKey::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidDelete(Option_t* option = "")
virtual voidDeleteBuffer()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidFillBuffer(char*&)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual char*GetBuffer() const
TBuffer*TKey::GetBufferRef() const
virtual const char*TKey::GetClassName() const
Short_tTKey::GetCycle() const
const TDatime&TKey::GetDatime() const
Long64_tGetDBDirId() const
Long64_tGetDBKeyId() const
Long64_tGetDBObjId() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TFile*TKey::GetFile() const
virtual const char*TKey::GetIconName() const
Short_tTKey::GetKeep() const
Int_tTKey::GetKeylen() const
TDirectory*TKey::GetMotherDir() const
virtual const char*TNamed::GetName() const
Int_tTKey::GetNbytes() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
Int_tTKey::GetObjlen() const
virtual Option_t*TObject::GetOption() const
virtual Long64_tGetSeekKey() const
virtual Long64_tGetSeekPdir() const
virtual const char*TKey::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Int_tTKey::GetVersion() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTKey::Hash() const
virtual voidTKey::IncrementPidOffset(UShort_t offset)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTKey::IsFolder() const
Bool_tIsKeyModified(const char* keyname, const char* keytitle, const char* keydatime, Int_t cycle, const char* classname)
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidKeep()
virtual voidTKey::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTKey::Print(Option_t* option = "") const
virtual Int_tRead(TObject* obj)
virtual voidReadBuffer(char*&)
virtual Bool_tReadFile()
voidTKey::ReadKeyBuffer(char*& buffer)
virtual TObject*ReadObj()
virtual void*ReadObjectAny(const TClass* expectedClass)
virtual TObject*ReadObjWithBuffer(char* bufferRead)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetBuffer()
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidTKey::SetMotherDir(TDirectory* dir)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTKey::SetParent(const TObject* parent)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTKey::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TKeySQL(TDirectory* mother, const TObject* obj, const char* name, const char* title = 0)
TKeySQL(TDirectory* mother, const void* obj, const TClass* cl, const char* name, const char* title = 0)
TKeySQL(TDirectory* mother, Long64_t keyid, Long64_t objid, const char* name, const char* title, const char* keydatetime, Int_t cycle, const char* classname)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual Int_tWriteFile(Int_t = 1, TFile* = 0)
protected:
voidTKey::Build(TDirectory* motherDir, const char* classname, Long64_t filepos)
virtual voidTKey::Create(Int_t nbytes, TFile* f = 0)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
virtual Int_tRead(const char* name)
void*ReadKeyObject(void* obj, const TClass* expectedClass)
virtual voidTKey::Reset()
voidStoreKeyObject(const void* obj, const TClass* cl)
TKeySQL()
virtual Int_tTKey::WriteFileKeepBuffer(TFile* f = 0)
private:
TKeySQL&operator=(const TKeySQL&)
TKeySQL(const TKeySQL&)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
char*TKey::fBufferObject buffer
TBuffer*TKey::fBufferRefPointer to the TBuffer object
TStringTKey::fClassNameObject Class name
Short_tTKey::fCycleCycle number
TDatimeTKey::fDatimeDate/Time of insertion in file
Long64_tfKeyId! key identifier in KeysTables
Short_tTKey::fKeylenNumber of bytes for the key itself
Int_tTKey::fLeftNumber of bytes left in current segment
TDirectory*TKey::fMotherDir! pointer to mother directory
TStringTNamed::fNameobject identifier
Int_tTKey::fNbytesNumber of bytes for the object on file
Long64_tfObjId! stored object identifer
Int_tTKey::fObjlenLength of uncompressed object in bytes
UShort_tTKey::fPidOffset! Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of fSeekPdir
Long64_tTKey::fSeekKeyLocation of object on file
Long64_tTKey::fSeekPdirLocation of parent directory on file
TStringTNamed::fTitleobject title
Int_tTKey::fVersionKey version identifier

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TKeySQL()
 default constructor
TKeySQL(TDirectory* mother, const TObject* obj, const char* name, const char* title = 0)
 Creates TKeySQL and convert obj data to TSQLStructure via TBufferSQL2
TKeySQL(TDirectory* mother, const void* obj, const TClass* cl, const char* name, const char* title = 0)
 Creates TKeySQL and convert obj data to TSQLStructure via TBufferSQL2
TKeySQL(TDirectory* mother, Long64_t keyid, Long64_t objid, const char* name, const char* title, const char* keydatetime, Int_t cycle, const char* classname)
 Create TKeySQL object, which correponds to single entry in keys table
~TKeySQL()
 TKeySQL destructor
Bool_t IsKeyModified(const char* keyname, const char* keytitle, const char* keydatime, Int_t cycle, const char* classname)
 Compares keydata with provided and return kTRUE if key was modified
 Used in TFile::StreamKeysForDirectory() method to verify data for that keys
 should be updated
void Delete(Option_t* option = "")
 Removes key from current directory
 Note: TKeySQL object is not deleted. You still have to call "delete key"
Long64_t GetDBDirId() const
 return sql id of parent directory
void StoreKeyObject(const void* obj, const TClass* cl)
 Stores object, associated with key, into data tables
Int_t Read(TObject* obj)
 To read an object from the file.
 The object associated to this key is read from the file into memory.
 Before invoking this function, obj has been created via the
 default constructor.
TObject* ReadObj()
 Read object derived from TObject class
 If it is not TObject or in case of error, return 0
TObject* ReadObjWithBuffer(char* bufferRead)
 Read object derived from TObject class
 If it is not TObject or in case of error, return 0
void* ReadObjectAny(const TClass* expectedClass)
 read object of any type from SQL database
void* ReadKeyObject(void* obj, const TClass* expectedClass)
 Read object, associated with key, from database
TKeySQL(const TKeySQL& )
TKeySQL& operator=(const TKeySQL& )
Int_t Read(const char* name)
{ return TKey::Read(name); }
Long64_t GetDBKeyId() const
{ return fKeyId; }
Long64_t GetDBObjId() const
{ return fObjId; }
void DeleteBuffer()
{}
void FillBuffer(char*& )
{}
char * GetBuffer() const
{ return 0; }
Long64_t GetSeekKey() const
{ return GetDBObjId() > 0 ? GetDBObjId() : 0; }
Long64_t GetSeekPdir() const
{ return GetDBDirId() > 0 ? GetDBDirId() : 0; }
void Keep()
{}
void ReadBuffer(char*& )
{}
Bool_t ReadFile()
{ return kTRUE; }
void SetBuffer()
{ fBuffer = 0; }
Int_t WriteFile(Int_t = 1, TFile* = 0)
{ return 0; }