@@ -31,8 +31,8 @@ class CORE_EXPORT QgsRelation
31
31
/* *
32
32
* Defines a relation between matching fields of the two involved tables of a relation.
33
33
* Often, a relation is only defined by just one FieldPair with the name of the foreign key
34
- * column of the referencing table as first element and the name of the primary key column
35
- * of the referenced table as the second element.
34
+ * column of the referencing (child) table as first element and the name of the primary key column
35
+ * of the referenced (parent) table as the second element.
36
36
* @note not available in Python bindings
37
37
*/
38
38
class FieldPair : public QPair < QString, QString >
@@ -46,9 +46,9 @@ class CORE_EXPORT QgsRelation
46
46
FieldPair ( const QString& referencingField, const QString& referencedField )
47
47
: QPair< QString, QString >( referencingField, referencedField ) {}
48
48
49
- // ! Get the name of the referencing field
49
+ // ! Get the name of the referencing (child) field
50
50
QString referencingField () const { return first; }
51
- // ! Get the name of the referenced field
51
+ // ! Get the name of the referenced (parent) field
52
52
QString referencedField () const { return second; }
53
53
};
54
54
@@ -89,32 +89,32 @@ class CORE_EXPORT QgsRelation
89
89
void setRelationName ( const QString& name );
90
90
91
91
/* *
92
- * Set the referencing layer id. This layer will be searched in the registry.
92
+ * Set the referencing (child) layer id. This layer will be searched in the registry.
93
93
*
94
94
* @param id
95
95
*/
96
96
void setReferencingLayer ( const QString& id );
97
97
98
98
/* *
99
- * Set the referenced layer id. This layer will be searched in the registry.
99
+ * Set the referenced (parent) layer id. This layer will be searched in the registry.
100
100
*
101
101
* @param id
102
102
*/
103
103
void setReferencedLayer ( const QString& id );
104
104
105
105
/* *
106
106
* Add a field pairs which is part of this relation
107
- * The first element of each pair are the field names fo the foreign key.
107
+ * The first element of each pair are the field names of the foreign key.
108
108
* The second element of each pair are the field names of the matching primary key.
109
109
*
110
- * @param referencingField The field name on the referencing layer (FK)
111
- * @param referencedField The field name on the referenced layer (PK)
110
+ * @param referencingField The field name on the referencing (child) layer (FK)
111
+ * @param referencedField The field name on the referenced (parent) layer (PK)
112
112
*/
113
113
void addFieldPair ( const QString& referencingField, const QString& referencedField );
114
114
115
115
/* *
116
116
* Add a field pairs which is part of this relation
117
- * The first element of each pair are the field names fo the foreign key.
117
+ * The first element of each pair are the field names of the foreign key.
118
118
* The second element of each pair are the field names of the matching primary key.
119
119
*
120
120
* @param fieldPair A pair of two strings
@@ -221,7 +221,7 @@ class CORE_EXPORT QgsRelation
221
221
222
222
/* *
223
223
* Returns the field pairs which form this relation
224
- * The first element of each pair are the field names fo the foreign key.
224
+ * The first element of each pair are the field names of the foreign key.
225
225
* The second element of each pair are the field names of the matching primary key.
226
226
*
227
227
* @return The fields forming the relation
@@ -230,15 +230,15 @@ class CORE_EXPORT QgsRelation
230
230
231
231
/* *
232
232
* Returns a list of attributes used to form the referenced fields
233
- * (most likely primary key) on the referenced layer.
233
+ * (most likely primary key) on the referenced (parent) layer.
234
234
*
235
235
* @return A list of attributes
236
236
*/
237
237
QgsAttributeList referencedFields () const ;
238
238
239
239
/* *
240
240
* Returns a list of attributes used to form the referencing fields
241
- * (foreign key) on the referencing layer.
241
+ * (foreign key) on the referencing (child) layer.
242
242
*
243
243
* @return A list of attributes
244
244
*/
0 commit comments