QtSql/qsqltablemodel.h Source File
Go to the documentation of this file.
42 #ifndef QSQLTABLEMODEL_H
43 #define QSQLTABLEMODEL_H
54 class QSqlTableModelPrivate;
70 virtual bool select();
72 virtual void setTable(
const QString &tableName);
85 virtual void setEditStrategy(EditStrategy strategy);
86 EditStrategy editStrategy()
const;
88 QSqlIndex primaryKey()
const;
90 int fieldIndex(
const QString &fieldName)
const;
104 bool insertRecord(
int row,
const QSqlRecord &record);
105 bool setRecord(
int row,
const QSqlRecord &record);
107 virtual void revertRow(
int row);
117 void primeInsert(
int row, QSqlRecord &record);
119 void beforeInsert(QSqlRecord &record);
120 void beforeUpdate(
int row, QSqlRecord &record);
121 void beforeDelete(
int row);
126 virtual bool updateRowInTable(
int row,
const QSqlRecord &
values);
127 virtual bool insertRowIntoTable(
const QSqlRecord &
values);
128 virtual bool deleteRowFromTable(
int row);
129 virtual QString orderByClause()
const;
130 virtual QString selectStatement()
const;
132 void setPrimaryKey(
const QSqlIndex &key);
141 #endif // QSQLTABLEMODEL_H
GLenum GLenum GLvoid * row
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLuint GLuint GLsizei count
GLsizei const GLfloat * value
GLenum GLenum GLvoid GLvoid * column
GLboolean GLenum GLenum GLvoid * values