Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
cacheddbobjectsrequest.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8
9#ifndef CACHEDDBOBJECTSREQUEST_H
10#define CACHEDDBOBJECTSREQUEST_H
11
12#include <QString>
13#include "heart_global.h"
14
15
16namespace QH {
17namespace PKG {
18
19template <class BASE>
37class CachedDbObjectsRequest : public BASE
38{
39
40public:
42 _condition = condition;
43 }
44
45 QString condition() const override final{
46 return _condition;
47 }
48
49 bool isCached() const override {
50 return false;
51 }
52
53private:
54 QString _condition;
55};
56
57}
58
59}
60#endif // CACHEDDBOBJECTSREQUEST_H
The CachedDbObjectsRequest class This is template class for generate request with the custom conditio...
CachedDbObjectsRequest(const QString &condition)
QString condition() const override final
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13