<class name="QSqlRelationalTableModel" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt; class provides an editable data model for a single database table, with foreign key support.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt; acts like &lt;a href=&quot;QSqlTableModel.html#QSqlTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlTableModel&lt;/tt&gt;&lt;/a&gt;, but allows columns to be set as foreign keys into other database tables.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/noforeignkeys.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/foreignkeys.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The screenshot on the left shows a plain &lt;a href=&quot;QSqlTableModel.html#QSqlTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlTableModel&lt;/tt&gt;&lt;/a&gt; in a &lt;a href=&quot;%2E%2E/gui/QTableView.html&quot;&gt;&lt;tt&gt;QTableView&lt;/tt&gt;&lt;/a&gt;. Foreign keys (&lt;tt&gt;city&lt;/tt&gt; and &lt;tt&gt;country&lt;/tt&gt;) aren't resolved to human-readable values. The screenshot on the right shows a &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt;, with foreign keys resolved into human-readable text strings.&lt;/p&gt;
&lt;p&gt;The following code snippet shows how the &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt; was set up:&lt;/p&gt;
&lt;pre&gt;        model-&amp;gt;setTable(&amp;quot;employee&amp;quot;);

        model-&amp;gt;setRelation(2, QSqlRelation(&amp;quot;city&amp;quot;, &amp;quot;id&amp;quot;, &amp;quot;name&amp;quot;));
        model-&amp;gt;setRelation(3, QSqlRelation(&amp;quot;country&amp;quot;, &amp;quot;id&amp;quot;, &amp;quot;name&amp;quot;));&lt;/pre&gt;
&lt;p&gt;The &lt;a href=&quot;QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)&quot;&gt;&lt;tt&gt;setRelation&lt;/tt&gt;&lt;/a&gt; function calls establish a relationship between two tables. The first call specifies that column 2 in table &lt;tt&gt;employee&lt;/tt&gt; is a foreign key that maps with field &lt;tt&gt;id&lt;/tt&gt; of table &lt;tt&gt;city&lt;/tt&gt;, and that the view should present the &lt;tt&gt;city&lt;/tt&gt;'s &lt;tt&gt;name&lt;/tt&gt; field to the user. The second call does something similar with column 3.&lt;/p&gt;
&lt;p&gt;If you use a read-write &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt;, you probably want to use QSqlRelationalDelegate on the view. Unlike the default delegate, QSqlRelationalDelegate provides a combobox for fields that are foreign keys into other tables. To use the class, simply call QAbstractItemView::setItemDelegate() on the view with an instance of QSqlRelationalDelegate:&lt;/p&gt;
&lt;pre&gt;        QTableView *view = new QTableView;
        view-&amp;gt;setModel(model);
        view-&amp;gt;setItemDelegate(new QSqlRelationalDelegate(view));&lt;/pre&gt;
&lt;p&gt;The sql/relationaltablemodel&lt;/tt&gt; example illustrates how to use &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt; in conjunction with QSqlRelationalDelegate to provide tables with foreigh key support.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/relationaltable.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;Notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The table must have a primary key declared.&lt;/li&gt;
&lt;li&gt;The table's primary key may not contain a relation to another table.&lt;/li&gt;
&lt;li&gt;If a relational table contains keys that refer to non-existent rows in the referenced table, the rows containing the invalid keys will not be exposed through the model. The user or the database is responsible for keeping referential integrity.&lt;/li&gt;
&lt;li&gt;If a relation's display column name is also used as a column name in the main table, or if it is used as display column name in more than one relation it will be aliased. The alias is is the relation's table name and display column name joined by an underscore (e.g&amp;#x2e; tablename_columnname). All occurances of the duplicate display column name are aliased when duplication is detected, but no aliasing is done to the column names in the main table. The aliasing doesn't affect &lt;a href=&quot;QSqlRelation.html&quot;&gt;&lt;tt&gt;QSqlRelation&lt;/tt&gt;&lt;/a&gt;, so QSqlRelation::displayColumn() will return the original display column name, but QSqlRecord::fieldName() will return aliases.&lt;/li&gt;
&lt;/ul&gt;

@see &lt;a href=&quot;QSqlRelation.html&quot;&gt;&lt;tt&gt;QSqlRelation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSqlRelationalDelegate&lt;/tt&gt;
@see Relational Table Model Example&lt;/tt&gt; */">
    <signal name="protected final void beforeDelete(int row)" doc="/**
&lt;p&gt;This signal is emitted before the &lt;tt&gt;row&lt;/tt&gt; is deleted.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int row)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void beforeInsert(com.trolltech.qt.sql.QSqlRecord record)" doc="/**
&lt;p&gt;This signal is emitted before a new row is inserted. The values that are about to be inserted are stored in &lt;tt&gt;record&lt;/tt&gt; and can be modified before they will be inserted.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.sql.QSqlRecord record)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void beforeUpdate(int row, com.trolltech.qt.sql.QSqlRecord record)" doc="/**
&lt;p&gt;This signal is emitted before the &lt;tt&gt;row&lt;/tt&gt; is updated with the values from &lt;tt&gt;record&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that only values that are marked as generated will be updated. The generated flag can be set with &lt;tt&gt;QSqlRecord::setGenerated&lt;/tt&gt; and checked with &lt;tt&gt;QSqlRecord::isGenerated&lt;/tt&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int row, com.trolltech.qt.sql.QSqlRecord record)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int row)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QSqlRecord::isGenerated&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void dataChanged(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)" doc="/**
&lt;p&gt;This signal is emitted whenever the data in an existing item changes. The affected items are those between &lt;tt&gt;topLeft&lt;/tt&gt; and &lt;tt&gt;bottomRight&lt;/tt&gt; inclusive (of the same parent).&lt;/p&gt;
&lt;p&gt;Note that this signal must be emitted explicitly when reimplementing the &lt;a href=&quot;QSqlRelationalTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QModelIndex topLeft)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSqlRelationalTableModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)&quot;&gt;&lt;tt&gt;headerDataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSqlRelationalTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSqlRelationalTableModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void headerDataChanged(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)" doc="/**
&lt;p&gt;This signal is emitted whenever a header is changed. The &lt;tt&gt;orientation&lt;/tt&gt; indicates whether the horizontal or vertical header has changed. The sections in the header from the &lt;tt&gt;first&lt;/tt&gt; to the &lt;tt&gt;last&lt;/tt&gt; need to be updated.&lt;/p&gt;
&lt;p&gt;Note that this signal must be emitted explicitly when reimplementing the &lt;a href=&quot;QSqlQueryModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;If you are changing the number of columns or rows you don't need to emit this signal, but use the begin/end functions.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.Orientation orientation)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSqlTableModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)&quot;&gt;&lt;tt&gt;headerData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSqlQueryModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setHeaderData&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSqlRelationalTableModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void layoutAboutToBeChanged()" doc="/**
&lt;p&gt;This signal is emitted just before the layout of a model is changed. Components connected to this signal use it to adapt to changes in the model's layout.&lt;/p&gt;
&lt;p&gt;Subclasses should update any persistent model indexes after emitting &lt;a href=&quot;QSqlRelationalTableModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSqlRelationalTableModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;changePersistentIndex&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void layoutChanged()" doc="/**
&lt;p&gt;This signal is emitted whenever the layout of items exposed by the model has changed; for example, when the model has been sorted. When this signal is received by a view, it should update the layout of items to reflect this change.&lt;/p&gt;
&lt;p&gt;When subclassing &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#QAbstractItemModel(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;%2E%2E/gui/QAbstractProxyModel.html&quot;&gt;&lt;tt&gt;QAbstractProxyModel&lt;/tt&gt;&lt;/a&gt;, ensure that you emit &lt;a href=&quot;QSqlRelationalTableModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt; before changing the order of items or altering the structure of the data you expose to views, and emit &lt;a href=&quot;QSqlRelationalTableModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt; after changing the layout.&lt;/p&gt;
&lt;p&gt;Subclasses should update any persistent model indexes before emitting &lt;a href=&quot;QSqlRelationalTableModel.html#layoutChanged()&quot;&gt;&lt;tt&gt;layoutChanged&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSqlRelationalTableModel.html#layoutAboutToBeChanged()&quot;&gt;&lt;tt&gt;layoutAboutToBeChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSqlRelationalTableModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;dataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSqlRelationalTableModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)&quot;&gt;&lt;tt&gt;headerDataChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;changePersistentIndex&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void primeInsert(int row, com.trolltech.qt.sql.QSqlRecord record)" doc="/**
&lt;p&gt;This signal is emitted when an insertion is initiated in the given &lt;tt&gt;row&lt;/tt&gt;. The &lt;tt&gt;record&lt;/tt&gt; parameter can be written to (since it is a reference), for example to populate some fields with default values.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int row, com.trolltech.qt.sql.QSqlRecord record)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int row)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QSqlRelationalTableModel(com.trolltech.qt.core.QObject parent, com.trolltech.qt.sql.QSqlDatabase db)" doc="/**
&lt;p&gt;Creates an empty &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt; and sets the parent to &lt;tt&gt;parent&lt;/tt&gt; and the database connection to &lt;tt&gt;db&lt;/tt&gt;. If &lt;tt&gt;db&lt;/tt&gt; is not valid, the default database connection will be used.&lt;/p&gt;
 */"/>
    <method name="public QSqlRelationalTableModel(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, QSqlDatabase()). */"/>
    <method name="public QSqlRelationalTableModel()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt;(0, QSqlDatabase()). */"/>
    <method name="public final com.trolltech.qt.sql.QSqlRelation relation(int column)" doc="/**
&lt;p&gt;Returns the relation for the column &lt;tt&gt;column&lt;/tt&gt;, or an invalid relation if no relation is set.&lt;/p&gt;

@see &lt;a href=&quot;QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)&quot;&gt;&lt;tt&gt;setRelation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSqlRelation::isValid&lt;/tt&gt; */"/>
    <method name="public void clear()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object data(com.trolltech.qt.core.QModelIndex item, int role)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSqlRelationalTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.Object data(com.trolltech.qt.core.QModelIndex item)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlRelationalTableModel.html#data(com.trolltech.qt.core.QModelIndex, int)&quot;&gt;data&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, Qt::DisplayRole). */"/>
    <method name="protected boolean insertRowIntoTable(com.trolltech.qt.sql.QSqlRecord values)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected java.lang.String orderByClause()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.sql.QSqlTableModel relationModel(int column)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QSqlTableModel.html#QSqlTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlTableModel&lt;/tt&gt;&lt;/a&gt; object for accessing the table for which &lt;tt&gt;column&lt;/tt&gt; is a foreign key, or 0 if there is no relation for the given &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The returned object is owned by the &lt;a href=&quot;QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)&quot;&gt;&lt;tt&gt;QSqlRelationalTableModel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)&quot;&gt;&lt;tt&gt;setRelation&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlRelationalTableModel.html#relation(int)&quot;&gt;&lt;tt&gt;relation&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean removeColumns(int column, int count, com.trolltech.qt.core.QModelIndex parent)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final boolean removeColumns(int column, int count)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlRelationalTableModel.html#removeColumns(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;removeColumns&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;column&lt;/tt&gt;, &lt;tt&gt;count&lt;/tt&gt;, QModelIndex()). */"/>
    <method name="public void revertRow(int row)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean select()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected java.lang.String selectStatement()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean setData(com.trolltech.qt.core.QModelIndex item, java.lang.Object value, int role)" doc="/**
&lt;p&gt;Sets the data for the &lt;tt&gt;role&lt;/tt&gt; in the item with the specified &lt;tt&gt;item&lt;/tt&gt; to the &lt;tt&gt;value&lt;/tt&gt; given. Depending on the edit strategy, the value might be applied to the database at once, or it may be cached in the model.&lt;/p&gt;
&lt;p&gt;Returns true if the value could be set, or false on error (for example, if &lt;tt&gt;item&lt;/tt&gt; is out of bounds).&lt;/p&gt;
&lt;p&gt;For relational columns, &lt;tt&gt;value&lt;/tt&gt; must be the index, not the display value.&lt;/p&gt;

@see &lt;a href=&quot;QSqlTableModel.html#editStrategy()&quot;&gt;&lt;tt&gt;editStrategy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlRelationalTableModel.html#data(com.trolltech.qt.core.QModelIndex, int)&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlTableModel.html#submit()&quot;&gt;&lt;tt&gt;submit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlRelationalTableModel.html#revertRow(int)&quot;&gt;&lt;tt&gt;revertRow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean setData(com.trolltech.qt.core.QModelIndex item, java.lang.Object value)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlRelationalTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, &lt;tt&gt;value&lt;/tt&gt;, Qt::EditRole). */"/>
    <method name="public void setRelation(int column, com.trolltech.qt.sql.QSqlRelation relation)" doc="/**
&lt;p&gt;Lets the specified &lt;tt&gt;column&lt;/tt&gt; be a foreign index specified by &lt;tt&gt;relation&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;        model-&amp;gt;setTable(&amp;quot;employee&amp;quot;);

        model-&amp;gt;setRelation(2, QSqlRelation(&amp;quot;city&amp;quot;, &amp;quot;id&amp;quot;, &amp;quot;name&amp;quot;));&lt;/pre&gt;
&lt;p&gt;The &lt;a href=&quot;QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)&quot;&gt;&lt;tt&gt;setRelation&lt;/tt&gt;&lt;/a&gt; call specifies that column 2 in table &lt;tt&gt;employee&lt;/tt&gt; is a foreign key that maps with field &lt;tt&gt;id&lt;/tt&gt; of table &lt;tt&gt;city&lt;/tt&gt;, and that the view should present the &lt;tt&gt;city&lt;/tt&gt;'s &lt;tt&gt;name&lt;/tt&gt; field to the user.&lt;/p&gt;
&lt;p&gt;Note: The table's primary key may not contain a relation to another table.&lt;/p&gt;

@see &lt;a href=&quot;QSqlRelationalTableModel.html#relation(int)&quot;&gt;&lt;tt&gt;relation&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void setTable(java.lang.String tableName)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected boolean updateRowInTable(int row, com.trolltech.qt.sql.QSqlRecord values)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
</class>
