Qt:Документация 4.3.2/q3sqlrecordinfo

Материал из Wiki.crossplatform.ru

(Различия между версиями)
Перейти к: навигация, поиск
Root (Обсуждение | вклад)
(Новая: {{Qt4.3.2_header}} =Q3SqlRecordInfo Class Reference<br /><sup><sup> [ Qt3Support module]</sup></sup>= The Q3SqlRecordInfo class encap...)

Текущая версия на 13:26, 29 января 2009

40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Q3SqlRecordInfo Class Reference
[ Qt3Support module]

The Q3SqlRecordInfo class encapsulates a set of database field meta data. Далее...

 #include <Q3SqlRecordInfo>

This class is part of the Qt 3 support library. It is provided to keep old source code working. Мы настоятельно не рекомендуем использовать этот класс в новом коде. See Porting to Qt 4 for more information.

Note to Qt Desktop Light Edition users: This class is only available in the Qt Desktop Edition.

[править] Открытые функции


[править] Подробное описание

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.

See also 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

Returns a 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

Returns an empty QSqlRecord based on the field information in this Q3SqlRecordInfo.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2