diff options
author | deva <deva> | 2011-01-25 12:17:47 +0000 |
---|---|---|
committer | deva <deva> | 2011-01-25 12:17:47 +0000 |
commit | 13f286925b1e9e34fe71413edcba23686c005f8a (patch) | |
tree | d1ea04756f6eb198fb18a367423670734e6e062a /server/src/pracrodao.h | |
parent | 1680325095c79bd66c13e6e0bd9fb6340c83a1e0 (diff) |
New database layout.
Diffstat (limited to 'server/src/pracrodao.h')
-rw-r--r-- | server/src/pracrodao.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/server/src/pracrodao.h b/server/src/pracrodao.h index 83bd017..3371e2c 100644 --- a/server/src/pracrodao.h +++ b/server/src/pracrodao.h @@ -42,15 +42,19 @@ public: std::string _user, std::string _passwd, std::string _dbname); virtual ~PracroDAO(); - virtual void commitTransaction(Transaction &transaction, + virtual std::string newSessionId() = 0; + virtual void commitTransaction(std::string sessionid, + Transaction &transaction, Commit &commit, Macro ¯o, time_t now) = 0; - virtual Values getLatestValues(std::string patientid, + virtual Values getLatestValues(std::string sessionid, + std::string patientid, Macro *macro, Fieldnames &fieldnames, time_t oldest) = 0; - virtual unsigned nrOfCommits(std::string patientid, + virtual unsigned nrOfCommits(std::string sessionid, + std::string patientid, std::string macroname, time_t oldest) = 0; @@ -59,8 +63,9 @@ public: virtual void delFieldname(std::string name) = 0; virtual std::vector<Fieldname> getFieldnames() = 0; - virtual void commit() = 0; - virtual void discard() = 0; + virtual void commit(std::string sessionid) = 0; + virtual void nocommit(std::string sessionid) = 0; + virtual void discard(std::string sessionid) = 0; virtual std::string serialise() = 0; virtual void restore(const std::string &data) = 0; |