QxOrm  1.5.0
C++ Object Relational Mapping library

qx::dao::detail::IxDao_Helper : helper class to communicate with database More...

#include <IxDao_Helper.h>

List of all members.

Public Types

enum  timer_type {
  timer_none, timer_total, timer_db_exec, timer_db_next,
  timer_db_prepare, timer_cpp_build_hierarchy, timer_cpp_build_instance, timer_cpp_read_instance,
  timer_build_sql, timer_db_open, timer_db_transaction
}

Public Member Functions

bool isValid () const
bool hasFeature (QSqlDriver::DriverFeature ft) const
QSqlDatabase & database ()
const QSqlDatabase & database () const
QSqlQuery & query ()
const QSqlQuery & query () const
QSqlError & error ()
const QSqlError & error () const
qx::QxSqlQueryqxQuery ()
const qx::QxSqlQueryqxQuery () const
qx::IxSqlQueryBuilderbuilder ()
const qx::IxSqlQueryBuilderbuilder () const
qx::IxDataMemberXgetDataMemberX () const
long getDataCount () const
qx::IxDataMembergetDataId () const
qx::IxDataMembernextData (long &l) const
QString sql () const
qx::QxSqlRelationLinkedgetSqlRelationLinked () const
qx::QxSessiongetSession () const
QString getIgnoreSoftDeleteHash () const
bool getCartesianProduct () const
QStringList getSqlColumns () const
void setSqlColumns (const QStringList &lst)
bool getUseExecBatch () const
void setUseExecBatch (bool b)
qx::QxCollection< QString,
QVariantList > & 
getListExecBatch ()
IxSqlGeneratorgetSqlGenerator () const
void addInvalidValues (const qx::QxInvalidValueX &lst)
bool getAddAutoIncrementIdToUpdateQuery () const
QStringList & itemsAsJson ()
bool isReadOnly () const
bool isMongoDB () const
bool isDistinct () const
QVariant getIdFromQuery (int iNameIndex=-1) const
QSqlError errFailed (bool bPrepare=false)
QSqlError errEmpty ()
QSqlError errNoData ()
QSqlError errInvalidId ()
QSqlError errInvalidRelation ()
QSqlError errReadOnly ()
bool transaction ()
bool nextRecord ()
void quiet ()
bool exec (bool bForceEmptyExec=false)
bool prepare (QString &sql)
QSqlError updateError (const QSqlError &error)
bool updateSqlRelationX (const QStringList &relation)
void addQuery (bool bResolve)
void dumpRecord () const
void resolveQuery ()
template<class U >
bool isValidPrimaryKey (const U &u)
template<class U >
void updateLastInsertId (U &u)
template<class U >
bool validateInstance (U &u)

Protected Member Functions

 IxDao_Helper (qx::IxSqlQueryBuilder *pBuilder, const qx::QxSqlQuery *pQuery=NULL)
virtual ~IxDao_Helper ()
void dumpBoundValues () const
QSqlError updateError (const QString &sError)
void timerStart (IxDao_Helper::timer_type timer)
qint64 timerElapsed (IxDao_Helper::timer_type timer)
void init (QSqlDatabase *pDatabase, const QString &sContext)
void terminate ()

Private Attributes

std::unique_ptr< IxDao_HelperImpl > m_pImpl
 Private implementation idiom.

Friends

struct IxDao_Timer

Detailed Description

qx::dao::detail::IxDao_Helper : helper class to communicate with database

Definition at line 86 of file IxDao_Helper.h.


Member Enumeration Documentation

Enumerator:
timer_none 
timer_total 
timer_db_exec 
timer_db_next 
timer_db_prepare 
timer_cpp_build_hierarchy 
timer_cpp_build_instance 
timer_cpp_read_instance 
timer_build_sql 
timer_db_open 
timer_db_transaction 

Definition at line 93 of file IxDao_Helper.h.


Constructor & Destructor Documentation

qx::dao::detail::IxDao_Helper::IxDao_Helper ( qx::IxSqlQueryBuilder pBuilder,
const qx::QxSqlQuery pQuery = NULL 
) [protected]
virtual qx::dao::detail::IxDao_Helper::~IxDao_Helper ( ) [protected, virtual]

Member Function Documentation

void qx::dao::detail::IxDao_Helper::addInvalidValues ( const qx::QxInvalidValueX lst)
void qx::dao::detail::IxDao_Helper::addQuery ( bool  bResolve)
qx::IxSqlQueryBuilder& qx::dao::detail::IxDao_Helper::builder ( )
const qx::IxSqlQueryBuilder& qx::dao::detail::IxDao_Helper::builder ( ) const
QSqlDatabase& qx::dao::detail::IxDao_Helper::database ( )
const QSqlDatabase& qx::dao::detail::IxDao_Helper::database ( ) const
void qx::dao::detail::IxDao_Helper::dumpBoundValues ( ) const [protected]
void qx::dao::detail::IxDao_Helper::dumpRecord ( ) const
QSqlError qx::dao::detail::IxDao_Helper::errEmpty ( )
QSqlError qx::dao::detail::IxDao_Helper::errFailed ( bool  bPrepare = false)
QSqlError qx::dao::detail::IxDao_Helper::errInvalidId ( )
QSqlError qx::dao::detail::IxDao_Helper::errInvalidRelation ( )
QSqlError qx::dao::detail::IxDao_Helper::errNoData ( )
QSqlError& qx::dao::detail::IxDao_Helper::error ( )
const QSqlError& qx::dao::detail::IxDao_Helper::error ( ) const
QSqlError qx::dao::detail::IxDao_Helper::errReadOnly ( )
bool qx::dao::detail::IxDao_Helper::exec ( bool  bForceEmptyExec = false)
bool qx::dao::detail::IxDao_Helper::getAddAutoIncrementIdToUpdateQuery ( ) const
bool qx::dao::detail::IxDao_Helper::getCartesianProduct ( ) const
long qx::dao::detail::IxDao_Helper::getDataCount ( ) const
qx::IxDataMember* qx::dao::detail::IxDao_Helper::getDataId ( ) const
qx::IxDataMemberX* qx::dao::detail::IxDao_Helper::getDataMemberX ( ) const
QVariant qx::dao::detail::IxDao_Helper::getIdFromQuery ( int  iNameIndex = -1) const
QString qx::dao::detail::IxDao_Helper::getIgnoreSoftDeleteHash ( ) const
qx::QxCollection<QString, QVariantList>& qx::dao::detail::IxDao_Helper::getListExecBatch ( )
qx::QxSession* qx::dao::detail::IxDao_Helper::getSession ( ) const
QStringList qx::dao::detail::IxDao_Helper::getSqlColumns ( ) const
IxSqlGenerator* qx::dao::detail::IxDao_Helper::getSqlGenerator ( ) const
qx::QxSqlRelationLinked* qx::dao::detail::IxDao_Helper::getSqlRelationLinked ( ) const
bool qx::dao::detail::IxDao_Helper::getUseExecBatch ( ) const
bool qx::dao::detail::IxDao_Helper::hasFeature ( QSqlDriver::DriverFeature  ft) const
void qx::dao::detail::IxDao_Helper::init ( QSqlDatabase *  pDatabase,
const QString &  sContext 
) [protected]
bool qx::dao::detail::IxDao_Helper::isDistinct ( ) const
bool qx::dao::detail::IxDao_Helper::isMongoDB ( ) const
bool qx::dao::detail::IxDao_Helper::isReadOnly ( ) const
bool qx::dao::detail::IxDao_Helper::isValid ( ) const
template<class U >
bool qx::dao::detail::IxDao_Helper::isValidPrimaryKey ( const U &  u) [inline]

Definition at line 164 of file IxDao_Helper.h.

QStringList& qx::dao::detail::IxDao_Helper::itemsAsJson ( )
qx::IxDataMember* qx::dao::detail::IxDao_Helper::nextData ( long &  l) const
bool qx::dao::detail::IxDao_Helper::nextRecord ( )
bool qx::dao::detail::IxDao_Helper::prepare ( QString &  sql)
QSqlQuery& qx::dao::detail::IxDao_Helper::query ( )
const QSqlQuery& qx::dao::detail::IxDao_Helper::query ( ) const
void qx::dao::detail::IxDao_Helper::quiet ( )
qx::QxSqlQuery& qx::dao::detail::IxDao_Helper::qxQuery ( )
const qx::QxSqlQuery& qx::dao::detail::IxDao_Helper::qxQuery ( ) const
void qx::dao::detail::IxDao_Helper::resolveQuery ( )
void qx::dao::detail::IxDao_Helper::setSqlColumns ( const QStringList &  lst)
void qx::dao::detail::IxDao_Helper::setUseExecBatch ( bool  b)
QString qx::dao::detail::IxDao_Helper::sql ( ) const
void qx::dao::detail::IxDao_Helper::terminate ( ) [protected]
qint64 qx::dao::detail::IxDao_Helper::timerElapsed ( IxDao_Helper::timer_type  timer) [protected]
void qx::dao::detail::IxDao_Helper::timerStart ( IxDao_Helper::timer_type  timer) [protected]
bool qx::dao::detail::IxDao_Helper::transaction ( )
QSqlError qx::dao::detail::IxDao_Helper::updateError ( const QSqlError &  error)
QSqlError qx::dao::detail::IxDao_Helper::updateError ( const QString &  sError) [protected]
template<class U >
void qx::dao::detail::IxDao_Helper::updateLastInsertId ( U &  u) [inline]

Definition at line 168 of file IxDao_Helper.h.

bool qx::dao::detail::IxDao_Helper::updateSqlRelationX ( const QStringList &  relation)
template<class U >
bool qx::dao::detail::IxDao_Helper::validateInstance ( U &  u) [inline]

Definition at line 175 of file IxDao_Helper.h.


Friends And Related Function Documentation

friend struct IxDao_Timer [friend]

Definition at line 89 of file IxDao_Helper.h.


Member Data Documentation

std::unique_ptr<IxDao_HelperImpl> qx::dao::detail::IxDao_Helper::m_pImpl [private]

Private implementation idiom.

Definition at line 98 of file IxDao_Helper.h.


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