|
| QgsWeakRelation () |
| Default constructor for an invalid relation. More...
|
|
| QgsWeakRelation (const QString &relationId, const QString &relationName, const Qgis::RelationshipStrength strength, const QString &referencingLayerId, const QString &referencingLayerName, const QString &referencingLayerSource, const QString &referencingLayerProviderKey, const QString &referencedLayerId, const QString &referencedLayerName, const QString &referencedLayerSource, const QString &referencedLayerProviderKey) |
| Creates a QgsWeakRelation. More...
|
|
QString | backwardPathLabel () const |
| Returns the label of the backward path for the relationship. More...
|
|
Qgis::RelationshipCardinality | cardinality () const |
| Returns the relationship's cardinality. More...
|
|
QString | forwardPathLabel () const |
| Returns the label of the forward path for the relationship. More...
|
|
QString | id () const |
| Returns the relationship's ID. More...
|
|
QStringList | mappingReferencedLayerFields () const |
| Returns the list of fields from the mappingTable() involved in the relationship. More...
|
|
QStringList | mappingReferencingLayerFields () const |
| Returns the list of fields from the mappingTable() involved in the relationship. More...
|
|
QgsVectorLayerRef | mappingTable () const |
| Returns a weak reference to the mapping table, which forms the middle table in many-to-many relationships. More...
|
|
QString | mappingTableName () const |
| Returns the layer name of the mapping table, which forms the middle table in many-to-many relationships. More...
|
|
QString | mappingTableProvider () const |
| Returns the provider ID for the mapping table, which forms the middle table in many-to-many relationships. More...
|
|
QString | mappingTableSource () const |
| Returns the source URI for the mapping table, which forms the middle table in many-to-many relationships. More...
|
|
QString | name () const |
| Returns the relationship's name. More...
|
|
QgsVectorLayerRef | referencedLayer () const |
| Returns a weak reference to the referenced (or "parent" / "left") layer. More...
|
|
QStringList | referencedLayerFields () const |
| Returns the list of fields from the referencedLayer() involved in the relationship. More...
|
|
QString | referencedLayerName () const |
| Returns the layer name of the referenced (or "parent" / "left") layer. More...
|
|
QString | referencedLayerProvider () const |
| Returns the provider ID for the referenced (or "parent" / "left") layer. More...
|
|
QString | referencedLayerSource () const |
| Returns the source URI for the referenced (or "parent" / "left") layer. More...
|
|
QgsVectorLayerRef | referencingLayer () const |
| Returns a weak reference to the referencing (or "child" / "right") layer. More...
|
|
QStringList | referencingLayerFields () const |
| Returns the list of fields from the referencingLayer() involved in the relationship. More...
|
|
QString | referencingLayerName () const |
| Returns the layer name of the referencing (or "child" / "right") layer. More...
|
|
QString | referencingLayerProvider () const |
| Returns the provider ID for the referencing (or "child" / "right") layer. More...
|
|
QString | referencingLayerSource () const |
| Returns the source URI for the referencing (or "child" / "right") layer. More...
|
|
QString | relatedTableType () const |
| Returns the type string of the related table. More...
|
|
QList< QgsRelation > | resolvedRelations (const QgsProject *project, QgsVectorLayerRef::MatchType matchType=QgsVectorLayerRef::MatchType::All) const |
| Resolves a weak relation in the given project returning a list of possibly invalid QgsRelations and without performing any kind of validity check. More...
|
|
void | setBackwardPathLabel (const QString &label) |
| Sets the label of the backward path for the relationship. More...
|
|
void | setCardinality (Qgis::RelationshipCardinality cardinality) |
| Sets the relationship's cardinality. More...
|
|
void | setForwardPathLabel (const QString &label) |
| Sets the label of the forward path for the relationship. More...
|
|
void | setMappingReferencedLayerFields (const QStringList &fields) |
| Sets the list of fields from the mappingTable() involved in the relationship. More...
|
|
void | setMappingReferencingLayerFields (const QStringList &fields) |
| Sets the list of fields from the mappingTable() involved in the relationship. More...
|
|
void | setMappingTable (const QgsVectorLayerRef &table) |
| Sets a weak reference to the mapping table, which forms the middle table in many-to-many relationships. More...
|
|
void | setReferencedLayerFields (const QStringList &fields) |
| Sets the list of fields from the referencedLayer() involved in the relationship. More...
|
|
void | setReferencingLayerFields (const QStringList &fields) |
| Sets the list of fields from the referencingLayer() involved in the relationship. More...
|
|
void | setRelatedTableType (const QString &type) |
| Sets the type string of the related table. More...
|
|
Qgis::RelationshipStrength | strength () const |
| Returns the strength of the relation. More...
|
|