1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3sqlrecordinfo.qdoc -->
<title>Qt 4.8: Q3SqlRecordInfo Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qt3support.html">Qt3Support</a></li>
<li>Q3SqlRecordInfo</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Q3SqlRecordInfo Class Reference</h1>
<!-- $$$Q3SqlRecordInfo-brief -->
<p>The Q3SqlRecordInfo class encapsulates a set of database field meta data. <a href="#details">More...</a></p>
<!-- @@@Q3SqlRecordInfo -->
<pre class="cpp"> <span class="preprocessor">#include <Q3SqlRecordInfo></span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qsqlrecordinfo">Porting to Qt 4</a> for more information.</p>
<ul>
<li><a href="q3sqlrecordinfo-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3sqlrecordinfo.html#Q3SqlRecordInfo">Q3SqlRecordInfo</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3sqlrecordinfo.html#Q3SqlRecordInfo-2">Q3SqlRecordInfo</a></b> ( const Q3SqlFieldInfoList & <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3sqlrecordinfo.html#Q3SqlRecordInfo-3">Q3SqlRecordInfo</a></b> ( const QSqlRecord & <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> size_type </td><td class="memItemRight bottomAlign"><b><a href="q3sqlrecordinfo.html#contains">contains</a></b> ( const QString & <i>fieldName</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3SqlFieldInfo </td><td class="memItemRight bottomAlign"><b><a href="q3sqlrecordinfo.html#find">find</a></b> ( const QString & <i>fieldName</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSqlRecord </td><td class="memItemRight bottomAlign"><b><a href="q3sqlrecordinfo.html#toRecord">toRecord</a></b> () const</td></tr>
</table>
<a name="details"></a>
<!-- $$$Q3SqlRecordInfo-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3SqlRecordInfo class encapsulates a set of database field meta data.</p>
<p>This class is a list that holds a set of database field meta data. Use <a href="q3sqlrecordinfo.html#contains">contains</a>() to see if a given field name exists in the record, and use <a href="q3sqlrecordinfo.html#find">find</a>() to get a <a href="porting4.html#qsqlfieldinfo">QSqlFieldInfo</a> record for a named field.</p>
</div>
<p><b>See also </b><a href="q3sqlfieldinfo.html">Q3SqlFieldInfo</a>.</p>
<!-- @@@Q3SqlRecordInfo -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3SqlRecordInfo[overload1]$$$Q3SqlRecordInfo -->
<h3 class="fn"><a name="Q3SqlRecordInfo"></a>Q3SqlRecordInfo::<span class="name">Q3SqlRecordInfo</span> ()</h3>
<p>Constructs an empty record info object.</p>
<!-- @@@Q3SqlRecordInfo -->
<!-- $$$Q3SqlRecordInfo$$$Q3SqlRecordInfoconstQ3SqlFieldInfoList& -->
<h3 class="fn"><a name="Q3SqlRecordInfo-2"></a>Q3SqlRecordInfo::<span class="name">Q3SqlRecordInfo</span> ( const <span class="type">Q3SqlFieldInfoList</span> & <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@Q3SqlRecordInfo -->
<!-- $$$Q3SqlRecordInfo$$$Q3SqlRecordInfoconstQSqlRecord& -->
<h3 class="fn"><a name="Q3SqlRecordInfo-3"></a>Q3SqlRecordInfo::<span class="name">Q3SqlRecordInfo</span> ( const <span class="type"><a href="qsqlrecord.html">QSqlRecord</a></span> & <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@Q3SqlRecordInfo -->
<!-- $$$contains[overload1]$$$containsconstQString& -->
<h3 class="fn"><a name="contains"></a><span class="type">size_type</span> Q3SqlRecordInfo::<span class="name">contains</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>fieldName</i> ) const</h3>
<p>Returns the number of times a field called <i>fieldName</i> occurs in the record. Returns 0 if no field by that name could be found.</p>
<!-- @@@contains -->
<!-- $$$find[overload1]$$$findconstQString& -->
<h3 class="fn"><a name="find"></a><span class="type"><a href="q3sqlfieldinfo.html">Q3SqlFieldInfo</a></span> Q3SqlRecordInfo::<span class="name">find</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>fieldName</i> ) const</h3>
<p>Returns a <a href="porting4.html#qsqlfieldinfo">QSqlFieldInfo</a> object for the first field in the record which has the field name <i>fieldName</i>. If no matching field is found then an empty <a href="porting4.html#qsqlfieldinfo">QSqlFieldInfo</a> object is returned.</p>
<!-- @@@find -->
<!-- $$$toRecord[overload1]$$$toRecord -->
<h3 class="fn"><a name="toRecord"></a><span class="type"><a href="qsqlrecord.html">QSqlRecord</a></span> Q3SqlRecordInfo::<span class="name">toRecord</span> () const</h3>
<p>Returns an empty <a href="qsqlrecord.html">QSqlRecord</a> based on the field information in this <a href="q3sqlrecordinfo.html" class="compat">Q3SqlRecordInfo</a>.</p>
<!-- @@@toRecord -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|