summaryrefslogtreecommitdiffstats
path: root/common/store.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-01-12 10:46:47 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-01-12 10:46:47 +0100
commit7d4784db80284874cd5b7e8e9f1c8694f6985b90 (patch)
tree0cc70a3ea1eb066ad1c146f42cad42a844ff12cd /common/store.h
parentbb529848d4f7037ca92707b4dedbf40ae9c3d673 (diff)
downloadsink-7d4784db80284874cd5b7e8e9f1c8694f6985b90.tar.gz
sink-7d4784db80284874cd5b7e8e9f1c8694f6985b90.zip
Modifications for multiple entities.
This allows to apply a modification to all entities matching some query.
Diffstat (limited to 'common/store.h')
-rw-r--r--common/store.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/store.h b/common/store.h
index d2ab9b5..f787a3e 100644
--- a/common/store.h
+++ b/common/store.h
@@ -76,12 +76,24 @@ template <class DomainType>
76KAsync::Job<void> SINK_EXPORT modify(const DomainType &domainObject); 76KAsync::Job<void> SINK_EXPORT modify(const DomainType &domainObject);
77 77
78/** 78/**
79 * Modify a set of entities identified by @param query.
80 */
81template <class DomainType>
82KAsync::Job<void> SINK_EXPORT modify(const Query &query, const DomainType &domainObject);
83
84/**
79 * Remove an entity. 85 * Remove an entity.
80 */ 86 */
81template <class DomainType> 87template <class DomainType>
82KAsync::Job<void> SINK_EXPORT remove(const DomainType &domainObject); 88KAsync::Job<void> SINK_EXPORT remove(const DomainType &domainObject);
83 89
84/** 90/**
91 * Remove a set of entities identified by @param query.
92 */
93template <class DomainType>
94KAsync::Job<void> SINK_EXPORT remove(const Query &query);
95
96/**
85 * Move an entity to a new resource. 97 * Move an entity to a new resource.
86 */ 98 */
87template <class DomainType> 99template <class DomainType>