32#ifndef _QX_SOFT_DELETE_H_
33#define _QX_SOFT_DELETE_H_
46#define QX_DAO_SOFT_DELETE_QDATETIME_FORMAT "yyyyMMddhhmmsszzz"
101 enum mode { mode_flag, mode_date_time };
qx::QxSoftDelete : soft delete (or logical delete) behavior to update a row into database (flag it as...
QString getColumnName() const
bool getSqlFetchInJoin() const
QString buildSqlTablePointName(const QString &sTable=QString()) const
QString getSqlQueryToUpdate() const
bool m_bFetchInJoin
Add SQL condition to fetch in the JOIN part (default value), for backward compatibility with previous...
QString getTableName() const
QString m_sTable
Table name where soft delete behavior is applied.
QString m_sSqlQueryToFetch
Overrided user SQL query to fetch an item, if empty QxOrm library builds a default SQL query.
mode m_eMode
Soft delete mode : 'mode_flag' with a boolean column, 'mode_date_time' with a date-time column contai...
QString getSqlQueryToFetch() const
void setTableName(const QString &sTable)
void setSqlQueryToUpdate(const QString &s)
QxSoftDelete(const QString &sColumn)
void setSqlQueryToFetch(const QString &s)
QString getSqlQueryToCreateTable() const
void setColumnName(const QString &sColumn)
QString m_sColumn
Column name to store soft delete information.
void setSqlFetchInJoin(bool b)
void setSqlQueryToCreateTable(const QString &s)
QxSoftDelete(const QString &sColumn, mode eMode)
QString buildSqlQueryToFetch(const QString &sTable=QString()) const
QString m_sSqlQueryToUpdate
Overrided user SQL query to update an item, if empty QxOrm library builds a default SQL query.
QString buildSqlQueryToUpdate() const
QString m_sSqlQueryToCreateTable
Overrided user SQL query to create table, if empty QxOrm library builds a default SQL query.
QString buildSqlQueryToCreateTable() const
Root namespace for all QxOrm library features.