QtSql/qsqlrecord.h Source File
Go to the documentation of this file.
56 class QSqlRecordPrivate;
62 QSqlRecord(
const QSqlRecord& other);
63 QSqlRecord&
operator=(
const QSqlRecord& other);
66 bool operator==(
const QSqlRecord &other)
const;
69 QVariant
value(
int i)
const;
71 void setValue(
int i,
const QVariant& val);
72 void setValue(
const QString&
name,
const QVariant& val);
76 bool isNull(
int i)
const;
82 QSqlField field(
int i)
const;
85 bool isGenerated(
int i)
const;
87 void setGenerated(
const QString&
name,
bool generated);
88 void setGenerated(
int i,
bool generated);
91 QT3_SUPPORT
const QSqlField* fieldPtr(
int i)
const;
92 QT3_SUPPORT
const QSqlField* fieldPtr(
const QString&
name)
const;
93 inline QT3_SUPPORT
int position(
const QString&
name)
const {
return indexOf(name); }
96 QT3_SUPPORT QStringList toStringList(
const QString& prefix =
QString())
const;
99 void append(
const QSqlField& field);
100 void replace(
int pos,
const QSqlField& field);
101 void insert(
int pos,
const QSqlField& field);
102 void remove(
int pos);
104 bool isEmpty()
const;
112 QSqlRecordPrivate* d;
115 #ifndef QT_NO_DEBUG_STREAM
123 #endif // QSQLRECORD_H
Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlRecord &)
QSqlDatabase & operator=(const QSqlDatabase &other)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
static bool contains(const QString &connectionName=QLatin1String(defaultConnection))
GLuint GLuint GLsizei count
GLsizei const GLfloat * value
GLuint const GLchar * name
bool operator!=(const QSqlRecord &other) const