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

The CachedDbObjectsRequest class This is template class for generate request with the custom condition for BASE objects. More...

#include <cacheddbobjectsrequest.h>

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

Public Member Functions

 CachedDbObjectsRequest (const QString &condition)
 
QString condition () const override final
 
bool isCached () const override
 

Detailed Description

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

The CachedDbObjectsRequest class This is template class for generate request with the custom condition for BASE objects.

Note
This request send request to the hardware and not used a cache to get database objects. But all objects will be cached for next single requests.
Warning
if BASE object is uncachable then result objects will not be saved into cache.

For more information see the DBObject::isCached method.

Example:

QList<const QH::PKG::DBObject *> result;
if (!db()->getAllObjects(request, result)) {
return false;
}
The CachedDbObjectsRequest class This is template class for generate request with the custom conditio...

Definition at line 37 of file cacheddbobjectsrequest.h.

Constructor & Destructor Documentation

◆ CachedDbObjectsRequest()

template<class BASE >
QH::PKG::CachedDbObjectsRequest< BASE >::CachedDbObjectsRequest ( const QString &  condition)
inline

Definition at line 41 of file cacheddbobjectsrequest.h.

Here is the call graph for this function:

Member Function Documentation

◆ condition()

template<class BASE >
QString QH::PKG::CachedDbObjectsRequest< BASE >::condition ( ) const
inlinefinaloverride

Definition at line 45 of file cacheddbobjectsrequest.h.

Here is the caller graph for this function:

◆ isCached()

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

Definition at line 49 of file cacheddbobjectsrequest.h.


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