eis/inc/dbinc/T_CYC_ENTSEG007DBAX.h

130 lines
1.9 KiB
C++

// Version: 2015.8.8 15:13:13
// File: T_CYC_ENTSEG007DBAX.h
#ifndef _T_CYC_ENTSEG007_DBAXH
#define _T_CYC_ENTSEG007_DBAXH
#include <iDA/iDA.h>
using namespace std;
using namespace iPlature;
using namespace iDA;
class T_CYC_ENTSEG007;
class T_CYC_ENTSEG007DBAX
{
private:
iDA::Command cmd;
iDA::Command readcmd;
iDA::Command insertcmd;
iDA::Command updatecmd;
string m_sql;
public:
long dbSqlCode; // sqlcode of last operation
long dbRowsProcessed; // number of executed rows
//
// constructor
//
public:
T_CYC_ENTSEG007DBAX();
//
// destructor
//
public:
virtual ~T_CYC_ENTSEG007DBAX();
//
// methods
//
public:
//
// public methode readDB
//
char* readDB( T_CYC_ENTSEG007 &dbObj );
public:
//
// public methode updateDB
//
char* updateDB( T_CYC_ENTSEG007 &dbObj );
public:
//
// public methode insertDB
//
char* insertDB( T_CYC_ENTSEG007 &dbObj );
public:
//
// public methode deleteDB
//
char* deleteDB( T_CYC_ENTSEG007 &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_CYC_ENTSEG007 &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_CYC_ENTSEG007 &dbObj );
private:
//
// private methode copyAttribute2DB
//
void copyAttribute2DB( T_CYC_ENTSEG007 &dbObj );
private:
//
// private methode copyKey2Host
//
void copyKey2Host( T_CYC_ENTSEG007 &dbObj );
private:
//
// private methode copyHost2Key
//
void copyHost2Key( T_CYC_ENTSEG007 &dbObj );
}; // end of class
#endif