QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

qx::dao::detail::QxSqlSort : SQL element to sort or to group list of elements fetched from database (ORDER BY, GROUP BY) More...

#include <QxSqlSort.h>

Inheritance diagram for qx::dao::detail::QxSqlSort:
qx::dao::detail::IxSqlElement

Public Types

enum  type { _order_asc , _order_desc , _group_by }
 
- 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

 QxSqlSort ()
 
 QxSqlSort (int index, QxSqlSort::type t)
 
virtual ~QxSqlSort ()
 
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

QxSqlSort::type m_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.
 
IxSqlGeneratorm_pSqlGenerator
 SQL generator to build SQL query specific for each database.
 

Detailed Description

qx::dao::detail::QxSqlSort : SQL element to sort or to group list of elements fetched from database (ORDER BY, GROUP BY)

Definition at line 56 of file QxSqlSort.h.

Member Enumeration Documentation

◆ type

Enumerator
_order_asc 
_order_desc 
_group_by 

Definition at line 61 of file QxSqlSort.h.

Constructor & Destructor Documentation

◆ QxSqlSort() [1/2]

qx::dao::detail::QxSqlSort::QxSqlSort ( )

◆ QxSqlSort() [2/2]

qx::dao::detail::QxSqlSort::QxSqlSort ( int index,
QxSqlSort::type t )

◆ ~QxSqlSort()

virtual qx::dao::detail::QxSqlSort::~QxSqlSort ( )
virtual

Member Function Documentation

◆ getExtraSettings()

virtual QString qx::dao::detail::QxSqlSort::getExtraSettings ( ) const
protectedvirtual

◆ getTypeClass()

virtual IxSqlElement::type_class qx::dao::detail::QxSqlSort::getTypeClass ( ) const
virtual

◆ postProcess()

virtual void qx::dao::detail::QxSqlSort::postProcess ( QString & sql) const
virtual

◆ resolve()

virtual void qx::dao::detail::QxSqlSort::resolve ( QSqlQuery & query,
qx::QxCollection< QString, QVariantList > * pLstExecBatch = NULL ) const
virtual

◆ setExtraSettings()

virtual void qx::dao::detail::QxSqlSort::setExtraSettings ( const QString & s)
protectedvirtual

◆ toString()

virtual QString qx::dao::detail::QxSqlSort::toString ( ) const
virtual

Member Data Documentation

◆ m_type

QxSqlSort::type qx::dao::detail::QxSqlSort::m_type
protected

Definition at line 65 of file QxSqlSort.h.


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