eis/inc/dbinc/T_ALARM_MSGDBAX.h

130 lines
1.8 KiB
C++

// Version: 2021.4.23 15:59:12
// File: T_ALARM_MSGDBAX.h
#ifndef _T_ALARM_MSG_DBAXH
#define _T_ALARM_MSG_DBAXH
#include <iDA/iDA.h>
using namespace std;
using namespace iPlature;
using namespace iDA;
class T_ALARM_MSG;
class T_ALARM_MSGDBAX
{
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_ALARM_MSGDBAX();
//
// destructor
//
public:
virtual ~T_ALARM_MSGDBAX();
//
// methods
//
public:
//
// public methode readDB
//
char* readDB( T_ALARM_MSG &dbObj );
public:
//
// public methode updateDB
//
char* updateDB( T_ALARM_MSG &dbObj );
public:
//
// public methode insertDB
//
char* insertDB( T_ALARM_MSG &dbObj );
public:
//
// public methode deleteDB
//
char* deleteDB( T_ALARM_MSG &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_ALARM_MSG &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_ALARM_MSG &dbObj );
private:
//
// private methode copyAttribute2DB
//
void copyAttribute2DB( T_ALARM_MSG &dbObj );
private:
//
// private methode copyKey2Host
//
void copyKey2Host( T_ALARM_MSG &dbObj );
private:
//
// private methode copyHost2Key
//
void copyHost2Key( T_ALARM_MSG &dbObj );
}; // end of class
#endif