|
| IxPersistableCollection () |
|
virtual | ~IxPersistableCollection () |
|
virtual long | __count () const =0 |
|
virtual void | __clear ()=0 |
|
virtual bool | __remove (long idx)=0 |
|
virtual qx::IxPersistable_ptr | __at (long idx) const =0 |
|
| IxPersistable () |
|
virtual | ~IxPersistable () |
|
virtual long | qxCount (const qx::QxSqlQuery &query=qx::QxSqlQuery(), QSqlDatabase *pDatabase=NULL, const QStringList &relation=QStringList())=0 |
| Return the number of lines in the table (database) mapped to the current C++ class (registered into QxOrm context) and filtered by a user SQL query.
|
|
virtual QSqlError | qxCount (long &lCount, const qx::QxSqlQuery &query=qx::QxSqlQuery(), QSqlDatabase *pDatabase=NULL, const QStringList &relation=QStringList())=0 |
| Return the number of lines in the table (database) mapped to the current C++ class (registered into QxOrm context) and filtered by a user SQL query.
|
|
virtual QSqlError | qxFetchById (const QVariant &id=QVariant(), const QStringList &columns=QStringList(), const QStringList &relation=QStringList(), QSqlDatabase *pDatabase=NULL)=0 |
| Fetch current instance (retrieve all its properties) mapped to a table in the database (current instance must have a valid id before to be fetched without error, or pass the id to the first parameter of this method)
|
|
virtual QSqlError | qxFetchAll (qx::IxPersistableCollection *list=NULL, const QStringList &columns=QStringList(), const QStringList &relation=QStringList(), QSqlDatabase *pDatabase=NULL)=0 |
| Fetch a list of objects (retrieve all elements and properties associated) of current type (container registered into QxOrm context) mapped to a table in the database.
|
|
virtual QSqlError | qxFetchByQuery (const qx::QxSqlQuery &query, qx::IxPersistableCollection *list=NULL, const QStringList &columns=QStringList(), const QStringList &relation=QStringList(), QSqlDatabase *pDatabase=NULL)=0 |
| Fetch a list of objects (retrieve all elements and properties associated) of current type (container registered into QxOrm context) mapped to a table in the database and filtered by a user SQL query.
|
|
virtual QSqlError | qxInsert (const QStringList &relation=QStringList(), QSqlDatabase *pDatabase=NULL, bool bUseExecBatch=false)=0 |
| Insert current instance into database.
|
|
virtual QSqlError | qxUpdate (const qx::QxSqlQuery &query=qx::QxSqlQuery(), const QStringList &columns=QStringList(), const QStringList &relation=QStringList(), QSqlDatabase *pDatabase=NULL, bool bUseExecBatch=false)=0 |
| Update current instance into database (you can add a user SQL query to the default SQL query builded by QxOrm library)
|
|
virtual QSqlError | qxSave (const QStringList &relation=QStringList(), QSqlDatabase *pDatabase=NULL, qx::dao::save_mode::e_save_mode eSaveRecursiveMode=qx::dao::save_mode::e_none)=0 |
| Insert (if no exist) or update (if already exist) current instance into database.
|
|
virtual QSqlError | qxDeleteById (const QVariant &id=QVariant(), QSqlDatabase *pDatabase=NULL, bool bUseExecBatch=false)=0 |
| Delete current instance from database.
|
|
virtual QSqlError | qxDeleteAll (QSqlDatabase *pDatabase=NULL)=0 |
| Delete all lines of a table (database) mapped to current C++ class (registered into QxOrm context)
|
|
virtual QSqlError | qxDeleteByQuery (const qx::QxSqlQuery &query, QSqlDatabase *pDatabase=NULL)=0 |
| Delete all lines of a table (database) mapped to current C++ class (registered into QxOrm context) and filtered by a user SQL query.
|
|
virtual QSqlError | qxDestroyById (const QVariant &id=QVariant(), QSqlDatabase *pDatabase=NULL, bool bUseExecBatch=false)=0 |
| Delete current instance from database.
|
|
virtual QSqlError | qxDestroyAll (QSqlDatabase *pDatabase=NULL)=0 |
| Delete all lines of a table (database) mapped to current C++ class (registered into QxOrm context)
|
|
virtual QSqlError | qxDestroyByQuery (const qx::QxSqlQuery &query, QSqlDatabase *pDatabase=NULL)=0 |
| Delete all lines of a table (database) mapped to current C++ class (registered into QxOrm context) and filtered by a user SQL query.
|
|
virtual QSqlError | qxExecuteQuery (qx::QxSqlQuery &query, QSqlDatabase *pDatabase=NULL)=0 |
| Execute a custom SQL query or a stored procedure, all columns that can be mapped to the instance of type T will be fetched automatically.
|
|
virtual QSqlError | qxExecuteQuery (qx::QxSqlQuery &query, qx::IxPersistableCollection *list=NULL, QSqlDatabase *pDatabase=NULL)=0 |
| Execute a custom SQL query or a stored procedure, all columns that can be mapped to the instance of type T will be fetched automatically.
|
|
virtual qx_bool | qxExist (const QVariant &id=QVariant(), QSqlDatabase *pDatabase=NULL)=0 |
| Search if current instance already exists into database.
|
|
virtual qx::QxInvalidValueX | qxValidate (const QStringList &groups=QStringList())=0 |
| Check if current instance is valid or not.
|
|
virtual std::shared_ptr< qx::IxPersistableCollection > | qxNewPersistableCollection (bool bAsList=false) const =0 |
| Create a new collection smart-pointer to fetch a list of items of current class type.
|
|
virtual qx::IxClass * | qxClass () const =0 |
| Access to introspection engine (or reflection engine) of QxOrm library.
|
|
virtual QString | toJson (const QString &format=QString()) const =0 |
|
virtual QJsonValue | toJson_ (const QString &format=QString()) const =0 |
|
virtual qx_bool | fromJson (const QString &json, const QString &format=QString())=0 |
|
virtual qx_bool | fromJson_ (const QJsonValue &json, const QString &format=QString())=0 |
|
qx::IxPersistableCollection : common interface (abstract class) for collection persistent classes based on qx::IxPersistable and qx::IxCollection
Definition at line 63 of file IxPersistableCollection.h.