<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:07:14 CEST 2007 --> <TITLE> QSqlRelationalTableModel </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.sql.QSqlRelationalTableModel class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QSqlRelationalTableModel"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/sql/QSqlRelation.html" title="class in com.trolltech.qt.sql"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/sql/QSqlResult.html" title="class in com.trolltech.qt.sql"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/sql/QSqlRelationalTableModel.html" target="_top"><B>FRAMES</B></A> <A HREF="QSqlRelationalTableModel.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.sql.QSqlTableModel">NESTED</A> | <A HREF="#fields_inherited_from_class_com.trolltech.qt.sql.QSqlTableModel">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.trolltech.qt.sql</FONT> <BR> Class QSqlRelationalTableModel</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QAbstractItemModel</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html" title="class in com.trolltech.qt.gui">com.trolltech.qt.gui.QAbstractTableModel</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html" title="class in com.trolltech.qt.sql">com.trolltech.qt.sql.QSqlQueryModel</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">com.trolltech.qt.sql.QSqlTableModel</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.sql.QSqlRelationalTableModel</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>QSqlRelationalTableModel</B><DT>extends <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></DL> </PRE> <P> <p>The <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a> class provides an editable data model for a single database table, with foreign key support.</p> <p><a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a> acts like <a href="QSqlTableModel.html#QSqlTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlTableModel</tt></a>, but allows columns to be set as foreign keys into other database tables.</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/noforeignkeys.png" /></td><td><img src="%2E%2E/images/foreignkeys.png" /></td></tr> </table></p> <p>The screenshot on the left shows a plain <a href="QSqlTableModel.html#QSqlTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlTableModel</tt></a> in a <a href="%2E%2E/gui/QTableView.html"><tt>QTableView</tt></a>. Foreign keys (<tt>city</tt> and <tt>country</tt>) aren't resolved to human-readable values. The screenshot on the right shows a <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a>, with foreign keys resolved into human-readable text strings.</p> <p>The following code snippet shows how the <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a> was set up:</p> <pre> model->setTable("employee"); model->setRelation(2, QSqlRelation("city", "id", "name")); model->setRelation(3, QSqlRelation("country", "id", "name"));</pre> <p>The <a href="QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)"><tt>setRelation</tt></a> function calls establish a relationship between two tables. The first call specifies that column 2 in table <tt>employee</tt> is a foreign key that maps with field <tt>id</tt> of table <tt>city</tt>, and that the view should present the <tt>city</tt>'s <tt>name</tt> field to the user. The second call does something similar with column 3.</p> <p>If you use a read-write <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a>, 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:</p> <pre> QTableView *view = new QTableView; view->setModel(model); view->setItemDelegate(new QSqlRelationalDelegate(view));</pre> <p>The sql/relationaltablemodel</tt> example illustrates how to use <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a> in conjunction with QSqlRelationalDelegate to provide tables with foreigh key support.</p> <p align="center"><img src="%2E%2E/images/relationaltable.png" /></p><p>Notes:</p> <ul> <li>The table must have a primary key declared.</li> <li>The table's primary key may not contain a relation to another table.</li> <li>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.</li> </ul> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QSqlRelation.html"><tt>QSqlRelation</tt></a>, <tt>QSqlRelationalDelegate</tt>, <CODE>Table Model Example</tt></CODE></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.trolltech.qt.sql.QSqlTableModel"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.sql.<A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.EditStrategy.html" title="enum in com.trolltech.qt.sql">QSqlTableModel.EditStrategy</A></CODE></TD> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>></CODE></TD> </TR> </TABLE> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.trolltech.qt.sql.QSqlTableModel"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.trolltech.qt.sql.<A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#beforeDelete">beforeDelete</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#beforeInsert">beforeInsert</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#beforeUpdate">beforeUpdate</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#primeInsert">primeInsert</A></CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.trolltech.qt.core.QAbstractItemModel"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html" title="class in com.trolltech.qt.core">QAbstractItemModel</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#dataChanged">dataChanged</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#headerDataChanged">headerDataChanged</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#layoutAboutToBeChanged">layoutAboutToBeChanged</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#layoutChanged">layoutChanged</A></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#QSqlRelationalTableModel()">QSqlRelationalTableModel</A></B>()</CODE> <BR> Equivalent to <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a>(0, QSqlDatabase()).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject)">QSqlRelationalTableModel</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</CODE> <BR> Equivalent to <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a>(<tt>parent</tt>, QSqlDatabase()).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)">QSqlRelationalTableModel</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent, <A HREF="../../../../com/trolltech/qt/sql/QSqlDatabase.html" title="class in com.trolltech.qt.sql">QSqlDatabase</A> db)</CODE> <BR> Creates an empty <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a> and sets the parent to <tt>parent</tt> and the database connection to <tt>db</tt>.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#clear()">clear</A></B>()</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.Object</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#data(com.trolltech.qt.core.QModelIndex, int)">data</A></B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A> item, int role)</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html" title="class in com.trolltech.qt.sql">QSqlRelationalTableModel</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</CODE> <BR> This function returns the QSqlRelationalTableModel instance pointed to by nativePointer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#insertRowIntoTable(com.trolltech.qt.sql.QSqlRecord)">insertRowIntoTable</A></B>(<A HREF="../../../../com/trolltech/qt/sql/QSqlRecord.html" title="class in com.trolltech.qt.sql">QSqlRecord</A> values)</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#orderByClause()">orderByClause</A></B>()</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/sql/QSqlRelation.html" title="class in com.trolltech.qt.sql">QSqlRelation</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#relation(int)">relation</A></B>(int column)</CODE> <BR> Returns the relation for the column <tt>column</tt>, or an invalid relation if no relation is set.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#relationModel(int)">relationModel</A></B>(int column)</CODE> <BR> Returns a <a href="QSqlTableModel.html#QSqlTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlTableModel</tt></a> object for accessing the table for which <tt>column</tt> is a foreign key, or 0 if there is no relation for the given <tt>column</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#removeColumns(int, int, com.trolltech.qt.core.QModelIndex)">removeColumns</A></B>(int column, int count, <A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A> parent)</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#revertRow(int)">revertRow</A></B>(int row)</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#select()">select</A></B>()</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#selectStatement()">selectStatement</A></B>()</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)">setData</A></B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A> item, java.lang.Object value, int role)</CODE> <BR> Sets the data for the <tt>role</tt> in the item with the specified <tt>item</tt> to the <tt>value</tt> given.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)">setRelation</A></B>(int column, <A HREF="../../../../com/trolltech/qt/sql/QSqlRelation.html" title="class in com.trolltech.qt.sql">QSqlRelation</A> relation)</CODE> <BR> Lets the specified <tt>column</tt> be a foreign index specified by <tt>relation</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#setTable(java.lang.String)">setTable</A></B>(java.lang.String tableName)</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html#updateRowInTable(int, com.trolltech.qt.sql.QSqlRecord)">updateRowInTable</A></B>(int row, <A HREF="../../../../com/trolltech/qt/sql/QSqlRecord.html" title="class in com.trolltech.qt.sql">QSqlRecord</A> values)</CODE> <BR> This function is reimplemented for internal reasons.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.sql.QSqlTableModel"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.sql.<A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#database()">database</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#deleteRowFromTable(int)">deleteRowFromTable</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#editStrategy()">editStrategy</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#fieldIndex(java.lang.String)">fieldIndex</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#filter()">filter</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#flags(com.trolltech.qt.core.QModelIndex)">flags</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)">headerData</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#indexInQuery(com.trolltech.qt.core.QModelIndex)">indexInQuery</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#insertRecord(int, com.trolltech.qt.sql.QSqlRecord)">insertRecord</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#insertRows(int, int, com.trolltech.qt.core.QModelIndex)">insertRows</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#isDirty(com.trolltech.qt.core.QModelIndex)">isDirty</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#primaryKey()">primaryKey</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#removeRows(int, int, com.trolltech.qt.core.QModelIndex)">removeRows</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#revert()">revert</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#revertAll()">revertAll</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#rowCount(com.trolltech.qt.core.QModelIndex)">rowCount</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setEditStrategy(com.trolltech.qt.sql.QSqlTableModel.EditStrategy)">setEditStrategy</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setFilter(java.lang.String)">setFilter</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setPrimaryKey(com.trolltech.qt.sql.QSqlIndex)">setPrimaryKey</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setQuery(com.trolltech.qt.sql.QSqlQuery)">setQuery</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setRecord(int, com.trolltech.qt.sql.QSqlRecord)">setRecord</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setSort(int, com.trolltech.qt.core.Qt.SortOrder)">setSort</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#sort(int, com.trolltech.qt.core.Qt.SortOrder)">sort</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#submit()">submit</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#submitAll()">submitAll</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#tableName()">tableName</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.sql.QSqlQueryModel"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.sql.<A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html" title="class in com.trolltech.qt.sql">QSqlQueryModel</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#canFetchMore(com.trolltech.qt.core.QModelIndex)">canFetchMore</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#columnCount(com.trolltech.qt.core.QModelIndex)">columnCount</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#fetchMore(com.trolltech.qt.core.QModelIndex)">fetchMore</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#insertColumns(int, int, com.trolltech.qt.core.QModelIndex)">insertColumns</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#lastError()">lastError</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#query()">query</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#queryChange()">queryChange</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#record()">record</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#record(int)">record</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)">setHeaderData</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#setLastError(com.trolltech.qt.sql.QSqlError)">setLastError</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#setQuery(java.lang.String)">setQuery</A>, <A HREF="../../../../com/trolltech/qt/sql/QSqlQueryModel.html#setQuery(java.lang.String, com.trolltech.qt.sql.QSqlDatabase)">setQuery</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.gui.QAbstractTableModel"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.gui.<A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html" title="class in com.trolltech.qt.gui">QAbstractTableModel</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html#dropMimeData(com.trolltech.qt.gui.QMimeData, com.trolltech.qt.core.Qt.DropAction, int, int, com.trolltech.qt.core.QModelIndex)">dropMimeData</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html#hasChildren(com.trolltech.qt.core.QModelIndex)">hasChildren</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html#index(int, int, com.trolltech.qt.core.QModelIndex)">index</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html#parent(com.trolltech.qt.core.QModelIndex)">parent</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.core.QAbstractItemModel"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html" title="class in com.trolltech.qt.core">QAbstractItemModel</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#beginInsertColumns(com.trolltech.qt.core.QModelIndex, int, int)">beginInsertColumns</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#beginInsertRows(com.trolltech.qt.core.QModelIndex, int, int)">beginInsertRows</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#beginRemoveColumns(com.trolltech.qt.core.QModelIndex, int, int)">beginRemoveColumns</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#beginRemoveRows(com.trolltech.qt.core.QModelIndex, int, int)">beginRemoveRows</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#buddy(com.trolltech.qt.core.QModelIndex)">buddy</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)">changePersistentIndex</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#changePersistentIndexList(java.util.List, java.util.List)">changePersistentIndexList</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#columnCount()">columnCount</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#createIndex(int, int)">createIndex</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#createIndex(int, int, int)">createIndex</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#createIndex(int, int, com.trolltech.qt.QNativePointer)">createIndex</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#data(int, int)">data</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#data(int, int, int)">data</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#data(com.trolltech.qt.core.QModelIndex)">data</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#decodeData(int, int, com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QDataStream)">decodeData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#encodeData(java.util.List, com.trolltech.qt.core.QDataStream)">encodeData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#endInsertColumns()">endInsertColumns</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#endInsertRows()">endInsertRows</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#endRemoveColumns()">endRemoveColumns</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#endRemoveRows()">endRemoveRows</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#hasChildren()">hasChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#hasIndex(int, int)">hasIndex</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#hasIndex(int, int, com.trolltech.qt.core.QModelIndex)">hasIndex</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation)">headerData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#index(int, int)">index</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#insertColumn(int)">insertColumn</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#insertColumn(int, com.trolltech.qt.core.QModelIndex)">insertColumn</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#insertColumns(int, int)">insertColumns</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#insertRow(int)">insertRow</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#insertRow(int, com.trolltech.qt.core.QModelIndex)">insertRow</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#insertRows(int, int)">insertRows</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#itemData(com.trolltech.qt.core.QModelIndex)">itemData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#match(com.trolltech.qt.core.QModelIndex, int, java.lang.Object)">match</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#match(com.trolltech.qt.core.QModelIndex, int, java.lang.Object, int)">match</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#match(com.trolltech.qt.core.QModelIndex, int, java.lang.Object, int, com.trolltech.qt.core.Qt.MatchFlag...)">match</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#match(com.trolltech.qt.core.QModelIndex, int, java.lang.Object, int, com.trolltech.qt.core.Qt.MatchFlags)">match</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#mimeData(java.util.List)">mimeData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#mimeTypes()">mimeTypes</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#persistentIndexList()">persistentIndexList</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#removeColumn(int)">removeColumn</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#removeColumn(int, com.trolltech.qt.core.QModelIndex)">removeColumn</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#removeColumns(int, int)">removeColumns</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#removeRow(int)">removeRow</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#removeRow(int, com.trolltech.qt.core.QModelIndex)">removeRow</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#removeRows(int, int)">removeRows</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#reset()">reset</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#rowCount()">rowCount</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#setData(int, int, java.lang.Object)">setData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#setData(int, int, java.lang.Object, int)">setData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object)">setData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object)">setHeaderData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#setItemData(com.trolltech.qt.core.QModelIndex, java.util.SortedMap)">setItemData</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#setSupportedDragActions(com.trolltech.qt.core.Qt.DropAction...)">setSupportedDragActions</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#setSupportedDragActions(com.trolltech.qt.core.Qt.DropActions)">setSupportedDragActions</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#sibling(int, int, com.trolltech.qt.core.QModelIndex)">sibling</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#sort(int)">sort</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#span(com.trolltech.qt.core.QModelIndex)">span</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#supportedDragActions()">supportedDragActions</A>, <A HREF="../../../../com/trolltech/qt/core/QAbstractItemModel.html#supportedDropActions()">supportedDropActions</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="QSqlRelationalTableModel(com.trolltech.qt.core.QObject)"><!-- --></A><H3> QSqlRelationalTableModel</H3> <PRE> public <B>QSqlRelationalTableModel</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent)</PRE> <DL> <DD><p>Equivalent to <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a>(<tt>parent</tt>, QSqlDatabase()). <P> </DL> <HR> <A NAME="QSqlRelationalTableModel()"><!-- --></A><H3> QSqlRelationalTableModel</H3> <PRE> public <B>QSqlRelationalTableModel</B>()</PRE> <DL> <DD><p>Equivalent to <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a>(0, QSqlDatabase()). <P> </DL> <HR> <A NAME="QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><!-- --></A><H3> QSqlRelationalTableModel</H3> <PRE> public <B>QSqlRelationalTableModel</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> parent, <A HREF="../../../../com/trolltech/qt/sql/QSqlDatabase.html" title="class in com.trolltech.qt.sql">QSqlDatabase</A> db)</PRE> <DL> <DD><p>Creates an empty <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a> and sets the parent to <tt>parent</tt> and the database connection to <tt>db</tt>. If <tt>db</tt> is not valid, the default database connection will be used.</p> <P> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="relation(int)"><!-- --></A><H3> relation</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/sql/QSqlRelation.html" title="class in com.trolltech.qt.sql">QSqlRelation</A> <B>relation</B>(int column)</PRE> <DL> <DD><p>Returns the relation for the column <tt>column</tt>, or an invalid relation if no relation is set.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)"><tt>setRelation</tt></a>, <tt>QSqlRelation::isValid</tt></DL> </DD> </DL> <HR> <A NAME="clear()"><!-- --></A><H3> clear</H3> <PRE> public void <B>clear</B>()</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#clear()">clear</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="data(com.trolltech.qt.core.QModelIndex, int)"><!-- --></A><H3> data</H3> <PRE> public java.lang.Object <B>data</B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A> item, int role)</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#data(com.trolltech.qt.core.QModelIndex, int)">data</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlRelationalTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)"><tt>setData</tt></a></DL> </DD> </DL> <HR> <A NAME="insertRowIntoTable(com.trolltech.qt.sql.QSqlRecord)"><!-- --></A><H3> insertRowIntoTable</H3> <PRE> protected boolean <B>insertRowIntoTable</B>(<A HREF="../../../../com/trolltech/qt/sql/QSqlRecord.html" title="class in com.trolltech.qt.sql">QSqlRecord</A> values)</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#insertRowIntoTable(com.trolltech.qt.sql.QSqlRecord)">insertRowIntoTable</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlQueryModel.html#lastError()"><tt>lastError</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#insertRow(int, com.trolltech.qt.core.QModelIndex)"><tt>insertRow</tt></a>, <a href="QSqlTableModel.html#insertRows(int, int, com.trolltech.qt.core.QModelIndex)"><tt>insertRows</tt></a></DL> </DD> </DL> <HR> <A NAME="orderByClause()"><!-- --></A><H3> orderByClause</H3> <PRE> protected java.lang.String <B>orderByClause</B>()</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#orderByClause()">orderByClause</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlTableModel.html#setSort(int, com.trolltech.qt.core.Qt.SortOrder)"><tt>setSort</tt></a>, <a href="QSqlTableModel.html#selectStatement()"><tt>selectStatement</tt></a></DL> </DD> </DL> <HR> <A NAME="relationModel(int)"><!-- --></A><H3> relationModel</H3> <PRE> public <A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A> <B>relationModel</B>(int column)</PRE> <DL> <DD><p>Returns a <a href="QSqlTableModel.html#QSqlTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlTableModel</tt></a> object for accessing the table for which <tt>column</tt> is a foreign key, or 0 if there is no relation for the given <tt>column</tt>.</p> <p>The returned object is owned by the <a href="QSqlRelationalTableModel.html#QSqlRelationalTableModel(com.trolltech.qt.core.QObject, com.trolltech.qt.sql.QSqlDatabase)"><tt>QSqlRelationalTableModel</tt></a>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)"><tt>setRelation</tt></a>, <a href="QSqlRelationalTableModel.html#relation(int)"><tt>relation</tt></a></DL> </DD> </DL> <HR> <A NAME="removeColumns(int, int, com.trolltech.qt.core.QModelIndex)"><!-- --></A><H3> removeColumns</H3> <PRE> public boolean <B>removeColumns</B>(int column, int count, <A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A> parent)</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#removeColumns(int, int, com.trolltech.qt.core.QModelIndex)">removeColumns</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlTableModel.html#removeRows(int, int, com.trolltech.qt.core.QModelIndex)"><tt>removeRows</tt></a></DL> </DD> </DL> <HR> <A NAME="revertRow(int)"><!-- --></A><H3> revertRow</H3> <PRE> public void <B>revertRow</B>(int row)</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#revertRow(int)">revertRow</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlTableModel.html#revert()"><tt>revert</tt></a>, <a href="QSqlTableModel.html#revertAll()"><tt>revertAll</tt></a>, <a href="QSqlTableModel.html#submit()"><tt>submit</tt></a>, <a href="QSqlTableModel.html#submitAll()"><tt>submitAll</tt></a></DL> </DD> </DL> <HR> <A NAME="select()"><!-- --></A><H3> select</H3> <PRE> public boolean <B>select</B>()</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#select()">select</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlTableModel.html#setTable(java.lang.String)"><tt>setTable</tt></a>, <a href="QSqlTableModel.html#setFilter(java.lang.String)"><tt>setFilter</tt></a>, <a href="QSqlTableModel.html#selectStatement()"><tt>selectStatement</tt></a></DL> </DD> </DL> <HR> <A NAME="selectStatement()"><!-- --></A><H3> selectStatement</H3> <PRE> protected java.lang.String <B>selectStatement</B>()</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#selectStatement()">selectStatement</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlTableModel.html#filter()"><tt>filter</tt></a>, <a href="QSqlTableModel.html#orderByClause()"><tt>orderByClause</tt></a></DL> </DD> </DL> <HR> <A NAME="setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)"><!-- --></A><H3> setData</H3> <PRE> public boolean <B>setData</B>(<A HREF="../../../../com/trolltech/qt/core/QModelIndex.html" title="class in com.trolltech.qt.core">QModelIndex</A> item, java.lang.Object value, int role)</PRE> <DL> <DD><p>Sets the data for the <tt>role</tt> in the item with the specified <tt>item</tt> to the <tt>value</tt> given. Depending on the edit strategy, the value might be applied to the database at once, or it may be cached in the model.</p> <p>Returns true if the value could be set, or false on error (for example, if <tt>item</tt> is out of bounds).</p> <p>For relational columns, <tt>value</tt> must be the index, not the display value.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)">setData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlTableModel.html#editStrategy()"><tt>editStrategy</tt></a>, <a href="QSqlRelationalTableModel.html#data(com.trolltech.qt.core.QModelIndex, int)"><tt>data</tt></a>, <a href="QSqlTableModel.html#submit()"><tt>submit</tt></a>, <a href="QSqlRelationalTableModel.html#revertRow(int)"><tt>revertRow</tt></a></DL> </DD> </DL> <HR> <A NAME="setRelation(int, com.trolltech.qt.sql.QSqlRelation)"><!-- --></A><H3> setRelation</H3> <PRE> public void <B>setRelation</B>(int column, <A HREF="../../../../com/trolltech/qt/sql/QSqlRelation.html" title="class in com.trolltech.qt.sql">QSqlRelation</A> relation)</PRE> <DL> <DD><p>Lets the specified <tt>column</tt> be a foreign index specified by <tt>relation</tt>.</p> <p>Example:</p> <pre> model->setTable("employee"); model->setRelation(2, QSqlRelation("city", "id", "name"));</pre> <p>The <a href="QSqlRelationalTableModel.html#setRelation(int, com.trolltech.qt.sql.QSqlRelation)"><tt>setRelation</tt></a> call specifies that column 2 in table <tt>employee</tt> is a foreign key that maps with field <tt>id</tt> of table <tt>city</tt>, and that the view should present the <tt>city</tt>'s <tt>name</tt> field to the user.</p> <p>Note: The table's primary key may not contain a relation to another table.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlRelationalTableModel.html#relation(int)"><tt>relation</tt></a></DL> </DD> </DL> <HR> <A NAME="setTable(java.lang.String)"><!-- --></A><H3> setTable</H3> <PRE> public void <B>setTable</B>(java.lang.String tableName)</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#setTable(java.lang.String)">setTable</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><a href="QSqlTableModel.html#select()"><tt>select</tt></a>, <a href="QSqlTableModel.html#setFilter(java.lang.String)"><tt>setFilter</tt></a>, <a href="QSqlQueryModel.html#lastError()"><tt>lastError</tt></a></DL> </DD> </DL> <HR> <A NAME="updateRowInTable(int, com.trolltech.qt.sql.QSqlRecord)"><!-- --></A><H3> updateRowInTable</H3> <PRE> protected boolean <B>updateRowInTable</B>(int row, <A HREF="../../../../com/trolltech/qt/sql/QSqlRecord.html" title="class in com.trolltech.qt.sql">QSqlRecord</A> values)</PRE> <DL> <DD><p>This function is reimplemented for internal reasons.</p> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html#updateRowInTable(int, com.trolltech.qt.sql.QSqlRecord)">updateRowInTable</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/sql/QSqlTableModel.html" title="class in com.trolltech.qt.sql">QSqlTableModel</A></CODE></DL> </DD> <DD><DL> <DT><B>See Also:</B><DD><tt>QSqlRecord::isGenerated</tt>, <a href="QSqlTableModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)"><tt>setData</tt></a></DL> </DD> </DL> <HR> <A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3> fromNativePointer</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/sql/QSqlRelationalTableModel.html" title="class in com.trolltech.qt.sql">QSqlRelationalTableModel</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</PRE> <DL> <DD>This function returns the QSqlRelationalTableModel instance pointed to by nativePointer <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/sql/QSqlRelation.html" title="class in com.trolltech.qt.sql"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/sql/QSqlResult.html" title="class in com.trolltech.qt.sql"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/sql/QSqlRelationalTableModel.html" target="_top"><B>FRAMES</B></A> <A HREF="QSqlRelationalTableModel.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.sql.QSqlTableModel">NESTED</A> | <A HREF="#fields_inherited_from_class_com.trolltech.qt.sql.QSqlTableModel">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>