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

Public Member Functions

virtual StDbConfigNodeinitConfig (const char *dbName)=0
 
virtual StDbConfigNodeinitConfig (const char *dbName, const char *configName, int opt=0)=0
 
virtual StDbConfigNodeinitConfig (StDbType type, StDbDomain domain)=0
 
virtual StDbConfigNodeinitConfig (StDbType type, StDbDomain domain, const char *configName, int opt=0)=0
 
virtual StDbConfigNodeinitConfig (StDbType type, StDbDomain domain, unsigned int requestTime, int opt=0)=0
 
virtual StDbConfigNodeinitConfig (const char *dbName, unsigned int requestTime, int opt=0)=0
 
virtual char * getConfigNodeName (StDbType t, StDbDomain d)=0
 
virtual char * getExternalVersion (StDbType t, StDbDomain d)=0
 
virtual dbEnvListgetEnvList (const char *name)=0
 
virtual StDbTablenewDbTable (const char *dbName, const char *tName)=0
 
virtual StDbTablenewDbTable (StDbNode *node)=0
 
virtual StDataBaseIfindDb (StDbType type, StDbDomain domain)=0
 
virtual StDataBaseIfindDb (const char *dbType, const char *dbDomain)=0
 
virtual StDataBaseIfindDb (const char *databaseName)=0
 
virtual StDbServerfindServer (StDbType type, StDbDomain domain)=0
 
virtual StDbServerfindServer (StDbNode *node)=0
 
virtual StDbServerfindServer (const char *type, const char *domain)=0
 
virtual StDbServerfindServer (const char *databaseName)=0
 
virtual StDbServerfindDefaultServer ()=0
 
virtual char * getDbTypeName (StDbType type)=0
 
virtual char * getDbDomainName (StDbDomain domain)=0
 
virtual StDbType getDbType (const char *typeName)=0
 
virtual StDbDomain getDbDomain (const char *domainName)=0
 
virtual char * getDbName (const char *typeName, const char *domName)=0
 
virtual char * printDbName (StDbType type, StDbDomain domain)=0
 
virtual void blacklistDbDomain (const char *domainName)=0
 
virtual void setRequestTime (unsigned int time)=0
 
virtual void setRequestTime (const char *time)=0
 
virtual unsigned int getUnixRequestTime ()=0
 
virtual char * getDateRequestTime ()=0
 
virtual unsigned int getUnixCheckTime ()=0
 
virtual char * getDateCheckTime ()=0
 
virtual void setStoreTime (unsigned int time)=0
 
virtual void setStoreTime (const char *time)=0
 
virtual unsigned int getUnixStoreTime ()=0
 
virtual char * getDateStoreTime ()=0
 
virtual bool getDataBaseInfo (const char *dbname, char *&type, char *&domain)=0
 
virtual bool getDataBaseInfo (const char *dbname, StDbType &type, StDbDomain &domain)=0
 
virtual bool IsValid (StDbTable *table)=0
 
virtual bool fetchDbTable (StDbTable *table)=0
 
virtual bool fetchDbTable (StDbTable *table, char *whereClause)=0
 
virtual bool fetchAllTables (StDbConfigNode *node)=0
 
virtual bool storeDbTable (StDbTable *table, bool commitWhenDone=true)=0
 
virtual bool storeAllTables (StDbConfigNode *node, bool commitWhenDone=true)=0
 
virtual int storeConfig (StDbConfigNode *node, int currentID, int &configID, bool commitWhenDone=true)=0
 
virtual bool rollBackAllTables (StDbConfigNode *node)=0
 
virtual bool rollBackAllNodes (StDbConfigNode *node)=0
 
virtual bool rollBack (StDbNode *node)=0
 
virtual bool rollBack (StDbTable *table)=0
 
virtual bool commitAllTables (StDbConfigNode *node)=0
 
virtual bool commitAllNodes (StDbConfigNode *node)=0
 
virtual void closeAllConnections ()=0
 
virtual void closeAllConnections (StDbConfigNode *node)=0
 
virtual void closeConnection (StDbNode *node)=0
 
virtual void printTimeStats ()=0
 
virtual bool IsVerbose () const
 
virtual void setVerbose (bool isVerbose)
 
virtual bool IsQuiet () const
 
virtual void setQuiet (bool isQuiet)
 
virtual void turnOffTimeLogging ()
 
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)
 

Static Public Member Functions

static StDbManagerInstance ()
 strdup(..) is not ANSI
 

Protected Member Functions

 StDbManager ()
 flag for logging timing
 
char * mstringDup (const char *str)
 

Protected Attributes

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

static StDbManagermInstance =0
 

Detailed Description

Definition at line 148 of file StDbManager.hh.


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