Mercurial > hg > orthanc
comparison OrthancServer/DatabaseWrapper.h @ 1237:0f3716b88af7
cleaning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Dec 2014 15:33:16 +0100 |
parents | 21d84e3acc0d |
children | 6c07108ff1e2 |
comparison
equal
deleted
inserted
replaced
1236:21d84e3acc0d | 1237:0f3716b88af7 |
---|---|
120 | 120 |
121 std::string GetMetadata(int64_t id, | 121 std::string GetMetadata(int64_t id, |
122 MetadataType type, | 122 MetadataType type, |
123 const std::string& defaultValue); | 123 const std::string& defaultValue); |
124 | 124 |
125 bool GetMetadataAsInteger(int& result, | |
126 int64_t id, | |
127 MetadataType type); | |
128 | |
129 void AddAttachment(int64_t id, | 125 void AddAttachment(int64_t id, |
130 const FileInfo& attachment); | 126 const FileInfo& attachment); |
131 | 127 |
132 void DeleteAttachment(int64_t id, | 128 void DeleteAttachment(int64_t id, |
133 FileContentType attachment); | 129 FileContentType attachment); |
151 void GetChildrenPublicId(std::list<std::string>& result, | 147 void GetChildrenPublicId(std::list<std::string>& result, |
152 int64_t id); | 148 int64_t id); |
153 | 149 |
154 void GetChildrenInternalId(std::list<int64_t>& result, | 150 void GetChildrenInternalId(std::list<int64_t>& result, |
155 int64_t id); | 151 int64_t id); |
156 | |
157 void LogChange(int64_t internalId, | |
158 ChangeType changeType, | |
159 ResourceType resourceType, | |
160 const std::string& publicId) | |
161 { | |
162 ServerIndexChange change(changeType, resourceType, publicId); | |
163 LogChange(internalId, change); | |
164 } | |
165 | 152 |
166 void LogChange(int64_t internalId, | 153 void LogChange(int64_t internalId, |
167 const ServerIndexChange& change); | 154 const ServerIndexChange& change); |
168 | 155 |
169 void GetChanges(Json::Value& target, | 156 void GetChanges(Json::Value& target, |
227 void FlushToDisk() | 214 void FlushToDisk() |
228 { | 215 { |
229 db_.FlushToDisk(); | 216 db_.FlushToDisk(); |
230 } | 217 } |
231 | 218 |
232 uint64_t IncrementGlobalSequence(GlobalProperty property); | |
233 | |
234 void ClearTable(const std::string& tableName); | 219 void ClearTable(const std::string& tableName); |
235 | 220 |
236 bool IsExistingResource(int64_t internalId); | 221 bool IsExistingResource(int64_t internalId); |
237 | 222 |
238 void LookupIdentifier(std::list<int64_t>& result, | 223 void LookupIdentifier(std::list<int64_t>& result, |