Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
QH::PKG::CustomDBRequest< BASE > Class Template Reference

The CustomDBRequest class intended for send to database custom select request for working with multiple tables. More...

#include <customdbrequest.h>

Inheritance diagram for QH::PKG::CustomDBRequest< BASE >:
Inheritance graph
Collaboration diagram for QH::PKG::CustomDBRequest< BASE >:
Collaboration graph

Public Member Functions

 CustomDBRequest (const QString &selectRequest)
 CustomDBRequest.
 
bool isCached () const override
 
bool isValid () const override
 
PrepareResult prepareSelectQuery (QSqlQuery &q) const override
 

Detailed Description

template<class BASE>
class QH::PKG::CustomDBRequest< BASE >

The CustomDBRequest class intended for send to database custom select request for working with multiple tables.

Note
This s template class, then the BASE class should be supprt results data of select request.

Example:

QH::PKG::CustomDBRequest<User> request("SELECT * FROM Users");
QList<QSharedPointer<QH::PKG::DBObject>> result;
if (!db->getAllObjects(request, result))
return false;
The CustomDBRequest class intended for send to database custom select request for working with multip...

Definition at line 33 of file customdbrequest.h.

Constructor & Destructor Documentation

◆ CustomDBRequest()

template<class BASE >
QH::PKG::CustomDBRequest< BASE >::CustomDBRequest ( const QString &  selectRequest)
inline

CustomDBRequest.

Parameters
selectRequestThis is request for database.

Definition at line 40 of file customdbrequest.h.

Member Function Documentation

◆ isCached()

template<class BASE >
bool QH::PKG::CustomDBRequest< BASE >::isCached ( ) const
inlineoverride

Definition at line 44 of file customdbrequest.h.

◆ isValid()

template<class BASE >
bool QH::PKG::CustomDBRequest< BASE >::isValid ( ) const
inlineoverride

Definition at line 48 of file customdbrequest.h.

◆ prepareSelectQuery()

template<class BASE >
PrepareResult QH::PKG::CustomDBRequest< BASE >::prepareSelectQuery ( QSqlQuery &  q) const
inlineoverride

Definition at line 52 of file customdbrequest.h.


The documentation for this class was generated from the following file: