Mercurial > hg > orthanc-databases
comparison Framework/MySQL/MySQLTransaction.h @ 186:6fe74f9a516e
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Dec 2020 15:05:19 +0100 |
parents | 4cd7e45b671e |
children | 3236894320d6 |
comparison
equal
deleted
inserted
replaced
185:7c46155b5bb4 | 186:6fe74f9a516e |
---|---|
36 MySQLDatabase& db_; | 36 MySQLDatabase& db_; |
37 bool readOnly_; | 37 bool readOnly_; |
38 bool active_; | 38 bool active_; |
39 | 39 |
40 public: | 40 public: |
41 MySQLTransaction(MySQLDatabase& db); | 41 explicit MySQLTransaction(MySQLDatabase& db); |
42 | 42 |
43 virtual ~MySQLTransaction(); | 43 virtual ~MySQLTransaction(); |
44 | 44 |
45 virtual bool IsImplicit() const | 45 virtual bool IsImplicit() const ORTHANC_OVERRIDE |
46 { | 46 { |
47 return false; | 47 return false; |
48 } | 48 } |
49 | 49 |
50 virtual bool IsReadOnly() const | 50 virtual bool IsReadOnly() const ORTHANC_OVERRIDE |
51 { | 51 { |
52 return readOnly_; | 52 return readOnly_; |
53 } | 53 } |
54 | 54 |
55 virtual void Rollback(); | 55 virtual void Rollback() ORTHANC_OVERRIDE; |
56 | 56 |
57 virtual void Commit(); | 57 virtual void Commit() ORTHANC_OVERRIDE; |
58 | 58 |
59 virtual IResult* Execute(IPrecompiledStatement& statement, | 59 virtual IResult* Execute(IPrecompiledStatement& statement, |
60 const Dictionary& parameters); | 60 const Dictionary& parameters) ORTHANC_OVERRIDE; |
61 | 61 |
62 virtual void ExecuteWithoutResult(IPrecompiledStatement& transaction, | 62 virtual void ExecuteWithoutResult(IPrecompiledStatement& transaction, |
63 const Dictionary& parameters); | 63 const Dictionary& parameters) ORTHANC_OVERRIDE; |
64 }; | 64 }; |
65 } | 65 } |