|
BrRdbmMainDbclass description - source file - inheritance tree class BrRdbmMainDb : public BrMainDbpublic: Data MembersClass DescriptionClass BrRdbmMainDb Singleton class, that connects woth top level database Name and host of database is set at compile time in BrDBInc.hh, unless overriden in ctor. Provides methods to connect ot additional databases. BrRdbmMainDb(const Char_t* name, const Char_t* title) BrMainDb* Instance(void) Bool_t Connect(Option_t* option) Overloaded here, since we need to get the gPerson. Options: See BrDb::Connect void AddDb(BrDbDb* db) Add a new db to the db table. Throws a BrException in case of error. void AddPerson(BrDbPerson* person) Add a new person to the detector database. Throws a BrException in case of error. void AddSector(BrDbSector* sector) Add a new Sector to the Sectors table. The BrDbSector object is updated to contain the database ID number. Throws a BrException in case of errors. void AddDetector(BrDbDetector* det) Add a detector to the database. Throws a BrException in case of Error. void AddDetectorType(BrDbDetectorType* type) Add a Detector type to the database. Throws a BrException in case of Error. void AddComponent(BrDbComponent* comp) Add a component to the database. Throws a BrException in case of Error. void AddComponentType(BrDbComponentType* type) Add a Component type to the database. Throws a BrException in case of Error. BrDbDb* GetDb(const Char_t* name) Returns the actual database name and host in a BrDbDb for the symbolic database called name. The BrDbDb object must be deleted by user. BrDbPerson* GetPerson(const Char_t* condition) See GetSector and BrDb::GetSingle. BrDbSector* GetSector(const Char_t* condition) Selects a Sector from database, according to the conditions in the argument e.g., "name LIKE '%%%s%%', "FMS"". See also BrDb::GetSingle. Valid fields are name (string) BrDbDetector* GetDetector(const Char_t* condition) See GetSector and BrDb::GetSingle. Valid fields are name (string), type (int), sector (int), maintainer (int) BrDbDetectorType* GetDetectorType(const Char_t* condition) See GetSector and BrDb::GetSingle. Valid fields are lastname, firstnames, email, institute (all strings) BrDbComponent* GetComponent(const Char_t* condition) See GetSector and BrDb::GetSingle. Valid fields are name (string), type (int), sector (int), maintainer (int) GetComponentType(const Char_t* condition) See GetSector and BrDb::GetSingle. Valid fields are lastname, firstnames, email, institute (all strings) GetXPerson(const Char_t* condition) You need to explicitly provide the "WHERE" in the where claus. See also BrDb::GetMulitple GetXSector(const Char_t* condition) You need to explicitly provide the "WHERE" in the where claus. See also BrDb::GetMulitple GetXDetector(const Char_t* condition) You need to explicitly provide the "WHERE" in the where claus. See also BrDb::GetMulitple GetXDetectorType(const Char_t* condition) You need to explicitly provide the "WHERE" in the where claus. See also BrDb::GetMulitple GetXComponent(const Char_t* condition) You need to explicitly provide the "WHERE" in the where claus. See also BrDb::GetMulitple GetXComponentType(const Char_t* condition) You need to explicitly provide the "WHERE" in the where claus. See also BrDb::GetMulitple BrDbPerson* GetPersonByName(const Char_t* lastname, const Char_t* firstnames) Get an entry for individual [<firstnames>] <lastname>. Note that both arguments must be specified, thought the second my be the empty string, NULL, or zero. BrDbSector* GetSectorByName(const Char_t* name) BrDbDetector* GetDetectorByName(const Char_t* name) BrDbDetectorType* GetDetectorTypeByName(const Char_t* name) BrDbComponent* GetComponentByName(const Char_t* name, Int_t detectorId) BrDbComponentType* GetComponentTypeByName(const Char_t* name) Bool_t PurgeDetector(const Char_t* name) Completly remove all references to the detector named name from the databases. This involves: Removing all revisions for detectors parameters Removing all parameters for the detector Remove the detector entry itself This is a DANGEROUS method, and should not be used lightly. Normal users do not have the privileges to do this, so they should not worry too much about it, but privileged user can do ereperable damage to the database by using this method. The method return kFALSE in case something went wrong. Inline FunctionsTClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrRdbmMainDb BrRdbmMainDb(BrRdbmMainDb&) void ~BrRdbmMainDb() |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|