Q3SqlRecordInfo Class

The Q3SqlRecordInfo class encapsulates a set of database field meta data. 更多...

頭: #include <Q3SqlRecordInfo>
繼承:

公共函數

Q3SqlRecordInfo ()
Q3SqlRecordInfo (const Q3SqlFieldInfoList & other )
Q3SqlRecordInfo (const QSqlRecord & other )
size_type contains (const QString & fieldName ) const
Q3SqlFieldInfo find (const QString & fieldName ) const
QSqlRecord toRecord () const

詳細描述

The Q3SqlRecordInfo class encapsulates a set of database field meta data.

This class is a list that holds a set of database field meta data. Use contains () to see if a given field name exists in the record, and use find () to get a QSqlFieldInfo record for a named field.

另請參閱 Q3SqlFieldInfo .

成員函數文檔編製

Q3SqlRecordInfo:: Q3SqlRecordInfo ()

Constructs an empty record info object.

Q3SqlRecordInfo:: Q3SqlRecordInfo (const Q3SqlFieldInfoList & other )

構造副本為 other .

Q3SqlRecordInfo:: Q3SqlRecordInfo (const QSqlRecord & other )

構造副本為 other .

size_type Q3SqlRecordInfo:: contains (const QString & fieldName ) const

Returns the number of times a field called fieldName occurs in the record. Returns 0 if no field by that name could be found.

Q3SqlFieldInfo Q3SqlRecordInfo:: find (const QString & fieldName ) const

返迴 QSqlFieldInfo object for the first field in the record which has the field name fieldName . If no matching field is found then an empty QSqlFieldInfo object is returned.

QSqlRecord Q3SqlRecordInfo:: toRecord () const

返迴空 QSqlRecord based on the field information in this Q3SqlRecordInfo .