diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-23 01:35:13 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-23 01:35:13 +0200 |
commit | 52ad48c8bd755a2fde249296d6017853538f478f (patch) | |
tree | d3adbee13e49d2525720069cb7d9ca6b5876dbd8 /common/domain/event.h | |
parent | 6fc76bc690e5a2e7748936fa835338d820c7e7de (diff) | |
download | sink-52ad48c8bd755a2fde249296d6017853538f478f.tar.gz sink-52ad48c8bd755a2fde249296d6017853538f478f.zip |
A new query system
Diffstat (limited to 'common/domain/event.h')
-rw-r--r-- | common/domain/event.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/domain/event.h b/common/domain/event.h index e1ca061..684b58e 100644 --- a/common/domain/event.h +++ b/common/domain/event.h | |||
@@ -21,7 +21,6 @@ | |||
21 | #include "applicationdomaintype.h" | 21 | #include "applicationdomaintype.h" |
22 | 22 | ||
23 | #include "storage.h" | 23 | #include "storage.h" |
24 | #include "datastorequery.h" | ||
25 | 24 | ||
26 | class ResultSet; | 25 | class ResultSet; |
27 | class QByteArray; | 26 | class QByteArray; |
@@ -31,6 +30,8 @@ class ReadPropertyMapper; | |||
31 | template<typename T> | 30 | template<typename T> |
32 | class WritePropertyMapper; | 31 | class WritePropertyMapper; |
33 | 32 | ||
33 | class DataStoreQuery; | ||
34 | |||
34 | namespace Sink { | 35 | namespace Sink { |
35 | class Query; | 36 | class Query; |
36 | 37 | ||
@@ -51,7 +52,7 @@ public: | |||
51 | typedef Sink::ApplicationDomain::Buffer::Event Buffer; | 52 | typedef Sink::ApplicationDomain::Buffer::Event Buffer; |
52 | typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; | 53 | typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; |
53 | static QSet<QByteArray> indexedProperties(); | 54 | static QSet<QByteArray> indexedProperties(); |
54 | static DataStoreQuery::Ptr prepareQuery(const Sink::Query &query, Sink::Storage::Transaction &transaction); | 55 | static QSharedPointer<DataStoreQuery> prepareQuery(const Sink::Query &query, Sink::Storage::Transaction &transaction); |
55 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); | 56 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
56 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); | 57 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
57 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); | 58 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); |