![]() |
QxOrm 1.4.9
C++ Object Relational Mapping library
|
qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 tables in database) More...
#include <IxSqlRelation.h>
Public Types | |
enum | relation_type { no_relation , one_to_one , one_to_many , many_to_one , many_to_many } |
Public Member Functions | |
IxSqlRelation (IxDataMember *p) | |
virtual | ~IxSqlRelation ()=0 |
QxCollection< QString, IxDataMember * > * | getLstDataMember () const |
IxSqlRelationX * | getLstRelation () const |
void | setSqlJoinType (qx::dao::sql_join::join_type e) |
qx::dao::sql_join::join_type | getSqlJoinType () const |
relation_type | getRelationType () const |
IxClass * | getClass () const |
IxClass * | getClassOwner () const |
IxDataMember * | getDataMember () const |
IxDataMemberX * | getDataMemberX () const |
IxDataMember * | getDataId () const |
IxDataMember * | getDataIdOwner () const |
QString | getKey () const |
QString | getForeignKey () const |
QString | getForeignKeyOwner () const |
QString | getForeignKeyDataType () const |
QString | getExtraTable () const |
long | getDataCount () const |
long | getRelationCount () const |
IxDataMember * | getDataByKey (const QString &sKey) const |
IxDataMember * | nextData (long &lIndex) const |
IxSqlRelation * | nextRelation (long &lIndex) const |
QString | table () const |
QString | tableAlias (QxSqlRelationParams ¶ms) const |
QString | tableAliasOwner (QxSqlRelationParams ¶ms) const |
QString | getSqlJoin (qx::dao::sql_join::join_type e=qx::dao::sql_join::no_join) const |
bool | traceSqlQuery () const |
virtual void | init () |
virtual QString | getDescription () const =0 |
virtual QString | createExtraTable () const =0 |
virtual bool | getCartesianProduct () const =0 |
virtual QVariant | getIdFromQuery (bool bEager, QxSqlRelationParams ¶ms, int iOffset, int iNameIndex) const =0 |
virtual void | updateOffset (bool bEager, QxSqlRelationParams ¶ms) const =0 |
virtual void | createTable (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazySelect (QxSqlRelationParams ¶ms) const =0 |
virtual void | eagerSelect (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyFrom (QxSqlRelationParams ¶ms) const =0 |
virtual void | eagerFrom (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyJoin (QxSqlRelationParams ¶ms) const =0 |
virtual void | eagerJoin (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyWhere (QxSqlRelationParams ¶ms) const =0 |
virtual void | eagerWhere (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyWhereSoftDelete (QxSqlRelationParams ¶ms) const =0 |
virtual void | eagerWhereSoftDelete (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyFetch_ResolveInput (QxSqlRelationParams ¶ms) const =0 |
virtual void | eagerFetch_ResolveInput (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyFetch_ResolveOutput (QxSqlRelationParams ¶ms) const =0 |
virtual void * | eagerFetch_ResolveOutput (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyInsert (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyInsert_Values (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyUpdate (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyInsert_ResolveInput (QxSqlRelationParams ¶ms) const =0 |
virtual void | lazyUpdate_ResolveInput (QxSqlRelationParams ¶ms) const =0 |
virtual QSqlError | onBeforeSave (QxSqlRelationParams ¶ms) const =0 |
virtual QSqlError | onAfterSave (QxSqlRelationParams ¶ms) const =0 |
bool | verifyOffset (QxSqlRelationParams ¶ms, bool bId) const QX_USED |
![]() | |
QxPropertyBag () | |
virtual | ~QxPropertyBag () |
void | setPropertyBag (const QString &key, const QVariant &value) |
QVariant | getPropertyBag (const QString &key) const |
void | removePropertyBag (const QString &key) |
void | clearPropertyBag () |
long | countPropertyBag () const |
QList< QString > | getAllPropertyBagKeys () const |
Static Public Member Functions | |
static void | setTraceRelationInit (bool bTrace) |
Private Attributes | |
std::unique_ptr< IxSqlRelationImpl > | m_pImpl |
Private implementation idiom. | |
Additional Inherited Members | |
![]() | |
typedef QHash< QString, QVariant > | type_hash_prop_bag |
typedef std::shared_ptr< type_hash_prop_bag > | type_hash_prop_bag_ptr |
![]() | |
type_hash_prop_bag_ptr | m_lstPropertyBag |
List of all properties in the bag (meta-data) | |
qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 tables in database)
Definition at line 68 of file IxSqlRelation.h.
Enumerator | |
---|---|
no_relation | |
one_to_one | |
one_to_many | |
many_to_one | |
many_to_many |
Definition at line 78 of file IxSqlRelation.h.
qx::IxSqlRelation::IxSqlRelation | ( | IxDataMember * | p | ) |
|
pure virtual |
|
protected |
|
protected |
|
pure virtual |
|
protected |
|
pure virtual |
|
protected |
|
protected |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
pure virtual |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
pure virtual |
IxClass * qx::IxSqlRelation::getClass | ( | ) | const |
IxClass * qx::IxSqlRelation::getClassOwner | ( | ) | const |
IxDataMember * qx::IxSqlRelation::getDataByKey | ( | const QString & | sKey | ) | const |
long qx::IxSqlRelation::getDataCount | ( | ) | const |
IxDataMember * qx::IxSqlRelation::getDataId | ( | ) | const |
IxDataMember * qx::IxSqlRelation::getDataIdOwner | ( | ) | const |
IxDataMember * qx::IxSqlRelation::getDataMember | ( | ) | const |
IxDataMemberX * qx::IxSqlRelation::getDataMemberX | ( | ) | const |
|
pure virtual |
QString qx::IxSqlRelation::getExtraTable | ( | ) | const |
QString qx::IxSqlRelation::getForeignKey | ( | ) | const |
QString qx::IxSqlRelation::getForeignKeyDataType | ( | ) | const |
QString qx::IxSqlRelation::getForeignKeyOwner | ( | ) | const |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
QString qx::IxSqlRelation::getKey | ( | ) | const |
QxCollection< QString, IxDataMember * > * qx::IxSqlRelation::getLstDataMember | ( | ) | const |
IxSqlRelationX * qx::IxSqlRelation::getLstRelation | ( | ) | const |
long qx::IxSqlRelation::getRelationCount | ( | ) | const |
relation_type qx::IxSqlRelation::getRelationType | ( | ) | const |
QString qx::IxSqlRelation::getSqlJoin | ( | qx::dao::sql_join::join_type | e = qx::dao::sql_join::no_join | ) | const |
qx::dao::sql_join::join_type qx::IxSqlRelation::getSqlJoinType | ( | ) | const |
|
virtual |
Reimplemented in qx::QxSqlRelation< DataType, Owner >.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
protected |
|
pure virtual |
|
pure virtual |
|
protected |
|
pure virtual |
|
pure virtual |
|
protected |
|
pure virtual |
|
protected |
|
pure virtual |
|
pure virtual |
|
pure virtual |
IxDataMember * qx::IxSqlRelation::nextData | ( | long & | lIndex | ) | const |
IxSqlRelation * qx::IxSqlRelation::nextRelation | ( | long & | lIndex | ) | const |
|
pure virtual |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void qx::IxSqlRelation::setSqlJoinType | ( | qx::dao::sql_join::join_type | e | ) |
|
static |
QString qx::IxSqlRelation::table | ( | ) | const |
QString qx::IxSqlRelation::tableAlias | ( | QxSqlRelationParams & | params | ) | const |
QString qx::IxSqlRelation::tableAliasOwner | ( | QxSqlRelationParams & | params | ) | const |
bool qx::IxSqlRelation::traceSqlQuery | ( | ) | const |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
bool qx::IxSqlRelation::verifyOffset | ( | QxSqlRelationParams & | params, |
bool | bId ) const |
|
private |
Private implementation idiom.
Definition at line 74 of file IxSqlRelation.h.