kexi
KexiDB::Relationship Class Reference
List of all members.Detailed Description
Definition at line 77 of file relationship.h.
Public Types | |
typedef QPtrList< Relationship > | List |
typedef QPtrListIterator< Relationship > | ListIterator |
Public Member Functions | |
Relationship () | |
Relationship (IndexSchema *masterIndex, IndexSchema *detailsIndex) | |
virtual | ~Relationship () |
IndexSchema * | masterIndex () const |
IndexSchema * | detailsIndex () const |
Field::PairList * | fieldPairs () |
bool | isEmpty () const |
TableSchema * | masterTable () const |
TableSchema * | detailsTable () const |
void | setIndices (IndexSchema *masterIndex, IndexSchema *detailsIndex) |
Protected Member Functions | |
Relationship (QuerySchema *query, Field *field1, Field *field2) | |
void | createIndices (QuerySchema *query, Field *field1, Field *field2) |
void | setIndices (IndexSchema *masterIndex, IndexSchema *detailsIndex, bool ownedByMaster) |
Protected Attributes | |
IndexSchema * | m_masterIndex |
IndexSchema * | m_detailsIndex |
Field::PairList | m_pairs |
bool | m_masterIndexOwned: 1 |
bool | m_detailsIndexOwned: 1 |
Friends | |
class | Connection |
class | TableSchema |
class | QuerySchema |
class | IndexSchema |
Constructor & Destructor Documentation
|
Creates uninitialized Relationship object. setIndices() will be required to call. Definition at line 31 of file relationship.cpp. |
|
Creates Relationship object and initialises it just by calling setIndices(). If setIndices() failed, object is still uninitialised. Definition at line 40 of file relationship.cpp. |
Member Function Documentation
|
Definition at line 101 of file relationship.h. |
|
Definition at line 145 of file relationship.cpp. |
|
Definition at line 106 of file relationship.h. |
|
Definition at line 97 of file relationship.h. |
|
Definition at line 140 of file relationship.cpp. |
|
Internal version of setIndices(). ownedByMaster parameter is passed to IndexSchema::attachRelationship() Definition at line 155 of file relationship.cpp. |
|
Sets masterIndex and detailsIndex indices for this relationship. This also sets information about tables for master- and details- sides. Notes:
Definition at line 150 of file relationship.cpp. |
The documentation for this class was generated from the following files: