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::QxSqlQuery & | qxQuery () |
const qx::QxSqlQuery & | qxQuery () const |
qx::IxSqlQueryBuilder & | builder () |
const qx::IxSqlQueryBuilder & | builder () const |
qx::IxDataMemberX * | getDataMemberX () const |
long | getDataCount () const |
qx::IxDataMember * | getDataId () const |
qx::IxDataMember * | nextData (long &l) const |
QString | sql () const |
qx::QxSqlRelationLinked * | getSqlRelationLinked () const |
qx::QxSession * | getSession () 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 () |
IxSqlGenerator * | getSqlGenerator () 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
virtual qx::dao::detail::IxDao_Helper::~IxDao_Helper |
( |
| ) |
[protected, virtual] |
Member Function Documentation
void qx::dao::detail::IxDao_Helper::addQuery |
( |
bool |
bResolve | ) |
|
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 |
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 |
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] |
QStringList& qx::dao::detail::IxDao_Helper::itemsAsJson |
( |
| ) |
|
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 |
( |
| ) |
|
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] |
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] |
bool qx::dao::detail::IxDao_Helper::updateSqlRelationX |
( |
const QStringList & |
relation | ) |
|
template<class U >
bool qx::dao::detail::IxDao_Helper::validateInstance |
( |
U & |
u | ) |
[inline] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: