QxOrm  1.4.5
C++ Object Relational Mapping library

qx::dao::detail::QxSqlCompare : SQL element to compare value (==, <, >, <=, >=, LIKE, NOT LIKE, etc.) More...

#include <QxSqlCompare.h>

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

List of all members.

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
}

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) const
virtual void postProcess (QString &sql) const
virtual IxSqlElement::type_class getTypeClass () const

Protected Member Functions

virtual QString getExtraSettings () const
virtual void setExtraSettings (const QString &s)

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)

Detailed Description

qx::dao::detail::QxSqlCompare : SQL element to compare value (==, <, >, <=, >=, LIKE, NOT LIKE, etc.)

Definition at line 56 of file QxSqlCompare.h.


Member Enumeration Documentation

Enumerator:
_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 

Definition at line 61 of file QxSqlCompare.h.


Constructor & Destructor Documentation

qx::dao::detail::QxSqlCompare::QxSqlCompare ( )
qx::dao::detail::QxSqlCompare::QxSqlCompare ( int  index,
QxSqlCompare::type  t,
const QString &  sCustomOperator = QString() 
)
virtual qx::dao::detail::QxSqlCompare::~QxSqlCompare ( ) [virtual]

Member Function Documentation

virtual QString qx::dao::detail::QxSqlCompare::getExtraSettings ( ) const [protected, virtual]
virtual IxSqlElement::type_class qx::dao::detail::QxSqlCompare::getTypeClass ( ) const [virtual]
virtual void qx::dao::detail::QxSqlCompare::postProcess ( QString &  sql) const [virtual]
virtual void qx::dao::detail::QxSqlCompare::resolve ( QSqlQuery &  query) const [virtual]
virtual void qx::dao::detail::QxSqlCompare::setExtraSettings ( const QString &  s) [protected, virtual]
virtual QString qx::dao::detail::QxSqlCompare::toString ( ) const [virtual]

Member Data Documentation

Possibility to define a custom operator with enum _custom_operator (for example <@ for PostgreSQL ltree type)

Definition at line 68 of file QxSqlCompare.h.

Compare type.

Definition at line 67 of file QxSqlCompare.h.


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