![]() |
QxOrm
1.3.2
C++ Object Relational Mapping library
|
Concrete SQL query builder by class with a cache mechanism to backup and restore queries already builded by the program. More...
#include <QtCore/qmutex.h>
#include <QxDao/IxSqlQueryBuilder.h>
#include <QxDao/QxSqlQueryHelper.h>
#include <QxRegister/QxClass.h>
#include <QxTraits/remove_attr.h>
#include <QxTraits/remove_smart_ptr.h>
Go to the source code of this file.
Classes | |
class | qx::QxSqlQueryBuilder< T > |
qx::QxSqlQueryBuilder<T> : concrete SQL query builder for the class T with a cache mechanism to backup and restore queries already builded by the program More... | |
Namespaces | |
namespace | qx |
Root namespace for all QxOrm library features. | |
Defines | |
#define | QX_SQL_ERR_NO_DATA_MEMBER_REGISTERED "'QxSqlQueryBuilder<T>' error : 'qx::register_class()' not called or no data member registered" |
#define | QX_SQL_ERR_NO_ID_REGISTERED "'QxSqlQueryBuilder<T>' error : no id registered" |
#define | QX_SQL_BUILDER_INIT_FCT() |
#define | QX_SQL_BUILDER_INIT_FCT_WITH_RELATION() |
Concrete SQL query builder by class with a cache mechanism to backup and restore queries already builded by the program.
Definition in file QxSqlQueryBuilder.h.
#define QX_SQL_BUILDER_INIT_FCT | ( | ) |
static QString sql = ""; \ QMutexLocker locker(& QxSqlQueryBuilder<T>::m_oMutex); \ if (! sql.isEmpty()) { setSqlQuery(sql); return (* this); }
Definition at line 59 of file QxSqlQueryBuilder.h.
#define QX_SQL_BUILDER_INIT_FCT_WITH_RELATION | ( | ) |
static QHash<QString, QString> sqlX; \ static QHash<QString, QHash<QString, QString> > sqlAliasX; \ QMutexLocker locker(& QxSqlQueryBuilder<T>::m_oMutex); \ QString sql = sqlX.value(m_sHashRelation); \ if (! sql.isEmpty()) { setSqlQuery(sql); m_lstSqlQueryAlias = sqlAliasX.value(m_sHashRelation); return (* this); }
Definition at line 64 of file QxSqlQueryBuilder.h.
#define QX_SQL_ERR_NO_DATA_MEMBER_REGISTERED "'QxSqlQueryBuilder<T>' error : 'qx::register_class()' not called or no data member registered" |
Definition at line 56 of file QxSqlQueryBuilder.h.
#define QX_SQL_ERR_NO_ID_REGISTERED "'QxSqlQueryBuilder<T>' error : no id registered" |
Definition at line 57 of file QxSqlQueryBuilder.h.