#define ClassDef(name, id)
Implement TBasket for a SQL backend.
Manages buffers for branches of a Tree.
A TTree is a list of TBranches.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Collection abstract base class.
Implement TTree for a SQL backend.
TString ConvertTypeName(const TString &typeName)
Convert from ROOT typename to SQL typename.
virtual Long64_t GetEntries() const
Get the number of rows in the database.
virtual Long64_t GetEntriesFast() const
Return the number of entries as of the last check.
Bool_t CheckTable(const TString &table) const
Check the table exist in the database.
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Load the data for the entry from the database.
void CreateBranches()
determine leaf description string
virtual Int_t Fill()
Copy the information from the user object to the TTree.
TSQLTableInfo * fTableInfo
void Init()
Initializeation routine.
std::vector< Int_t > * GetColumnIndice(TBranch *branch)
Return a vector of columns index corresponding to the current SQL table and the branch given as argum...
Bool_t CheckBranch(TBranch *tb)
Check if the table has a column corresponding the branch and that the resultset are properly setup.
virtual TBranch * Bronch(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Not implemented yet.
virtual Long64_t PrepEntry(Long64_t entry)
Make sure the server and result set are setup for the requested entry.
virtual Long64_t LoadTree(Long64_t entry)
Setup the tree to the load the specified entry.
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Not implemented yet.
virtual TBranch * BranchOld(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=1)
Not implemented yet.
virtual void CreateBranch(const TString &branchName, const TString &typeName)
Create the column(s) in the database that correspond to the branch/.
void Refresh()
Refresh contents of this Tree and its branches from the current Tree status in the database One can c...
virtual Long64_t GetEntries(const char *sel)
Return the number of entries matching the selection.
void ResetQuery()
Reset the internal query.
TTreeSQL(TSQLServer *server, TString DB, const TString &table)
Constructor with an explicit TSQLServer.
virtual TBasket * CreateBasket(TBranch *br)
Create a TBasketSQL.
Bool_t CreateTable(const TString &table)
Create the database table corresponding to this TTree.
virtual TBranch * BranchImp(const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel)
Not implemented yet.
void CheckBasket(TBranch *tb)
Check if the basket is properly setup.
A TTree represents a columnar dataset.
virtual Long64_t GetEntries() const