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

Public Member Functions

 StDbSql (MysqlDb &db, StDbBuffer &buffer)
 
 StDbSql (MysqlDb &db, StDbBuffer &buffer, StDbType type, StDbDomain domain)
 
 StDbSql (MysqlDb &db, StDbBuffer &buffer, const char *typeName, const char *domainName)
 
virtual void use ()
 
virtual void close ()
 
virtual void clear ()
 
virtual int QueryDb (StDbConfigNode *node)
 
virtual int QueryDb (StDbNode *node)
 
virtual int QueryDb (StDbTable *table, unsigned int reqTime)
 
virtual int QueryDb (StDbTable *table, const char *whereClause)
 
virtual unsigned int * QueryDbTimes (StDbTable *table, const char *whereClause, int opt=0)
 
virtual int QueryDbFunction (StDbTable *table, const char *whereClause, char *funcName)
 
virtual int QueryDescriptor (StDbTable *table)
 
virtual int WriteDb (StDbTable *table, unsigned int storeTime)
 
virtual int WriteDb (StDbConfigNode *node, int parentID, int &configID)
 
virtual int storeConfigNode (StDbConfigNode *node)
 
virtual int storeTableNode (StDbTable *table)
 
virtual bool insertNodeRelation (int configID, int parent, int child)
 
virtual bool rollBack (StDbNode *node)
 
virtual bool rollBack (StDbTable *table)
 
virtual unsigned int getUnixTime (const char *time)
 
virtual char * getDateTime (unsigned int time)
 
virtual int * selectElements (const char *elementName, StDbElementIndex *inval, int &numElements)
 
char * getDataTable (StDbTable *table, unsigned int time)
 
char ** getDataTables (StDbTable *table, int &numTables)
 
void setDbUtils (MysqlDb &db, StDbBuffer &buffer)
 
void setDefaultReturnValues (StDbTable *table, unsigned int reqTime)
 
void setDefaultBeginTime (StDbTable *table, unsigned int reqTime)
 
void setDefaultEndTime (StDbTable *table)
 
char ** getIndexNames (const char *elementName, int &numIndexes)
 
- Public Member Functions inherited from StDataBaseI
 StDataBaseI (StDbType type, StDbDomain domain)
 
 StDataBaseI (const char *typeName, const char *domainName)
 
virtual void setDataBase (StDbType type, StDbDomain domain)
 
virtual void setDataBase (const char *typeName, const char *domainName)
 
virtual void setDataBase (const char *dbName)
 
virtual void setDbType (StDbType type)
 
virtual void setDbDomain (StDbDomain domain)
 
virtual StDbType getDbType () const
 
virtual StDbDomain getDbDomain () const
 
virtual void setDbName (const char *dbName)
 
virtual void setTypeName (const char *typeName)
 
virtual void setDomainName (const char *domainName)
 
virtual char * getDbName () const
 
virtual char * getTypeName () const
 
virtual char * getDomainName () const
 
virtual char * printDbName ()
 
virtual char * printTypeName ()
 
virtual char * printDomainName ()
 
virtual bool checkDbName (const char *name)
 
virtual bool checkDbType (const char *type)
 
virtual bool checkDbDomain (const char *domain)
 
virtual StDbStoreType getDbStoreType () const
 
virtual void setDbStoreType (StDbStoreType type)
 

Public Attributes

MysqlDbDb
 
StDbBufferbuff
 

Protected Member Functions

StDbTableDescriptorfindDescriptor (int structID, int schemaID)
 
StDbTableDescriptorgetDescriptor (int structID, int schemaID)
 
void addDescriptor (StDbTableDescriptor *td)
 
void deleteDescriptors ()
 
void deleteDescriptor (int structID, int schemaID)
 
int prepareNode (StDbNode *node)
 
int queryNode (StDbNode *node)
 
bool readNodeInfo (StDbNode *node)
 
bool readConfigNodeInfo (StDbConfigNode *node)
 
bool readTableInfo (StDbTable *table)
 
bool checkValue (const char *colName, const char *colValue)
 
bool checkForNull (const char *src)
 
char * insertNodeString (StDbNode *node)
 
char * getFlavorQuery (const char *flavor)
 
char * getProdTimeQuery (unsigned int prodTime)
 
char * getElementList (int *elements, int num)
 
char * getElementListIN (int *elements, int num)
 
char * getColumnList (StDbTable *table, char *tableName=0, char *funcName=0)
 
char * getEmptyString ()
 
bool hasInstance (StDbTable *table)
 
void checkTableCatalog ()
 
char * checkTablePrepForQuery (StDbTable *table, bool checkIndexed=false)
 
void deleteRows (const char *tableName, int *rowID, int nrows)
 
void initEndTime ()
 
char * mRetString (StString &rs)
 
int sendMess (const char *a, const char *b, StDbMessLevel m, int lineNum=0, const char *className=" ", const char *methName=" ")
 
bool checkColumn (const char *tableName, const char *columnName)
 
bool updateEndTime (StDbTable *table, const char *dataTable, unsigned int reqTime)
 
void init ()
 
virtual int WriteDbNoIndex (StDbTable *table, unsigned int storeTime)
 

Protected Attributes

StDbManagermgr = 0
 
DescList mdescriptors
 
char * mretString = 0
 
int mtableCatalog = 0
 
char * mdefaultEndDateTime = 0
 
unsigned int mdefaultEndTime = 0
 
- Protected Attributes inherited from StDataBaseI
StDbType mdbType
 
StDbDomain mdbDomain
 
char * mdbName
 
char * mtypeName
 
char * mdomainName
 
StDbStoreType mdbStore
 

Detailed Description

Definition at line 95 of file StDbSql.hh.


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