diff options
Diffstat (limited to 'project2/sqlMergeTask.h')
-rw-r--r-- | project2/sqlMergeTask.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/project2/sqlMergeTask.h b/project2/sqlMergeTask.h index 08246d0..c7a7e4e 100644 --- a/project2/sqlMergeTask.h +++ b/project2/sqlMergeTask.h @@ -15,9 +15,9 @@ #include <list> class SqlMergeTask : public Task { - public: - typedef std::string Table; - typedef std::string Column; + public: + typedef std::string Table; + typedef std::string Column; class TargetColumn; typedef boost::intrusive_ptr<TargetColumn> TargetColumnPtr; class TargetColumn : public virtual IntrusivePtrBase { @@ -33,44 +33,44 @@ class SqlMergeTask : public Task { Table maptable; }; - typedef std::set<TargetColumnPtr, TargetColumn::Sort> Columns; + typedef std::set<TargetColumnPtr, TargetColumn::Sort> Columns; - typedef std::set<Column> Keys; + typedef std::set<Column> Keys; - SqlMergeTask(const xmlpp::Element * p); - virtual ~SqlMergeTask(); + SqlMergeTask(const xmlpp::Element * p); + virtual ~SqlMergeTask(); - virtual void loadComplete(const CommonObjects *); - void execute() const; - Columns cols; - Keys keys; - Keys indexes; - const Variable updateWhere; - const std::string patchOrder; - const bool earlyKeys; - const bool useView; + virtual void loadComplete(const CommonObjects *); + void execute() const; + Columns cols; + Keys keys; + Keys indexes; + const Variable updateWhere; + const std::string patchOrder; + const bool earlyKeys; + const bool useView; - private: - virtual void copyToTempTable() const; - void createTempTable() const; - void dropTempTable() const; - void createTempKey() const; + private: + virtual void copyToTempTable() const; + void createTempTable() const; + void dropTempTable() const; + void createTempKey() const; - mutable bool tempTableCreated; - Iterates sources; + mutable bool tempTableCreated; + Iterates sources; std::list<std::string> sqls; - protected: - ModifyCommand * insertCommand() const; - ModifyCommand * insCmd; + protected: + ModifyCommand * insertCommand() const; + ModifyCommand * insCmd; - public: - ODBC::Connection * destdb; - const std::string dataSource; - const Table dtable; - const Table dtablet; + public: + ODBC::Connection * destdb; + const Variable dataSource; + const Table dtable; + const Table dtablet; - static unsigned int defaultVerbosity; - static bool defaultUseTempTable; + static unsigned int defaultVerbosity; + static bool defaultUseTempTable; }; #endif |