1 |
#ifndef _SQL_hpp_included_
|
2 |
#define _SQL_hpp_included_
|
3 |
#include <string>
|
4 |
#include "RowInterface.hpp"
|
5 |
#include "common.hpp"
|
6 |
#include "Util.hpp"
|
7 |
class SQL {
|
8 |
|
9 |
public:
|
10 |
SQL(Util*);
|
11 |
SQL();
|
12 |
virtual std::string makeInsertQuery(RowInterface*, std::string, std::string, Dictionary_iter, Dictionary_iter, Keys* primaryKeys);
|
13 |
virtual std::string makeUpdateQuery(RowInterface*, std::string, std::string, Dictionary_iter, Dictionary_iter, Keys* primaryKeys);
|
14 |
std::string makeClause(RowInterface*, Keys_iter, Keys_iter,Dictionary_iter, Dictionary_iter);
|
15 |
std::string makeRefClause(Dictionary_iter, Dictionary_iter);
|
16 |
std::string makeMultiRefClause(Dictionary_iter, Dictionary_iter);
|
17 |
std::string makeSelectClause(Dictionary_iter, Dictionary_iter);
|
18 |
std::string makeTableClause(Keys_iter, Keys_iter);
|
19 |
std::string makeSeqQuery(std::string, std::string);
|
20 |
std::string makeSeqQuery(std::string tableName, std::string colName, std::string clause);
|
21 |
protected:
|
22 |
Util * util;
|
23 |
std::string formatValue(std::string, std::string);
|
24 |
};
|
25 |
|
26 |
#endif
|
27 |
|