<class name="QSqlRelation" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;QSqlRelation&lt;/tt&gt;&lt;/a&gt; class stores information about an SQL foreign key.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;QSqlRelation&lt;/tt&gt;&lt;/a&gt; is a helper class for &lt;a href=&quot;QSqlRelationalTableModel.html&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt;. See QSqlRelationalTableModel::setRelation() and QSqlRelationalTableModel::relation() for details.&lt;/p&gt;

@see &lt;a href=&quot;QSqlRelationalTableModel.html&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSqlRelationalDelegate&lt;/tt&gt;
@see Relational Table Model Example&lt;/tt&gt; */">
    <method name="public QSqlRelation()" doc="/**
&lt;p&gt;Constructs an invalid &lt;a href=&quot;QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;QSqlRelation&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
&lt;p&gt;For such an object, the &lt;a href=&quot;QSqlRelation.html#tableName()&quot;&gt;&lt;tt&gt;tableName&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSqlRelation.html#indexColumn()&quot;&gt;&lt;tt&gt;indexColumn&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QSqlRelation.html#displayColumn()&quot;&gt;&lt;tt&gt;displayColumn&lt;/tt&gt;&lt;/a&gt; functions return an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QSqlRelation.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QSqlRelation(java.lang.String aTableName, java.lang.String indexCol, java.lang.String displayCol)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;QSqlRelation&lt;/tt&gt;&lt;/a&gt; object, where &lt;tt&gt;aTableName&lt;/tt&gt; is the SQL table name to which a foreign key refers, &lt;tt&gt;indexCol&lt;/tt&gt; is the foreign key, and &lt;tt&gt;displayCol&lt;/tt&gt; is the field that should be presented to the user.&lt;/p&gt;

@see &lt;a href=&quot;QSqlRelation.html#tableName()&quot;&gt;&lt;tt&gt;tableName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlRelation.html#indexColumn()&quot;&gt;&lt;tt&gt;indexColumn&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlRelation.html#displayColumn()&quot;&gt;&lt;tt&gt;displayColumn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String displayColumn()" doc="/**
&lt;p&gt;Returns the column from table &lt;a href=&quot;QSqlRelation.html#tableName()&quot;&gt;&lt;tt&gt;tableName&lt;/tt&gt;&lt;/a&gt; that should be presented to the user instead of a foreign key.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String indexColumn()" doc="/**
&lt;p&gt;Returns the index column from table &lt;a href=&quot;QSqlRelation.html#tableName()&quot;&gt;&lt;tt&gt;tableName&lt;/tt&gt;&lt;/a&gt; to which a foreign key refers.&lt;/p&gt;
 */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if the &lt;a href=&quot;QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;QSqlRelation&lt;/tt&gt;&lt;/a&gt; object is valid; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String tableName()" doc="/**
&lt;p&gt;Returns the name of the table to which a foreign key refers.&lt;/p&gt;
 */"/>
</class>
