diff options
author | randomdan <randomdan@localhost> | 2011-08-12 19:31:11 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-08-12 19:31:11 +0000 |
commit | abf584221e07e4d3e5126e7c6ce520d8f7bf6975 (patch) | |
tree | 55a54d786180d4c76ef98af92450f7baa81fbb60 /project2/sqlCheck.h | |
parent | Use the new dynamic sql builder to build sqlTask's SQL and bind its parameter... (diff) | |
download | project2-abf584221e07e4d3e5126e7c6ce520d8f7bf6975.tar.bz2 project2-abf584221e07e4d3e5126e7c6ce520d8f7bf6975.tar.xz project2-abf584221e07e4d3e5126e7c6ce520d8f7bf6975.zip |
Don't use parameters in sqlCheck anymore... just like sqlTask yesterday
Diffstat (limited to 'project2/sqlCheck.h')
-rw-r--r-- | project2/sqlCheck.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/project2/sqlCheck.h b/project2/sqlCheck.h index 1f2937f..c9933d7 100644 --- a/project2/sqlCheck.h +++ b/project2/sqlCheck.h @@ -2,12 +2,13 @@ #define SQLCHECK_H #include "paramChecker.h" -#include "iHaveParameters.h" +#include "sqlWriter.h" namespace DB { class SelectCommand; } +class RdbmsDataSource; /// Project2 component to check the value of a variable against an RDBMS data source -class SqlCheck : IHaveParameters, public ParamChecker { +class SqlCheck : public ParamChecker { public: SqlCheck(const xmlpp::Element * p); virtual ~SqlCheck(); @@ -16,11 +17,13 @@ class SqlCheck : IHaveParameters, public ParamChecker { bool performCheck() const; const Variable dataSource; - const Glib::ustring sql; - const std::string testOp; - const VariableType testValue; + const Variable filter; + const Variable testOp; + const Variable testValue; + private: - DB::SelectCommand * query; + const DynamicSql::SqlCommand sqlCommand; + const RdbmsDataSource * db; }; #endif |