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/pracrodaotest.cc | |
parent | 1680325095c79bd66c13e6e0bd9fb6340c83a1e0 (diff) |
New database layout.
Diffstat (limited to 'server/src/pracrodaotest.cc')
-rw-r--r-- | server/src/pracrodaotest.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/server/src/pracrodaotest.cc b/server/src/pracrodaotest.cc index 45cafc7..ec9c293 100644 --- a/server/src/pracrodaotest.cc +++ b/server/src/pracrodaotest.cc @@ -45,7 +45,13 @@ PracroDAOTest::~PracroDAOTest() DEBUG(db, "Delete test (memory only) database\n"); } -void PracroDAOTest::commitTransaction(Transaction &transaction, +std::string PracroDAOTest::newSessionId() +{ + return data.sessionseq.nextval(); +} + +void PracroDAOTest::commitTransaction(std::string sessionid, + Transaction &transaction, Commit &commit, Macro &_macro, time_t now) @@ -106,7 +112,8 @@ void PracroDAOTest::commitTransaction(Transaction &transaction, } } -Values PracroDAOTest::getLatestValues(std::string patientid, Macro *macro, +Values PracroDAOTest::getLatestValues(std::string sessionid, + std::string patientid, Macro *macro, Fieldnames &fieldnames, time_t oldest) { std::string macro_name = macro ? macro->attributes["name"].c_str() : "(null)"; @@ -158,7 +165,10 @@ Values PracroDAOTest::getLatestValues(std::string patientid, Macro *macro, } -unsigned PracroDAOTest::nrOfCommits(std::string patientid, std::string macroname, time_t oldest) +unsigned PracroDAOTest::nrOfCommits(std::string sessionid, + std::string patientid, + std::string macroname, + time_t oldest) { unsigned num = 0; |