class HDbTable: public TNamed

_HADES_CLASS_DESCRIPTION

 HDbColumnTable

 Class for an Oracle table


Function Members (Methods)

public:
HDbTable()
HDbTable(const HDbTable&)
HDbTable(HDbConn* p, HDbFileUtil*, const Char_t*)
HDbTable(HDbConn* p, HDbFileUtil*, HDbTable&)
virtual~HDbTable()
voidTObject::AbstractMethod(const char* method) const
voidaddColumn(HDbColumn*)
HDbColumn*addColumn(const Char_t*, const Char_t* columnType = 0)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
voidclearColumns()
voidclearCondition()
voidclearOrderBy()
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
Bool_tcreateTable()
virtual voidTObject::Delete(Option_t* option = "")MENU
Bool_tdescribeTable()
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
Bool_tdropTable()
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 voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
const Char_t*getColDefaultType()
HDbColumn*getColumn(Int_t)
HDbColumn*getColumn(const Char_t*)
const Char_t*getCondition()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
Int_tgetNColumns()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const Char_t*getOrderBy()
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
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
Bool_tisExisting()
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tisTempTable()
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static 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)
HDbTable&operator=(const HDbTable&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidremoveColumn(const Char_t*)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidsetColDefaultType(TString& s)
voidsetColumns(const Char_t*, const Char_t* colTypes = 0)
voidsetCondition(const Char_t* s)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
voidsetOrderBy(const Char_t* s)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidshow()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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
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
Int_twriteTable(ostream&, const Char_t*, const Char_t*, const Char_t*)
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
voidsetNames(const Char_t*)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
TStringcolDefaultTypeDefault type for columns
TStringcondCondition for a select statement
HDbConn*dbConnPointer to the connection class
HDbFileUtil*dbUtilPointer to the utility class
Bool_texistingFlag (kTRUE for an existing table)
Int_tnColumnsNumber of columns
TStringorderClauseOrder clause for a select statement
TList*tabColumnsList of columns
TStringtabNameName of the table
TStringtabOwnerOwner of the table
Bool_ttempTableFlag (kTRUE for a table created inside the program)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HDbTable()
 Default constructor
HDbTable(HDbConn* p, HDbFileUtil* u, const Char_t* tName)
 Constructor
 Parameters: pointer to the Oracle connection class, the Oracle utility class
 and the name of the table
HDbTable(HDbConn* p, HDbFileUtil* u, HDbTable& t)
 Copy constructor
 Parameters: pointer to the Oracle connection class, the Oracle utility class
 and reference to an other table
~HDbTable()
 Destructor
HDbColumn* getColumn(Int_t n)
 Returns the column number n (starting with index 0)
HDbColumn* getColumn(const Char_t* colName)
 Returns the column with the specified name
HDbColumn* addColumn(const Char_t* , const Char_t* columnType = 0)
 Adds a column to the list. The type of the column is optional and needed
 only for the creation of a non-existing table with non default types.
void addColumn(HDbColumn* )
 Adds a copy of the column p to the list
void removeColumn(const Char_t* )
 Removes the column with this name and deletes it
void clearColumns()
 Clears the list of columns
void setColumns(const Char_t* , const Char_t* colTypes = 0)
 Sets a list of columns and types(optional). The lists must be comma separated.
void setCondition(const Char_t* s)
 Sets the condition for a SELECT statement ("WHERE" is added internally!)
void setOrderBy(const Char_t* s)
 Sets the ORDER BY clause for a SELECT statement
 Multiple columns must by separated by commas.
 ("ORDER BY" is added internally!)
Bool_t describeTable()
 Gets the table definition (columns, types, nullable) from Oracle
Bool_t createTable()
 Creates the table in Oracle (created only in the account of the connected user)
Bool_t dropTable()
 Drops the table (drops the table only if created inside the current Oracle session)
void show()
 Shows the table definition
Int_t writeTable(ostream& , const Char_t* , const Char_t* , const Char_t* )
 Writes the content of the table to a stream.
 Fetches the table in batches of 200 rows.
void setNames(const Char_t* )
 Sets the table owner and name from a concatinated string (separated by ".")
HDbTable()
Int_t getNColumns()
{ return nColumns; }
void setColDefaultType(TString& s)
{ colDefaultType=s; }
const Char_t* getCondition()
{ return cond.Data(); }
void clearCondition()
{ cond=""; }
const Char_t* getOrderBy()
{ return orderClause.Data(); }
void clearOrderBy()
{ orderClause=""; }
const Char_t* getColDefaultType()
{ return colDefaultType.Data(); }
Bool_t isTempTable()
{ return tempTable; }
Bool_t isExisting()
{ return existing; }

Last change: Sat May 22 12:54:31 2010
Last generated: 2010-05-22 12:54

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.