<class name="QSqlRelation" doc="/** <p>The <a href="QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)"><tt>QSqlRelation</tt></a> class stores information about an SQL foreign key.</p> <p><a href="QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)"><tt>QSqlRelation</tt></a> is a helper class for <a href="QSqlRelationalTableModel.html"><tt>QSqlRelationalTableModel</tt></a>. See QSqlRelationalTableModel::setRelation() and QSqlRelationalTableModel::relation() for details.</p> @see <a href="QSqlRelationalTableModel.html"><tt>QSqlRelationalTableModel</tt></a> @see <tt>QSqlRelationalDelegate</tt> @see Relational Table Model Example</tt> */"> <method name="public QSqlRelation()" doc="/** <p>Constructs an invalid <a href="QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)"><tt>QSqlRelation</tt></a> object.</p> <p>For such an object, the <a href="QSqlRelation.html#tableName()"><tt>tableName</tt></a>, <a href="QSqlRelation.html#indexColumn()"><tt>indexColumn</tt></a>, and <a href="QSqlRelation.html#displayColumn()"><tt>displayColumn</tt></a> functions return an empty string.</p> @see <a href="QSqlRelation.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public QSqlRelation(java.lang.String aTableName, java.lang.String indexCol, java.lang.String displayCol)" doc="/** <p>Constructs a <a href="QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)"><tt>QSqlRelation</tt></a> object, where <tt>aTableName</tt> is the SQL table name to which a foreign key refers, <tt>indexCol</tt> is the foreign key, and <tt>displayCol</tt> is the field that should be presented to the user.</p> @see <a href="QSqlRelation.html#tableName()"><tt>tableName</tt></a> @see <a href="QSqlRelation.html#indexColumn()"><tt>indexColumn</tt></a> @see <a href="QSqlRelation.html#displayColumn()"><tt>displayColumn</tt></a> */"/> <method name="public final java.lang.String displayColumn()" doc="/** <p>Returns the column from table <a href="QSqlRelation.html#tableName()"><tt>tableName</tt></a> that should be presented to the user instead of a foreign key.</p> */"/> <method name="public final java.lang.String indexColumn()" doc="/** <p>Returns the index column from table <a href="QSqlRelation.html#tableName()"><tt>tableName</tt></a> to which a foreign key refers.</p> */"/> <method name="public final boolean isValid()" doc="/** <p>Returns true if the <a href="QSqlRelation.html#QSqlRelation(java.lang.String, java.lang.String, java.lang.String)"><tt>QSqlRelation</tt></a> object is valid; otherwise returns false.</p> */"/> <method name="public final java.lang.String tableName()" doc="/** <p>Returns the name of the table to which a foreign key refers.</p> */"/> </class>