From 4a14a6fade947aa830d3f21598a4a6ba7316b933 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 19 Sep 2016 18:55:21 +0200 Subject: Refactored the query part of the entity reader into DataStoreQuery. DataStoreQuery now encapsulates the low-level query that operates directly on the storage. It no longer has access to the resource buffers, and is instantiated by the type implementation, so we can specialize the query alogorithm per type, but not per resource. This will allow us to implement the threading queries for the mailtype. --- common/domain/event.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/domain/event.h') diff --git a/common/domain/event.h b/common/domain/event.h index 5315566..4ac572c 100644 --- a/common/domain/event.h +++ b/common/domain/event.h @@ -21,6 +21,7 @@ #include "applicationdomaintype.h" #include "storage.h" +#include "datastorequery.h" class ResultSet; class QByteArray; @@ -50,6 +51,7 @@ public: typedef Sink::ApplicationDomain::Buffer::Event Buffer; typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; static QSet indexedProperties(); + static DataStoreQuery prepareQuery(const Sink::Query &query, Sink::Storage::Transaction &transaction); /** * Returns the potential result set based on the indexes. * -- cgit v1.2.3