![]() |
QxOrm 1.1.9
C++ Object Relational Mapping library
|
qx::QxSqlRelation_ManyToMany<DataType, Owner> : manage a relationship many-to-many defined between 2 classes (or between 2 tables in database) More...
#include <QxSqlRelation_ManyToMany.h>
Public Member Functions | |
QxSqlRelation_ManyToMany (IxDataMember *p, const QString &sExtraTable, const QString &sForeignKeyOwner, const QString &sForeignKeyDataType) | |
virtual | ~QxSqlRelation_ManyToMany () |
virtual QString | getDescription () const |
virtual bool | getCartesianProduct () const |
virtual void | createTable (QxSqlRelationParams ¶ms) const |
virtual void | lazySelect (QxSqlRelationParams ¶ms) const |
virtual void | lazyFrom (QxSqlRelationParams ¶ms) const |
virtual void | eagerFrom (QxSqlRelationParams ¶ms) const |
virtual void | lazyJoin (QxSqlRelationParams ¶ms) const |
virtual void | lazyWhere (QxSqlRelationParams ¶ms) const |
virtual void | eagerWhere (QxSqlRelationParams ¶ms) const |
virtual void | lazyWhereSoftDelete (QxSqlRelationParams ¶ms) const |
virtual void | lazyFetch_ResolveInput (QxSqlRelationParams ¶ms) const |
virtual void | eagerFetch_ResolveInput (QxSqlRelationParams ¶ms) const |
virtual void | lazyFetch_ResolveOutput (QxSqlRelationParams ¶ms) const |
virtual void | lazyInsert (QxSqlRelationParams ¶ms) const |
virtual void | lazyInsert_Values (QxSqlRelationParams ¶ms) const |
virtual void | lazyUpdate (QxSqlRelationParams ¶ms) const |
virtual void | lazyInsert_ResolveInput (QxSqlRelationParams ¶ms) const |
virtual void | lazyUpdate_ResolveInput (QxSqlRelationParams ¶ms) const |
virtual QSqlError | onBeforeSave (QxSqlRelationParams ¶ms) const |
virtual QVariant | getIdFromQuery (bool bEager, QxSqlRelationParams ¶ms) const |
virtual void | updateOffset (bool bEager, QxSqlRelationParams ¶ms) const |
virtual void | eagerSelect (QxSqlRelationParams ¶ms) const |
virtual void | eagerJoin (QxSqlRelationParams ¶ms) const |
virtual void | eagerWhereSoftDelete (QxSqlRelationParams ¶ms) const |
virtual void | eagerFetch_ResolveOutput (QxSqlRelationParams ¶ms) const |
virtual QSqlError | onAfterSave (QxSqlRelationParams ¶ms) const |
virtual QSqlError | createExtraTable (QxSqlRelationParams ¶ms) const |
Protected Attributes | |
QString | m_sExtraTable |
Extra table that holds the relationship. | |
QString | m_sForeignKeyOwner |
SQL query foreign key for owner. | |
QString | m_sForeignKeyDataType |
SQL query foreign key for data type. | |
Private Types | |
enum | { is_data_container = QxSqlRelation<DataType, is_data_container = QxSqlRelation<DataType } |
typedef QxSqlRelation < DataType, Owner > ::type_owner | type_owner |
typedef QxSqlRelation < DataType, Owner >::type_data | type_data |
typedef QxSqlRelation < DataType, Owner > ::type_container | type_container |
typedef QxSqlRelation < DataType, Owner > ::type_generic_container | type_generic_container |
typedef QxSqlRelation < DataType, Owner >::type_item | type_item |
typedef type_generic_container::type_iterator | type_iterator |
Private Member Functions | |
void | verifyParameters () |
QSqlError | deleteFromExtraTable (QxSqlRelationParams ¶ms) const |
QSqlError | insertIntoExtraTable (QxSqlRelationParams ¶ms) const |
qx::QxSqlRelation_ManyToMany<DataType, Owner> : manage a relationship many-to-many defined between 2 classes (or between 2 tables in database)
Definition at line 49 of file QxSqlRelation_ManyToMany.h.
typedef QxSqlRelation<DataType, Owner>::type_container qx::QxSqlRelation_ManyToMany< DataType, Owner >::type_container [private] |
Reimplemented from qx::QxSqlRelation< DataType, Owner >.
Definition at line 56 of file QxSqlRelation_ManyToMany.h.
typedef QxSqlRelation<DataType, Owner>::type_data qx::QxSqlRelation_ManyToMany< DataType, Owner >::type_data [private] |
Reimplemented from qx::QxSqlRelation< DataType, Owner >.
Definition at line 55 of file QxSqlRelation_ManyToMany.h.
typedef QxSqlRelation<DataType, Owner>::type_generic_container qx::QxSqlRelation_ManyToMany< DataType, Owner >::type_generic_container [private] |
Reimplemented from qx::QxSqlRelation< DataType, Owner >.
Definition at line 57 of file QxSqlRelation_ManyToMany.h.
typedef QxSqlRelation<DataType, Owner>::type_item qx::QxSqlRelation_ManyToMany< DataType, Owner >::type_item [private] |
Reimplemented from qx::QxSqlRelation< DataType, Owner >.
Definition at line 58 of file QxSqlRelation_ManyToMany.h.
typedef type_generic_container::type_iterator qx::QxSqlRelation_ManyToMany< DataType, Owner >::type_iterator [private] |
Definition at line 59 of file QxSqlRelation_ManyToMany.h.
typedef QxSqlRelation<DataType, Owner>::type_owner qx::QxSqlRelation_ManyToMany< DataType, Owner >::type_owner [private] |
Reimplemented from qx::QxSqlRelation< DataType, Owner >.
Definition at line 54 of file QxSqlRelation_ManyToMany.h.
anonymous enum [private] |
Definition at line 61 of file QxSqlRelation_ManyToMany.h.
qx::QxSqlRelation_ManyToMany< DataType, Owner >::QxSqlRelation_ManyToMany | ( | IxDataMember * | p, |
const QString & | sExtraTable, | ||
const QString & | sForeignKeyOwner, | ||
const QString & | sForeignKeyDataType | ||
) | [inline] |
Definition at line 71 of file QxSqlRelation_ManyToMany.h.
virtual qx::QxSqlRelation_ManyToMany< DataType, Owner >::~QxSqlRelation_ManyToMany | ( | ) | [inline, virtual] |
Definition at line 72 of file QxSqlRelation_ManyToMany.h.
virtual QSqlError qx::QxSqlRelation_ManyToMany< DataType, Owner >::createExtraTable | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 183 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::createTable | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 76 of file QxSqlRelation_ManyToMany.h.
QSqlError qx::QxSqlRelation_ManyToMany< DataType, Owner >::deleteFromExtraTable | ( | QxSqlRelationParams & | params | ) | const [inline, private] |
Definition at line 213 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::eagerFetch_ResolveInput | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 85 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::eagerFetch_ResolveOutput | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 151 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::eagerFrom | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 79 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::eagerJoin | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 121 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::eagerSelect | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 110 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::eagerWhere | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 82 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::eagerWhereSoftDelete | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 142 of file QxSqlRelation_ManyToMany.h.
virtual bool qx::QxSqlRelation_ManyToMany< DataType, Owner >::getCartesianProduct | ( | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 75 of file QxSqlRelation_ManyToMany.h.
virtual QString qx::QxSqlRelation_ManyToMany< DataType, Owner >::getDescription | ( | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 74 of file QxSqlRelation_ManyToMany.h.
virtual QVariant qx::QxSqlRelation_ManyToMany< DataType, Owner >::getIdFromQuery | ( | bool | bEager, |
QxSqlRelationParams & | params | ||
) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 94 of file QxSqlRelation_ManyToMany.h.
QSqlError qx::QxSqlRelation_ManyToMany< DataType, Owner >::insertIntoExtraTable | ( | QxSqlRelationParams & | params | ) | const [inline, private] |
Definition at line 231 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyFetch_ResolveInput | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 84 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyFetch_ResolveOutput | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 86 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyFrom | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 78 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyInsert | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 87 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyInsert_ResolveInput | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 90 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyInsert_Values | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 88 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyJoin | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 80 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazySelect | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 77 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyUpdate | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 89 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyUpdate_ResolveInput | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 91 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyWhere | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 81 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::lazyWhereSoftDelete | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 83 of file QxSqlRelation_ManyToMany.h.
virtual QSqlError qx::QxSqlRelation_ManyToMany< DataType, Owner >::onAfterSave | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 172 of file QxSqlRelation_ManyToMany.h.
virtual QSqlError qx::QxSqlRelation_ManyToMany< DataType, Owner >::onBeforeSave | ( | QxSqlRelationParams & | params | ) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 92 of file QxSqlRelation_ManyToMany.h.
virtual void qx::QxSqlRelation_ManyToMany< DataType, Owner >::updateOffset | ( | bool | bEager, |
QxSqlRelationParams & | params | ||
) | const [inline, virtual] |
Implements qx::IxSqlRelation.
Definition at line 101 of file QxSqlRelation_ManyToMany.h.
void qx::QxSqlRelation_ManyToMany< DataType, Owner >::verifyParameters | ( | ) | [inline, private] |
Definition at line 210 of file QxSqlRelation_ManyToMany.h.
QString qx::QxSqlRelation_ManyToMany< DataType, Owner >::m_sExtraTable [protected] |
Extra table that holds the relationship.
Definition at line 65 of file QxSqlRelation_ManyToMany.h.
QString qx::QxSqlRelation_ManyToMany< DataType, Owner >::m_sForeignKeyDataType [protected] |
SQL query foreign key for data type.
Definition at line 67 of file QxSqlRelation_ManyToMany.h.
QString qx::QxSqlRelation_ManyToMany< DataType, Owner >::m_sForeignKeyOwner [protected] |
SQL query foreign key for owner.
Definition at line 66 of file QxSqlRelation_ManyToMany.h.