// Version: 2018.7.12 9:12:50 // File: T_MURDBAX.h #ifndef _T_MUR_DBAXH #define _T_MUR_DBAXH #include using namespace std; using namespace iPlature; using namespace iDA; class T_MUR; class T_MURDBAX { private: iDA::Command cmd; iDA::Command readcmd; iDA::Command insertcmd; iDA::Command updatecmd; string m_sql; public: int dbSqlCode; // sqlcode of last operation int dbRowsProcessed; // number of executed rows // // constructor // public: T_MURDBAX(); // // destructor // public: virtual ~T_MURDBAX(); // // methods // public: // // public methode readDB // char* readDB( T_MUR &dbObj ); public: // // public methode updateDB // char* updateDB( T_MUR &dbObj ); public: // // public methode insertDB // char* insertDB( T_MUR &dbObj ); public: // // public methode deleteDB // char* deleteDB( T_MUR &dbObj ); public: // // public methode deleteDB // char* deleteDB(const char* where , long* count ); public: // // public methode openSetDB // char* openSetDB(const char* where ,const char* order ); public: // // public methode getSetDB // char* getSetDB( T_MUR &dbObj ); public: // // public methode closeSetDB // char* closeSetDB(); public: // // public methode countDB // char* countDB(const char* where , long* count ); char* execute(const char* sql , long* count); char* dbCommit(); char* dbRollback(); private: // // private methode copyDB2Attribute // void copyDB2Attribute( T_MUR &dbObj ); private: // // private methode copyAttribute2DB // void copyAttribute2DB( T_MUR &dbObj ); private: // // private methode copyKey2Host // void copyKey2Host( T_MUR &dbObj ); private: // // private methode copyHost2Key // void copyHost2Key( T_MUR &dbObj ); }; // end of class #endif