|
| QgsPolymorphicRelation () |
| Default constructor. More...
|
|
| QgsPolymorphicRelation (const QgsPolymorphicRelation &other) |
| Copies a relation. More...
|
|
| QgsPolymorphicRelation (const QgsRelationContext &context) |
| Constructor with context. More...
|
|
| ~QgsPolymorphicRelation () |
|
void | addFieldPair (const QgsRelation::FieldPair &fieldPair) |
| Add a field pair which is part of this relation The first element of each pair are the field names of the foreign key. More...
|
|
void | addFieldPair (const QString &referencingField, const QString &referencedField) |
| Add a field pair which is part of this relation The first element of each pair are the field names of the foreign key. More...
|
|
QList< QgsRelation::FieldPair > | fieldPairs () const |
| Returns the field pairs which form this relation The first element of each pair are the field names of the foreign key. More...
|
|
void | generateId () |
| Generate a (project-wide) unique id for this relation. More...
|
|
QList< QgsRelation > | generateRelations () const |
| Returns a list of generated relations, based on the currently set referencedLayerIds() More...
|
|
bool | hasEqualDefinition (const QgsPolymorphicRelation &other) const |
| Compares the two QgsRelation, ignoring the name and the ID. More...
|
|
QString | id () const |
| A (project-wide) unique id for this relation. More...
|
|
bool | isValid () const |
| Returns the validity of this relation. More...
|
|
QString | layerRepresentation (const QgsVectorLayer *layer) const |
| Returns layer representation as evaluated string. More...
|
|
QString | name () const |
| Returns a human readable name for this relation. More...
|
|
QgsPolymorphicRelation & | operator= (const QgsPolymorphicRelation &other) |
| Copies a relation. More...
|
|
QgsAttributeList | referencedFields (const QString &layerId) const |
| Returns a list of attributes used to form the referenced fields (most likely primary key) on the referenced (parent) layer. More...
|
|
QString | referencedLayerExpression () const |
| Returns the expression to identify the parent layer. More...
|
|
QString | referencedLayerField () const |
| Returns the field in the referencing layer where the referenced layer identifier is stored. More...
|
|
QStringList | referencedLayerIds () const |
| Returns a list of layer ids to be used as potential referenced layers. More...
|
|
QgsAttributeList | referencingFields () const |
| Returns a list of attributes used to form the referencing fields (foreign key) on the referencing (child) layer. More...
|
|
QgsVectorLayer * | referencingLayer () const |
| Access the referencing (child) layer This is the layer which has the field(s) which point to another layer. More...
|
|
QString | referencingLayerId () const |
| Access the referencing (child) layer's id This is the layer which has the field(s) which point to another layer. More...
|
|
void | setId (const QString &id) |
| Set an id for this relation. More...
|
|
void | setName (const QString &name) |
| Set a name for this relation. More...
|
|
void | setReferencedLayerExpression (const QString &expression) |
| Sets the expression to identify the parent layer. More...
|
|
void | setReferencedLayerField (const QString &referencedLayerField) |
| Sets the field in the referencing layer where the referenced layer identifier is stored. More...
|
|
void | setReferencedLayerIds (const QStringList &childRelationIds) |
| Sets a list of layer ids to be used as potential referenced layers. More...
|
|
void | setReferencingLayer (const QString &id) |
| Set the referencing (child) layer id. More...
|
|
void | setRelationStrength (Qgis::RelationshipStrength relationStrength) |
| Sets the relation strength for all the generated normal relations. More...
|
|
Qgis::RelationshipStrength | strength () const |
| Returns the relation strength for all the generated normal relations. More...
|
|
void | updateRelationStatus () |
| Updates the validity status of this relation. More...
|
|
void | writeXml (QDomNode &node, QDomDocument &doc) const |
| Writes a relation to an XML structure. More...
|
|