Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
dbobjectset.cpp
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#include "dbobjectset.h"
9namespace QH {
10namespace PKG {
11DBObjectSet::DBObjectSet(const QString table) {
12 _table = table;
13}
14
18
22
26
30
32 return false;
33}
34
36 return true;
37}
38
39QString DBObjectSet::primaryKey() const {
40 return "";
41}
42
43QString DBObjectSet::table() const {
44 return _table;
45}
46
47
48}
49}
PrepareResult prepareUpdateQuery(QSqlQuery &q) const override final
prepareUpdateQuery this method should be prepare a insert data query.
DBObjectSet(const QString table)
bool isCached() const override final
isCached This method sholud be return status of object. If this method return true then this object c...
PrepareResult prepareInsertQuery(QSqlQuery &q, bool replace) const override final
prepareInsertQuery This method should be prepare a query for insert object into database....
bool isBundle() const override final
isBundle This method definef determines whether the object will be abstract (composite objects) or si...
QString table() const override
table This method should be return name of the database table that should be contains objects with th...
QString primaryKey() const override
primaryKey This method must be return the name of primary key of this object table....
PrepareResult prepareSelectQuery(QSqlQuery &q) const override final
prepareSelectQuery This method should be prepare a query for selected data. Override this method for ...
PrepareResult prepareRemoveQuery(QSqlQuery &q) const override final
prepareRemoveQuery This method should be prepare a query for remove this object from a database....
virtual PrepareResult prepareRemoveQuery(QSqlQuery &q) const
prepareRemoveQuery This method should be prepare a query for remove this object from a database....
Definition dbobject.cpp:267
virtual PrepareResult prepareSelectQuery(QSqlQuery &q) const
prepareSelectQuery This method should be prepare a query for selected data. Override this method for ...
Definition dbobject.cpp:30
PrepareResult
The PrepareResult enum is result of work prepare sql query of dbobjects.
Definition dbobject.h:24
@ Disabled
prepare disabled for method. Use this case for disable prepare method for object without errors.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13