QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsRelation::FieldPair Class Reference

Defines a relation between matchin fields of the two involved tables of a relation. More...

#include <qgsrelation.h>

Inheritance diagram for QgsRelation::FieldPair:
Inheritance graph
[legend]

Public Member Functions

 FieldPair ()
 Default constructor: NULL strings. More...
 
 FieldPair (QString referencingField, QString referencedField)
 Constructor which takes two fields. More...
 
const QString & referencingField () const
 Get the name of the referencing field. More...
 
const QString & referencedField () const
 Get the name of the referenced field. More...
 

Detailed Description

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 primary key column of the referenced table as the second element.

Constructor & Destructor Documentation

QgsRelation::FieldPair::FieldPair ( )
inline

Default constructor: NULL strings.

QgsRelation::FieldPair::FieldPair ( QString  referencingField,
QString  referencedField 
)
inline

Constructor which takes two fields.

Member Function Documentation

const QString& QgsRelation::FieldPair::referencedField ( ) const
inline

Get the name of the referenced field.

const QString& QgsRelation::FieldPair::referencingField ( ) const
inline

Get the name of the referencing field.


The documentation for this class was generated from the following file: