Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
getmaxintegerid.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 GETMAXINTEGERID_H
9#define GETMAXINTEGERID_H
10
11#include "dbobject.h"
12
13
14namespace QH {
15namespace PKG {
16
21{
22
23public:
29 GetMaxIntegerId(const QString& table, const QString& field);
30
35 int value() const;
36
37 DBObject *createDBObject() const override;
38 PrepareResult prepareSelectQuery(QSqlQuery &q) const override;
39 bool fromSqlRecord(const QSqlRecord &q) override;
40 bool isCached() const override;
41 QString table() const override;
42
43private:
44 QString _table;
45 QString _field;
46 int _value;
47};
48
49}
50}
51#endif // GETMAXINTEGERID_H
The DBObject class- main class for work with data base.
Definition dbobject.h:94
The GetMaxIntegerId class is intended for get a maximum value of a sql tables column.
#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