KexiDB::Relationship Class Reference
#include <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 |
Member Typedef Documentation
|
|
Definition at line 80 of file relationship.h. |
|
|
Definition at line 81 of file relationship.h. |
Constructor & Destructor Documentation
|
|
Creates uninitialized Relationship object. setIndices() will be required to call. Definition at line 31 of file relationship.cpp. References m_pairs. |
|
||||||||||||
|
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. References m_pairs, and setIndices(). |
|
|
Definition at line 60 of file relationship.cpp. References m_detailsIndex, m_detailsIndexOwned, m_masterIndex, and m_masterIndexOwned. |
|
||||||||||||||||
|
Definition at line 50 of file relationship.cpp. References createIndices(), and m_pairs. |
Member Function Documentation
|
||||||||||||||||
|
Definition at line 68 of file relationship.cpp. References KexiDB::IndexSchema::addField(), IndexSchema, KexiDB::Field::isPrimaryKey(), KexiDB::Field::isQueryAsterisk(), KexiDBWarn, m_detailsIndex, m_detailsIndexOwned, m_masterIndex, m_masterIndexOwned, KexiDB::IndexSchema::setForeignKey(), setIndices(), KexiDB::IndexSchema::table(), and KexiDB::Field::table(). Referenced by Relationship(). |
|
|
Definition at line 101 of file relationship.h. Referenced by KexiDB::IndexSchema::attachRelationship(), and KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Definition at line 145 of file relationship.cpp. References m_detailsIndex, and KexiDB::IndexSchema::table(). |
|
|
Definition at line 106 of file relationship.h. Referenced by KexiDB::Connection::selectStatement(). |
|
|
Definition at line 108 of file relationship.h. Referenced by KexiDB::QuerySchema::addRelationship(). |
|
|
Definition at line 97 of file relationship.h. Referenced by KexiDB::IndexSchema::attachRelationship(), and KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Definition at line 140 of file relationship.cpp. References m_masterIndex, and KexiDB::IndexSchema::table(). |
|
||||||||||||||||
|
Internal version of setIndices(). ownedByMaster parameter is passed to IndexSchema::attachRelationship() Definition at line 155 of file relationship.cpp. References KexiDB::IndexSchema::attachRelationship(), KexiDB::Driver::defaultSQLTypeName(), KexiDB::FieldList::fieldCount(), KexiDB::FieldList::fields(), KexiDB::Field::isIntegerType(), KexiDB::Field::isTextType(), KexiDB::Field::isUnsigned(), KexiDBWarn, m_detailsIndex, m_masterIndex, m_pairs, KexiDB::Field::name(), KexiDB::IndexSchema::table(), and KexiDB::Field::type(). |
|
||||||||||||
|
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. Referenced by createIndices(), and Relationship(). |
Friends And Related Function Documentation
|
|
Definition at line 148 of file relationship.h. |
|
|
Definition at line 151 of file relationship.h. Referenced by createIndices(). |
|
|
Definition at line 150 of file relationship.h. |
|
|
Definition at line 149 of file relationship.h. |
Member Data Documentation
|
|
Definition at line 141 of file relationship.h. Referenced by createIndices(), detailsTable(), setIndices(), and ~Relationship(). |
|
|
Definition at line 146 of file relationship.h. Referenced by createIndices(), and ~Relationship(). |
|
|
Definition at line 140 of file relationship.h. Referenced by createIndices(), masterTable(), setIndices(), and ~Relationship(). |
|
|
Definition at line 145 of file relationship.h. Referenced by createIndices(), and ~Relationship(). |
|
|
Definition at line 143 of file relationship.h. Referenced by Relationship(), and setIndices(). |
The documentation for this class was generated from the following files:
