diff options
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r-- | common/domain/event.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp index 6717187..d50652d 100644 --- a/common/domain/event.cpp +++ b/common/domain/event.cpp | |||
@@ -87,13 +87,3 @@ QSharedPointer<WritePropertyMapper<TypeImplementation<Event>::BufferBuilder> > T | |||
87 | propertyMapper->addMapping<Event::Attachment>(&BufferBuilder::add_attachment); | 87 | propertyMapper->addMapping<Event::Attachment>(&BufferBuilder::add_attachment); |
88 | return propertyMapper; | 88 | return propertyMapper; |
89 | } | 89 | } |
90 | |||
91 | DataStoreQuery::Ptr TypeImplementation<Event>::prepareQuery(const Sink::Query &query, Sink::Storage::EntityStore::Ptr store) | ||
92 | { | ||
93 | auto mapper = initializeReadPropertyMapper(); | ||
94 | return DataStoreQuery::Ptr::create(query, ApplicationDomain::getTypeName<Event>(), store, [mapper](const Sink::Entity &entity, const QByteArray &property) { | ||
95 | |||
96 | const auto localBuffer = Sink::EntityBuffer::readBuffer<Buffer>(entity.local()); | ||
97 | return mapper->getProperty(property, localBuffer); | ||
98 | }); | ||
99 | } | ||