qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL queries builded by QxOrm library
More...
#include <QxSqlRelationParams.h>
|
| | QxSqlRelationParams () |
| |
| | QxSqlRelationParams (long lIndex, long lOffset, QString *sql, IxSqlQueryBuilder *builder, QSqlQuery *query, void *pOwner, const QVariant &vId=QVariant(), qx::QxCollection< QString, QVariantList > *pLstExecBatch=NULL) |
| |
| virtual | ~QxSqlRelationParams () |
| |
| QVariant | id () const |
| |
| long | index () const |
| |
| long | indexOwner () const |
| |
| long | offset () const |
| |
| QString & | sql () |
| |
| const QString & | sql () const |
| |
| QSqlQuery & | query () |
| |
| const QSqlQuery & | query () const |
| |
| QSqlDatabase & | database () |
| |
| const QSqlDatabase & | database () const |
| |
| IxSqlQueryBuilder & | builder () |
| |
| const IxSqlQueryBuilder & | builder () const |
| |
| void * | owner () const |
| |
| qx::dao::sql_join::join_type | joinType () const |
| |
| type_lst_relation_linked * | relationX () const |
| |
| QString | getTableAlias () const |
| |
| qx::dao::save_mode::e_save_mode | saveMode () const |
| |
| bool | recursiveMode () const |
| |
| bool | existRecursiveItem (void *p) const |
| |
| QSet< QString > | getColumns () const |
| |
| bool | checkColumns (const QString &s) const |
| |
| long | getColumnsCount () const |
| |
| long | getColumnsOffset () const |
| |
| QString | getCustomAlias () const |
| |
| QString | getCustomAliasOwner () const |
| |
| qx::QxCollection< QString, QVariantList > * | getLstExecBatch () const |
| |
| bool | isDistinct () const |
| |
| void | setId (const QVariant &vId) |
| |
| void | setIndex (long lIndex) |
| |
| void | setIndexOwner (long lIndex) |
| |
| void | setOffset (long lOffset) |
| |
| void | setSql (QString *sql) |
| |
| void | setQuery (QSqlQuery *query) |
| |
| void | setDatabase (QSqlDatabase *database) |
| |
| void | setOwner (void *pOwner) |
| |
| void | setJoinType (qx::dao::sql_join::join_type e) |
| |
| void | setRelationX (type_lst_relation_linked *p) |
| |
| void | setTableAlias (const QString &s) |
| |
| void | setSaveMode (qx::dao::save_mode::e_save_mode e) |
| |
| void | setRecursiveMode (bool b) |
| |
| void | insertRecursiveItem (void *p) |
| |
| void | setColumns (QPair< QSet< QString >, long > *p) |
| |
| void | setColumnsOffset (long l) |
| |
| void | setCustomAlias (const QString &s) |
| |
| void | setCustomAliasOwner (const QString &s) |
| |
| void | setLstExecBatch (qx::QxCollection< QString, QVariantList > *p) |
| |
| void | setBuilder (IxSqlQueryBuilder *builder) |
| |
qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL queries builded by QxOrm library
Definition at line 64 of file QxSqlRelationParams.h.
◆ type_lst_relation_linked
◆ type_relation_linked_ptr
◆ QxSqlRelationParams() [1/2]
| qx::QxSqlRelationParams::QxSqlRelationParams |
( |
| ) |
|
◆ QxSqlRelationParams() [2/2]
| qx::QxSqlRelationParams::QxSqlRelationParams |
( |
long | lIndex, |
|
|
long | lOffset, |
|
|
QString * | sql, |
|
|
IxSqlQueryBuilder * | builder, |
|
|
QSqlQuery * | query, |
|
|
void * | pOwner, |
|
|
const QVariant & | vId = QVariant(), |
|
|
qx::QxCollection< QString, QVariantList > * | pLstExecBatch = NULL ) |
◆ ~QxSqlRelationParams()
| virtual qx::QxSqlRelationParams::~QxSqlRelationParams |
( |
| ) |
|
|
virtual |
◆ builder() [1/2]
◆ builder() [2/2]
◆ checkColumns()
| bool qx::QxSqlRelationParams::checkColumns |
( |
const QString & | s | ) |
const |
|
inline |
◆ database() [1/2]
| QSqlDatabase & qx::QxSqlRelationParams::database |
( |
| ) |
|
|
inline |
◆ database() [2/2]
| const QSqlDatabase & qx::QxSqlRelationParams::database |
( |
| ) |
const |
|
inline |
◆ existRecursiveItem()
| bool qx::QxSqlRelationParams::existRecursiveItem |
( |
void * | p | ) |
const |
|
inline |
◆ getColumns()
| QSet< QString > qx::QxSqlRelationParams::getColumns |
( |
| ) |
const |
|
inline |
◆ getColumnsCount()
| long qx::QxSqlRelationParams::getColumnsCount |
( |
| ) |
const |
|
inline |
◆ getColumnsOffset()
| long qx::QxSqlRelationParams::getColumnsOffset |
( |
| ) |
const |
|
inline |
◆ getCustomAlias()
| QString qx::QxSqlRelationParams::getCustomAlias |
( |
| ) |
const |
|
inline |
◆ getCustomAliasOwner()
| QString qx::QxSqlRelationParams::getCustomAliasOwner |
( |
| ) |
const |
|
inline |
◆ getLstExecBatch()
| qx::QxCollection< QString, QVariantList > * qx::QxSqlRelationParams::getLstExecBatch |
( |
| ) |
const |
|
inline |
◆ getTableAlias()
| QString qx::QxSqlRelationParams::getTableAlias |
( |
| ) |
const |
|
inline |
◆ id()
| QVariant qx::QxSqlRelationParams::id |
( |
| ) |
const |
|
inline |
◆ index()
| long qx::QxSqlRelationParams::index |
( |
| ) |
const |
|
inline |
◆ indexOwner()
| long qx::QxSqlRelationParams::indexOwner |
( |
| ) |
const |
|
inline |
◆ insertRecursiveItem()
| void qx::QxSqlRelationParams::insertRecursiveItem |
( |
void * | p | ) |
|
|
inline |
◆ isDistinct()
| bool qx::QxSqlRelationParams::isDistinct |
( |
| ) |
const |
|
inline |
◆ joinType()
◆ offset()
| long qx::QxSqlRelationParams::offset |
( |
| ) |
const |
|
inline |
◆ owner()
| void * qx::QxSqlRelationParams::owner |
( |
| ) |
const |
|
inline |
◆ query() [1/2]
| QSqlQuery & qx::QxSqlRelationParams::query |
( |
| ) |
|
|
inline |
◆ query() [2/2]
| const QSqlQuery & qx::QxSqlRelationParams::query |
( |
| ) |
const |
|
inline |
◆ recursiveMode()
| bool qx::QxSqlRelationParams::recursiveMode |
( |
| ) |
const |
|
inline |
◆ relationX()
◆ saveMode()
◆ setBuilder()
◆ setColumns()
| void qx::QxSqlRelationParams::setColumns |
( |
QPair< QSet< QString >, long > * | p | ) |
|
|
inline |
◆ setColumnsOffset()
| void qx::QxSqlRelationParams::setColumnsOffset |
( |
long | l | ) |
|
|
inline |
◆ setCustomAlias()
| void qx::QxSqlRelationParams::setCustomAlias |
( |
const QString & | s | ) |
|
|
inline |
◆ setCustomAliasOwner()
| void qx::QxSqlRelationParams::setCustomAliasOwner |
( |
const QString & | s | ) |
|
|
inline |
◆ setDatabase()
| void qx::QxSqlRelationParams::setDatabase |
( |
QSqlDatabase * | database | ) |
|
|
inline |
◆ setId()
| void qx::QxSqlRelationParams::setId |
( |
const QVariant & | vId | ) |
|
|
inline |
◆ setIndex()
| void qx::QxSqlRelationParams::setIndex |
( |
long | lIndex | ) |
|
|
inline |
◆ setIndexOwner()
| void qx::QxSqlRelationParams::setIndexOwner |
( |
long | lIndex | ) |
|
|
inline |
◆ setJoinType()
◆ setLstExecBatch()
| void qx::QxSqlRelationParams::setLstExecBatch |
( |
qx::QxCollection< QString, QVariantList > * | p | ) |
|
|
inline |
◆ setOffset()
| void qx::QxSqlRelationParams::setOffset |
( |
long | lOffset | ) |
|
|
inline |
◆ setOwner()
| void qx::QxSqlRelationParams::setOwner |
( |
void * | pOwner | ) |
|
|
inline |
◆ setQuery()
| void qx::QxSqlRelationParams::setQuery |
( |
QSqlQuery * | query | ) |
|
|
inline |
◆ setRecursiveMode()
| void qx::QxSqlRelationParams::setRecursiveMode |
( |
bool | b | ) |
|
|
inline |
◆ setRelationX()
◆ setSaveMode()
◆ setSql()
| void qx::QxSqlRelationParams::setSql |
( |
QString * | sql | ) |
|
|
inline |
◆ setTableAlias()
| void qx::QxSqlRelationParams::setTableAlias |
( |
const QString & | s | ) |
|
|
inline |
◆ sql() [1/2]
| QString & qx::QxSqlRelationParams::sql |
( |
| ) |
|
|
inline |
◆ sql() [2/2]
| const QString & qx::QxSqlRelationParams::sql |
( |
| ) |
const |
|
inline |
◆ m_bIsDistinct
| bool qx::QxSqlRelationParams::m_bIsDistinct |
|
protected |
◆ m_bRecursiveMode
| bool qx::QxSqlRelationParams::m_bRecursiveMode |
|
protected |
◆ m_builder
◆ m_database
| QSqlDatabase* qx::QxSqlRelationParams::m_database |
|
protected |
◆ m_eJoinType
Current join type to build SQL query : LEFT OUTER JOIN, INNER JOIN, etc...
Definition at line 83 of file QxSqlRelationParams.h.
◆ m_eSaveMode
Used to improve performance, if you know that you are just inserting or updating items in database.
Definition at line 86 of file QxSqlRelationParams.h.
◆ m_lIndex
| long qx::QxSqlRelationParams::m_lIndex |
|
protected |
◆ m_lIndexOwner
| long qx::QxSqlRelationParams::m_lIndexOwner |
|
protected |
◆ m_lOffset
| long qx::QxSqlRelationParams::m_lOffset |
|
protected |
◆ m_lstRecursiveItems
| QSet<void *> qx::QxSqlRelationParams::m_lstRecursiveItems |
|
protected |
◆ m_pColumns
| QPair<QSet<QString>, long>* qx::QxSqlRelationParams::m_pColumns |
|
protected |
List of relation columns to fetch (syntax : my_relation { column_1, column_2, etc... }), if empty then fetch all columns.
Definition at line 89 of file QxSqlRelationParams.h.
◆ m_pLstExecBatch
| qx::QxCollection<QString, QVariantList>* qx::QxSqlRelationParams::m_pLstExecBatch |
|
protected |
List of data to send to database when QSqlQuery::execBatch() method is used.
Definition at line 92 of file QxSqlRelationParams.h.
◆ m_pOwner
| void* qx::QxSqlRelationParams::m_pOwner |
|
protected |
◆ m_pRelationX
◆ m_query
| QSqlQuery* qx::QxSqlRelationParams::m_query |
|
protected |
◆ m_sCustomAlias
| QString qx::QxSqlRelationParams::m_sCustomAlias |
|
protected |
Custom SQL table alias instead of generating a new one automatically.
Definition at line 90 of file QxSqlRelationParams.h.
◆ m_sCustomAliasOwner
| QString qx::QxSqlRelationParams::m_sCustomAliasOwner |
|
protected |
Custom SQL table alias owner instead of generating a new one automatically.
Definition at line 91 of file QxSqlRelationParams.h.
◆ m_sql
| QString* qx::QxSqlRelationParams::m_sql |
|
protected |
◆ m_sTableAlias
| QString qx::QxSqlRelationParams::m_sTableAlias |
|
protected |
Current SQL table alias : useful for relationships defined in base class.
Definition at line 85 of file QxSqlRelationParams.h.
◆ m_vId
| QVariant qx::QxSqlRelationParams::m_vId |
|
protected |
The documentation for this class was generated from the following file: