StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
StDbManagerImpl Class Reference
Inheritance diagram for StDbManagerImpl:
StDbManager

Public Member Functions

virtual void turnOffTimeLogging ()
 
virtual StDbConfigNodeinitConfig (const char *databaseName)
 
virtual StDbConfigNodeinitConfig (const char *databaseName, const char *configName, int opt=0)
 
virtual StDbConfigNodeinitConfig (StDbType type, StDbDomain domain)
 
virtual StDbConfigNodeinitConfig (StDbType type, StDbDomain domain, const char *configName, int opt=0)
 
virtual StDbConfigNodeinitConfig (StDbType type, StDbDomain domain, unsigned int requestTime, int opt=0)
 
virtual StDbConfigNodeinitConfig (const char *databaseName, unsigned int requestTime, int opt=0)
 
virtual char * getConfigNodeName (StDbType type, StDbDomain domain)
 
virtual char * getExternalVersion (StDbType type, StDbDomain domain)
 
virtual dbEnvListgetEnvList (const char *name)
 
virtual StDbTablenewDbTable (const char *dbName, const char *tabName)
 
virtual StDbTablenewDbTable (StDbNode *node)
 
virtual StDataBaseIfindDb (StDbType type, StDbDomain domain)
 
virtual StDataBaseIfindDb (const char *dbType, const char *dbDomain)
 
virtual StDataBaseIfindDb (const char *databaseName)
 
virtual StDbServerfindServer (StDbType type, StDbDomain domain)
 
virtual StDbServerfindServer (StDbNode *node)
 
virtual StDbServerfindServer (const char *dbType, const char *dbDomain)
 
virtual StDbServerfindServer (const char *databaseName)
 
virtual StDbServerfindDefaultServer ()
 
virtual char * getDbTypeName (StDbType type)
 
virtual char * getDbDomainName (StDbDomain domain)
 
virtual StDbType getDbType (const char *typeName)
 
virtual StDbDomain getDbDomain (const char *domainName)
 
virtual char * getDbName (const char *typeName, const char *domainName)
 
virtual char * printDbName (StDbType type, StDbDomain domain)
 
virtual void blacklistDbDomain (const char *domainName)
 
virtual void setRequestTime (unsigned int time)
 
virtual void setRequestTime (const char *time)
 
virtual unsigned int getUnixRequestTime ()
 
virtual char * getDateRequestTime ()
 
virtual unsigned int getUnixCheckTime ()
 
virtual char * getDateCheckTime ()
 
virtual void setStoreTime (unsigned int time)
 
virtual void setStoreTime (const char *time)
 
virtual unsigned int getUnixStoreTime ()
 
virtual char * getDateStoreTime ()
 
virtual bool getDataBaseInfo (const char *dbname, char *&type, char *&domain)
 
virtual bool getDataBaseInfo (const char *dbname, StDbType &type, StDbDomain &domain)
 
virtual bool IsValid (StDbTable *table)
 
virtual bool fetchDbTable (StDbTable *table)
 
virtual bool fetchDbTable (StDbTable *table, char *whereClause)
 
virtual bool fetchAllTables (StDbConfigNode *node)
 
virtual bool storeDbTable (StDbTable *table, bool commitWhenDone=true)
 
virtual bool storeAllTables (StDbConfigNode *node, bool commitWhenDone=true)
 
virtual int storeConfig (StDbConfigNode *node, int currentID, int &configID, bool commitWhenDone=true)
 
virtual bool rollBackAllTables (StDbConfigNode *node)
 
virtual bool rollBackAllNodes (StDbConfigNode *node)
 for table data
 
virtual bool rollBack (StDbNode *node)
 for node data
 
virtual bool rollBack (StDbTable *table)
 for node data
 
virtual bool commitAllTables (StDbConfigNode *node)
 for table data
 
virtual bool commitAllNodes (StDbConfigNode *node)
 table commits
 
virtual void closeAllConnections ()
 node commits
 
virtual void closeAllConnections (StDbConfigNode *node)
 
virtual void closeConnection (StDbNode *node)
 
virtual void printTimeStats ()
 
- Public Member Functions inherited from StDbManager
virtual bool IsVerbose () const
 
virtual void setVerbose (bool isVerbose)
 
virtual bool IsQuiet () const
 
virtual void setQuiet (bool isQuiet)
 
virtual void updateMessLevel ()
 
virtual void setMessenger (StDbMessService *service)
 
virtual StDbMessServicegetMessenger ()
 
virtual int printInfo (const char *m1, StDbMessLevel ml, int lineNumber=0, const char *className=" ", const char *methodName=" ")
 
virtual int printInfo (const char *m1, const char *m2, StDbMessLevel ml, int lineNumber=0, const char *className=" ", const char *methodName=" ")
 
virtual char * userName ()
 
virtual char * pWord ()
 
virtual void setUser (const char *userName, const char *pWord)
 

Public Attributes

short xmlInputSource
 
StDbServiceBrokermyServiceBroker
 

Protected Member Functions

virtual void initTypes ()
 
virtual void initDomains ()
 
virtual void addDbType (StDbType type, const char *typeName)
 
virtual void addDbDomain (StDbDomain domain, const char *domainName)
 
virtual StDbType newDbType (const char *typeName)
 
virtual StDbDomain newDbDomain (const char *domainName)
 
virtual void deleteServers ()
 
virtual void deleteTypes ()
 
virtual void deleteDomains ()
 
virtual void lookUpServers ()
 
virtual void findServersXml (ifstream &is)
 
virtual char * findServerString (ifstream &is)
 
virtual char * getNextName (char *&name)
 
void updateDateTime (StDbTime &t)
 
void updateUnixTime (StDbTime &t)
 
- Protected Member Functions inherited from StDbManager
 StDbManager ()
 flag for logging timing
 
char * mstringDup (const char *str)
 

Friends

class StDbManager
 

Additional Inherited Members

- Static Public Member Functions inherited from StDbManager
static StDbManagerInstance ()
 strdup(..) is not ANSI
 
- Protected Attributes inherited from StDbManager
bool misVerbose
 
bool misQuiet
 3 levels of verbosity: verbose, normal, quiet.
 
StDbMessServiceMessenger
 where normal=!misVerbose && !misQuiet
 
char * muserName
 
char * mpWord
 
bool misTimeLogged
 
- Static Protected Attributes inherited from StDbManager
static StDbManagermInstance =0
 

Detailed Description

Definition at line 129 of file StDbManagerImpl.hh.

Member Function Documentation

void StDbManagerImpl::lookUpServers ( )
protectedvirtual

we have determined the name of the configuration file dbLoadBalancerConfig

Definition at line 571 of file StDbManagerImpl.cc.


The documentation for this class was generated from the following files: