1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** All rights reserved.
|
---|
5 | ** Contact: Nokia Corporation ([email protected])
|
---|
6 | **
|
---|
7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
8 | **
|
---|
9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
10 | ** Commercial Usage
|
---|
11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
13 | ** Software or, alternatively, in accordance with the terms contained in a
|
---|
14 | ** written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Free Documentation License
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
20 | ** file.
|
---|
21 | **
|
---|
22 | ** If you have questions regarding the use of this file, please contact
|
---|
23 | ** Nokia at [email protected].
|
---|
24 | ** $QT_END_LICENSE$
|
---|
25 | **
|
---|
26 | ****************************************************************************/
|
---|
27 |
|
---|
28 | /*!
|
---|
29 | \class Q3SqlRecordInfo
|
---|
30 | \brief The Q3SqlRecordInfo class encapsulates a set of database field meta data.
|
---|
31 |
|
---|
32 | \compat
|
---|
33 |
|
---|
34 | This class is a list that holds a set of database field meta
|
---|
35 | data. Use contains() to see if a given field name exists in the
|
---|
36 | record, and use find() to get a QSqlFieldInfo record for a named
|
---|
37 | field.
|
---|
38 |
|
---|
39 | \sa Q3SqlFieldInfo
|
---|
40 | */
|
---|
41 |
|
---|
42 | /*!
|
---|
43 | \fn Q3SqlRecordInfo::Q3SqlRecordInfo()
|
---|
44 |
|
---|
45 | Constructs an empty record info object.
|
---|
46 | */
|
---|
47 |
|
---|
48 | /*!
|
---|
49 | \fn Q3SqlRecordInfo::Q3SqlRecordInfo(const Q3SqlFieldInfoList& other)
|
---|
50 | \fn Q3SqlRecordInfo::Q3SqlRecordInfo(const QSqlRecord& other)
|
---|
51 |
|
---|
52 | Constructs a copy of \a other.
|
---|
53 | */
|
---|
54 |
|
---|
55 | /*!
|
---|
56 | \fn size_type Q3SqlRecordInfo::contains(const QString& fieldName) const
|
---|
57 |
|
---|
58 | Returns the number of times a field called \a fieldName occurs in
|
---|
59 | the record. Returns 0 if no field by that name could be found.
|
---|
60 | */
|
---|
61 |
|
---|
62 | /*!
|
---|
63 | \fn Q3SqlFieldInfo Q3SqlRecordInfo::find(const QString& fieldName) const
|
---|
64 |
|
---|
65 | Returns a QSqlFieldInfo object for the first field in the record
|
---|
66 | which has the field name \a fieldName. If no matching field is
|
---|
67 | found then an empty QSqlFieldInfo object is returned.
|
---|
68 | */
|
---|
69 |
|
---|
70 | /*!
|
---|
71 | \fn QSqlRecord Q3SqlRecordInfo::toRecord() const
|
---|
72 |
|
---|
73 | Returns an empty QSqlRecord based on the field information
|
---|
74 | in this Q3SqlRecordInfo.
|
---|
75 | */
|
---|