Mercurial > hg > orthanc-databases
comparison Framework/Common/ImplicitTransaction.h @ 214:ab96698c73a3
removed useless information about read-only in ITransaction and IPrecompiledStatement
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Mar 2021 13:56:26 +0100 |
parents | 3236894320d6 |
children | 16aac0287485 |
comparison
equal
deleted
inserted
replaced
213:c2e4a909de0e | 214:ab96698c73a3 |
---|---|
36 State_Executed, | 36 State_Executed, |
37 State_Committed | 37 State_Committed |
38 }; | 38 }; |
39 | 39 |
40 State state_; | 40 State state_; |
41 bool readOnly_; | |
42 | 41 |
43 void CheckStateForExecution(); | 42 void CheckStateForExecution(); |
44 | 43 |
45 protected: | 44 protected: |
46 virtual IResult* ExecuteInternal(IPrecompiledStatement& statement, | 45 virtual IResult* ExecuteInternal(IPrecompiledStatement& statement, |
57 virtual bool IsImplicit() const ORTHANC_OVERRIDE | 56 virtual bool IsImplicit() const ORTHANC_OVERRIDE |
58 { | 57 { |
59 return true; | 58 return true; |
60 } | 59 } |
61 | 60 |
62 virtual bool IsReadOnly() const ORTHANC_OVERRIDE | |
63 { | |
64 return readOnly_; | |
65 } | |
66 | |
67 virtual void Rollback() ORTHANC_OVERRIDE; | 61 virtual void Rollback() ORTHANC_OVERRIDE; |
68 | 62 |
69 virtual void Commit() ORTHANC_OVERRIDE; | 63 virtual void Commit() ORTHANC_OVERRIDE; |
70 | 64 |
71 virtual IResult* Execute(IPrecompiledStatement& statement, | 65 virtual IResult* Execute(IPrecompiledStatement& statement, |