summaryrefslogtreecommitdiff
path: root/project2/sqlCheck.h
blob: c9933d7167032b31b29149de0cc9dca4b812c5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef SQLCHECK_H
#define SQLCHECK_H

#include "paramChecker.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 : public ParamChecker {
	public:
		SqlCheck(const xmlpp::Element * p);
		virtual ~SqlCheck();

		virtual void loadComplete(const CommonObjects *);
		bool performCheck() const;

		const Variable dataSource;
		const Variable filter;
		const Variable testOp;
		const Variable testValue;

	private:
		const DynamicSql::SqlCommand sqlCommand;
		const RdbmsDataSource * db;
};

#endif