![]() |
QxOrm 1.4.9
C++ Object Relational Mapping library
|
qx::dao::detail::QxSqlCompare : SQL element to compare value (==, <, >, <=, >=, LIKE, NOT LIKE, etc.) More...
#include <QxSqlCompare.h>
Public Types | |
| enum | type { _is_equal_to , _is_not_equal_to , _is_greater_than , _is_greater_than_or_equal_to , _is_less_than , _is_less_than_or_equal_to , _like , _not_like , _starts_with , _ends_with , _contains_string , _custom_operator , _is_equal_to_select , _is_not_equal_to_select } |
Public Types inherited from qx::dao::detail::IxSqlElement | |
| enum | type_class { _no_type , _sql_compare , _sql_element_temp , _sql_expression , _sql_free_text , _sql_in , _sql_is_between , _sql_is_null , _sql_limit , _sql_sort , _sql_embed_query } |
Public Member Functions | |
| QxSqlCompare () | |
| QxSqlCompare (int index, QxSqlCompare::type t, const QString &sCustomOperator=QString()) | |
| virtual | ~QxSqlCompare () |
| virtual QString | toString () const |
| virtual void | resolve (QSqlQuery &query, qx::QxCollection< QString, QVariantList > *pLstExecBatch=NULL) const |
| virtual void | postProcess (QString &sql) const |
| virtual IxSqlElement::type_class | getTypeClass () const |
Public Member Functions inherited from qx::dao::detail::IxSqlElement | |
| IxSqlElement (int index) | |
| virtual | ~IxSqlElement () |
| void | setColumn (const QString &column) |
| void | setColumns (const QStringList &columns) |
| void | setValue (const QVariant &val) |
| void | setValues (const QVariantList &values) |
| virtual void | clone (IxSqlElement *other) |
| template<class Archive > | |
| void | qxSave (Archive &ar) const |
| template<class Archive > | |
| void | qxLoad (Archive &ar) |
Protected Member Functions | |
| virtual QString | getExtraSettings () const |
| virtual void | setExtraSettings (const QString &s) |
Protected Member Functions inherited from qx::dao::detail::IxSqlElement | |
| void | updateKeys () |
Protected Attributes | |
| QxSqlCompare::type | m_type |
| Compare type. | |
| QString | m_sCustomOperator |
| Possibility to define a custom operator with enum _custom_operator (for example <@ for PostgreSQL ltree type) | |
Protected Attributes inherited from qx::dao::detail::IxSqlElement | |
| int | m_iIndex |
| Index of SQL element to build unique string. | |
| QStringList | m_lstColumns |
| List of columns associated to SQL element. | |
| QStringList | m_lstKeys |
| List of keys associated to SQL element. | |
| QList< QVariant > | m_lstValues |
| List of values associated to SQL element. | |
| IxSqlGenerator * | m_pSqlGenerator |
| SQL generator to build SQL query specific for each database. | |
qx::dao::detail::QxSqlCompare : SQL element to compare value (==, <, >, <=, >=, LIKE, NOT LIKE, etc.)
Definition at line 56 of file QxSqlCompare.h.
Definition at line 61 of file QxSqlCompare.h.
| qx::dao::detail::QxSqlCompare::QxSqlCompare | ( | ) |
| qx::dao::detail::QxSqlCompare::QxSqlCompare | ( | int | index, |
| QxSqlCompare::type | t, | ||
| const QString & | sCustomOperator = QString() ) |
|
virtual |
|
protectedvirtual |
Implements qx::dao::detail::IxSqlElement.
|
virtual |
Implements qx::dao::detail::IxSqlElement.
|
virtual |
Implements qx::dao::detail::IxSqlElement.
|
virtual |
Implements qx::dao::detail::IxSqlElement.
|
protectedvirtual |
Implements qx::dao::detail::IxSqlElement.
|
virtual |
Implements qx::dao::detail::IxSqlElement.
|
protected |
Possibility to define a custom operator with enum _custom_operator (for example <@ for PostgreSQL ltree type)
Definition at line 69 of file QxSqlCompare.h.
|
protected |
Compare type.
Definition at line 68 of file QxSqlCompare.h.