QGIS API Documentation
2.2.0-Valmiera
|
Defines a relation between matchin fields of the two involved tables of a relation. More...
#include <qgsrelation.h>
Public Member Functions | |
FieldPair () | |
Default constructor: NULL strings. | |
FieldPair (QString referencingField, QString referencedField) | |
Constructor which takes two fields. | |
const QString & | referencingField () const |
Get the name of the referencing field. | |
const QString & | referencedField () const |
Get the name of the referenced field. |
Defines a relation between matchin fields of the two involved tables of a relation.
Often, a relation is only defined by just one FieldPair with the name of the foreign key column of the referencing table as first element and the name of the primkary key column of the referenced table as the second element.
Definition at line 38 of file qgsrelation.h.
|
inline |
Default constructor: NULL strings.
Definition at line 42 of file qgsrelation.h.
|
inline |
Constructor which takes two fields.
Definition at line 46 of file qgsrelation.h.
|
inline |
Get the name of the referenced field.
Definition at line 52 of file qgsrelation.h.
Referenced by QgsRelation::getRelatedFeaturesRequest(), QgsRelationEditorWidget::on_mAddFeatureButton_clicked(), and QgsRelationEditorWidget::on_mLinkFeatureButton_clicked().
|
inline |
Get the name of the referencing field.
Definition at line 50 of file qgsrelation.h.
Referenced by QgsRelation::getRelatedFeaturesRequest(), QgsRelationEditorWidget::on_mAddFeatureButton_clicked(), QgsRelationEditorWidget::on_mLinkFeatureButton_clicked(), QgsRelationEditorWidget::on_mUnlinkFeatureButton_clicked(), and QgsRelationManager::referencingRelations().