Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
dbobjectset.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#ifndef DBOBJECTSET_H
9#define DBOBJECTSET_H
10
11#include "dbobject.h"
12
13
14namespace QH {
15namespace PKG {
16
24{
25 QH_PACKAGE("DBObjectSet")
26
27public:
28 DBObjectSet(const QString table);
29
30 PrepareResult prepareInsertQuery(QSqlQuery &q, bool replace) const override final;
31 PrepareResult prepareRemoveQuery(QSqlQuery &q) const override final;
32 PrepareResult prepareSelectQuery(QSqlQuery &q) const override final;
33 PrepareResult prepareUpdateQuery(QSqlQuery &q) const override final;
34
35 bool isCached() const override final;
36 bool isBundle() const override final;
37 QString primaryKey() const override;
38 QString table() const override;
39
40private:
41 QString _table;
42
43};
44}
45}
46#endif // DBOBJECTSET_H
#define QH_PACKAGE(S)
QH_PACKAGE This macross prepare data to send and create a global id for package. For get global id us...
The DBObjectSet class add features for control database object arrays. You will be able be get or rem...
Definition dbobjectset.h:24
The DBObject class- main class for work with data base.
Definition dbobject.h:94
#define HEARTSHARED_EXPORT
PrepareResult
The PrepareResult enum is result of work prepare sql query of dbobjects.
Definition dbobject.h:24
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13