ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Servers/AppServer/include/SQL.hpp
Revision: 1.4
Committed: Fri Apr 21 18:40:42 2006 UTC (19 years ago) by afaq
Branch: MAIN
CVS Tags: DBS_0_0_2, DBS_0_0_1, pre_DBS_0_0_1, post_dict_type_checking_merge, post_MiniPythonAPI_merged_to_trunk, pre_MiniPythonAPI_merge_to_trunk, HEAD
Changes since 1.3: +5 -2 lines
Log Message:
Performance enhanced code

File Contents

# Content
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