summaryrefslogtreecommitdiff
path: root/server/src/pracrodaotest.h
diff options
context:
space:
mode:
authordeva <deva>2011-01-25 12:17:47 +0000
committerdeva <deva>2011-01-25 12:17:47 +0000
commit13f286925b1e9e34fe71413edcba23686c005f8a (patch)
treed1ea04756f6eb198fb18a367423670734e6e062a /server/src/pracrodaotest.h
parent1680325095c79bd66c13e6e0bd9fb6340c83a1e0 (diff)
New database layout.
Diffstat (limited to 'server/src/pracrodaotest.h')
-rw-r--r--server/src/pracrodaotest.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/server/src/pracrodaotest.h b/server/src/pracrodaotest.h
index 34886d0..0bd9be5 100644
--- a/server/src/pracrodaotest.h
+++ b/server/src/pracrodaotest.h
@@ -66,6 +66,7 @@ private:
class Data {
public:
+ dbcounter_t sessionseq;
dbcounter_t trseq;
dbtable_t transactions;
dbtable_t fieldnames;
@@ -78,15 +79,19 @@ public:
PracroDAOTest(Data &data, bool ignore_fieldnames = false);
~PracroDAOTest();
- void commitTransaction(Transaction &transaction,
+ std::string newSessionId();
+ void commitTransaction(std::string sessionid,
+ Transaction &transaction,
Commit &commit,
Macro &macro,
time_t now);
- Values getLatestValues(std::string patientid,
+ Values getLatestValues(std::string sessionid,
+ std::string patientid,
Macro *macro,
Fieldnames &fieldnames,
time_t oldest);
- unsigned nrOfCommits(std::string patientid,
+ unsigned nrOfCommits(std::string sessionid,
+ std::string patientid,
std::string macroname,
time_t oldest);
@@ -94,8 +99,9 @@ public:
void delFieldname(std::string name);
std::vector<Fieldname> getFieldnames();
- void commit() {}
- void discard() {}
+ void commit(std::string sessionid) {}
+ void nocommit(std::string sessionid) {}
+ void discard(std::string sessionid) {}
std::string serialise() { return ""; }
void restore(const std::string &data) {}