qx::dao::detail::IxSqlElement : common interface for all SQL elements to build SQL query
More...
#include <IxSqlElement.h>
List of all members.
Public Types |
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
} |
Public Member Functions |
| 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 IxSqlElement::type_class | getTypeClass () const =0 |
virtual QString | toString () const =0 |
virtual void | resolve (QSqlQuery &query) const =0 |
virtual void | postProcess (QString &sql) const =0 |
virtual void | clone (IxSqlElement *other) |
template<class Archive > |
void | qxSave (Archive &ar) const |
template<class Archive > |
void | qxLoad (Archive &ar) |
Protected Member Functions |
void | updateKeys () |
virtual QString | getExtraSettings () const =0 |
virtual void | setExtraSettings (const QString &s)=0 |
Protected Attributes |
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.
|
Friends |
struct | qx::cvt::detail::QxConvert_ToJson< qx::dao::detail::IxSqlElement > |
struct | qx::cvt::detail::QxConvert_FromJson< qx::dao::detail::IxSqlElement > |
QDataStream & | operator<< (QDataStream &stream, const qx::dao::detail::IxSqlElement &t) |
QDataStream & | operator>> (QDataStream &stream, qx::dao::detail::IxSqlElement &t) |
QJsonValue | qx::cvt::detail::QxConvert_ToJson_Helper (const qx::dao::detail::IxSqlElement &t, const QString &format) |
qx_bool | qx::cvt::detail::QxConvert_FromJson_Helper (const QJsonValue &j, qx::dao::detail::IxSqlElement &t, const QString &format) |
Detailed Description
qx::dao::detail::IxSqlElement : common interface for all SQL elements to build SQL query
Definition at line 100 of file IxSqlElement.h.
Member Enumeration Documentation
- Enumerator:
_no_type |
|
_sql_compare |
|
_sql_element_temp |
|
_sql_expression |
|
_sql_free_text |
|
_sql_in |
|
_sql_is_between |
|
_sql_is_null |
|
_sql_limit |
|
_sql_sort |
|
Definition at line 115 of file IxSqlElement.h.
Constructor & Destructor Documentation
qx::dao::detail::IxSqlElement::IxSqlElement |
( |
int |
index | ) |
|
virtual qx::dao::detail::IxSqlElement::~IxSqlElement |
( |
| ) |
[virtual] |
Member Function Documentation
virtual void qx::dao::detail::IxSqlElement::clone |
( |
IxSqlElement * |
other | ) |
[virtual] |
virtual QString qx::dao::detail::IxSqlElement::getExtraSettings |
( |
| ) |
const [protected, pure virtual] |
virtual void qx::dao::detail::IxSqlElement::postProcess |
( |
QString & |
sql | ) |
const [pure virtual] |
template<class Archive >
void qx::dao::detail::IxSqlElement::qxLoad |
( |
Archive & |
ar | ) |
[inline] |
template<class Archive >
void qx::dao::detail::IxSqlElement::qxSave |
( |
Archive & |
ar | ) |
const [inline] |
virtual void qx::dao::detail::IxSqlElement::resolve |
( |
QSqlQuery & |
query | ) |
const [pure virtual] |
void qx::dao::detail::IxSqlElement::setColumn |
( |
const QString & |
column | ) |
|
void qx::dao::detail::IxSqlElement::setColumns |
( |
const QStringList & |
columns | ) |
|
virtual void qx::dao::detail::IxSqlElement::setExtraSettings |
( |
const QString & |
s | ) |
[protected, pure virtual] |
void qx::dao::detail::IxSqlElement::setValue |
( |
const QVariant & |
val | ) |
|
void qx::dao::detail::IxSqlElement::setValues |
( |
const QVariantList & |
values | ) |
|
virtual QString qx::dao::detail::IxSqlElement::toString |
( |
| ) |
const [pure virtual] |
void qx::dao::detail::IxSqlElement::updateKeys |
( |
| ) |
[protected] |
Friends And Related Function Documentation
Member Data Documentation
Index of SQL element to build unique string.
Definition at line 120 of file IxSqlElement.h.
List of columns associated to SQL element.
Definition at line 121 of file IxSqlElement.h.
List of keys associated to SQL element.
Definition at line 122 of file IxSqlElement.h.
List of values associated to SQL element.
Definition at line 123 of file IxSqlElement.h.
SQL generator to build SQL query specific for each database.
Definition at line 124 of file IxSqlElement.h.
The documentation for this class was generated from the following file: