// Version: 2018.7.12 9:12:50 // File: T_MUDBAX.h #ifndef _T_MU_DBAXH #define _T_MU_DBAXH #include using namespace std; using namespace iPlature; using namespace iDA; class T_MU; class T_MUDBAX { 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_MUDBAX(); // // destructor // public: virtual ~T_MUDBAX(); // // methods // public: // // public methode readDB // char* readDB( T_MU &dbObj ); public: // // public methode updateDB // char* updateDB( T_MU &dbObj ); public: // // public methode insertDB // char* insertDB( T_MU &dbObj ); public: // // public methode deleteDB // char* deleteDB( T_MU &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_MU &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_MU &dbObj ); private: // // private methode copyAttribute2DB // void copyAttribute2DB( T_MU &dbObj ); private: // // private methode copyKey2Host // void copyKey2Host( T_MU &dbObj ); private: // // private methode copyHost2Key // void copyHost2Key( T_MU &dbObj ); }; // end of class #endif