20 #ifndef NdbApiTwsDriver_hpp
21 #define NdbApiTwsDriver_hpp
23 #include "TwsDriver.hpp"
26 #include <NdbError.hpp>
80 static const int nCols = 15;
89 int at = c->getArrayType();
103 : mgmd(NULL), ndb(NULL), tx(NULL), model(NULL), bb(NULL), ra(NULL) {
107 assert(mgmd == NULL); assert(ndb == NULL); assert(tx == NULL);
108 assert(model == NULL); assert(bb == NULL); assert(ra == NULL);
140 virtual void close();
141 virtual void initProperties();
142 virtual void printProperties();
143 void initNdbapiBuffers();
144 void closeNdbapiBuffers();
147 virtual void runLoadOperations();
148 void runNdbapiInsert(XMode
mode);
149 void ndbapiInsert(
int c0);
150 void runNdbapiLookup(XMode mode);
151 void ndbapiLookup(
int c0);
152 void ndbapiRead(
int c0);
153 void runNdbapiUpdate(XMode mode);
154 void ndbapiUpdate(
int c0);
155 void runNdbapiDelete(XMode mode);
156 void ndbapiDelete(
int c0);
157 void ndbapiBeginTransaction();
158 void ndbapiExecuteTransaction();
159 void ndbapiCommitTransaction();
160 void ndbapiCloseTransaction();
161 static void ndbapiToBuffer1blp(
void*
to,
const char* from,
size_t width);
162 static void ndbapiToString1blp(
char* to,
const void* from,
size_t width);
165 virtual void initConnection();
166 virtual void closeConnection();
171 #endif // NdbApiTwsDriver_hpp