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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467
|
<HTML>
<HEAD>
<TITLE>class toConnection</TITLE>
<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
<TABLE BORDER="0">
<TR><TD valign="top" align="left" cellspacing="10">
<h1>class toConnection</h1>
</TD>
<TD valign="top" align="right" colspan="1"> Represent a database connection in TOra. <small><A HREF="#longdesc">More...</A></small></TD></TR>
</TABLE>
<HR>
<TABLE BORDER="0">
<TR><TH>Definition</TH><TD><code>#include <<A HREF="toconnection_h.html">toconnection.h</A>></code></TD></TR>
<TR><TH><A HREF="full-list-toConnection.html">List of all Methods</A></TH></TR>
</TABLE>
</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Types</h4><ul><LI>class <A HREF="toConnection__exception.html">exception</A>
</LI>
<LI>struct <A HREF="toConnection__objectName.html">objectName</A>
</LI>
<LI>class <i><A HREF="toConnection__connectionImpl.html">connectionImpl</A></i>
</LI>
</ul><h4>Public Methods</h4><ul><LI> <b><A HREF="#ref35">toConnection</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &user,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &password,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &host,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &database,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &mode=QString::null,
bool cache=true)
</LI>
<LI> <b><A HREF="#ref36">toConnection</A></b> (const <A HREF="toConnection.html">toConnection</A> &conn)
</LI>
<LI>virtual <b><A HREF="#ref37">~toConnection</A></b> ()
</LI>
<LI>bool <b><A HREF="#ref38">closeWidgets</A></b> (void)
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <b><A HREF="#ref39">user</A></b> () const
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <b><A HREF="#ref40">password</A></b> () const
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <b><A HREF="#ref41">host</A></b> () const
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <b><A HREF="#ref42">database</A></b> () const
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <b><A HREF="#ref43">mode</A></b> () const
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <b><A HREF="#ref44">version</A></b> () const
</LI>
<LI>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <b><A HREF="#ref45">provider</A></b> () const
</LI>
<LI>virtual <A HREF="http://doc.trolltech.com/qstring.html">QString</A> <b><A HREF="#ref46">description</A></b> (bool version=true) const
</LI>
<LI>void <b><A HREF="#ref47">setNeedCommit</A></b> (bool needCommit=true)
</LI>
<LI>bool <b><A HREF="#ref48">needCommit</A></b> (void) const
</LI>
<LI>virtual void <b><A HREF="#ref49">commit</A></b> (void)
</LI>
<LI>virtual void <b><A HREF="#ref50">rollback</A></b> (void)
</LI>
<LI>void <b><A HREF="#ref51">execute</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
</LI>
<LI>void <b><A HREF="#ref52">execute</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
</LI>
<LI>void <b><A HREF="#ref53">execute</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
</LI>
<LI>void <b><A HREF="#ref54">execute</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
</LI>
<LI>void <b><A HREF="#ref55">allExecute</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
</LI>
<LI>void <b><A HREF="#ref56">allExecute</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
</LI>
<LI>void <b><A HREF="#ref57">allExecute</A></b> (const <A HREF="toSQL.html">toSQL</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
</LI>
<LI>void <b><A HREF="#ref58">allExecute</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
</LI>
<LI>void <b><A HREF="#ref59">addWidget</A></b> (<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *widget)
</LI>
<LI>void <b><A HREF="#ref60">delWidget</A></b> (<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *widget)
</LI>
<LI>void <b><A HREF="#ref61">addInit</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql)
</LI>
<LI>void <b><A HREF="#ref62">delInit</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql)
</LI>
<LI><A HREF="http://doc.trolltech.com/qstring.html">QString</A> <b><A HREF="#ref63">quote</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name)
</LI>
<LI><A HREF="http://doc.trolltech.com/qstring.html">QString</A> <b><A HREF="#ref64">unQuote</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name)
</LI>
<LI>std::list<objectName> & <b><A HREF="#ref65">objects</A></b> (bool block)
</LI>
<LI>void <b><A HREF="#ref66">addIfNotExists</A></b> (objectName &object)
</LI>
<LI>std::map<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>,objectName> & <b><A HREF="#ref67">synonyms</A></b> (bool block)
</LI>
<LI><A HREF="#toQDescList">toQDescList</A> & <b><A HREF="#ref68">columns</A></b> (const objectName &table,bool nocache=false)
</LI>
<LI>void <b><A HREF="#ref69">rereadCache</A></b> (void)
</LI>
<LI>const objectName & <b><A HREF="#ref70">realName</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &object,bool block)
</LI>
<LI>const objectName & <b><A HREF="#ref71">realName</A></b> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &object,<A HREF="http://doc.trolltech.com/qstring.html">QString</A> &synonym,bool block)
</LI>
<LI>bool <b><A HREF="#ref72">cacheAvailable</A></b> (bool block=false,bool need=true)
</LI>
<LI>void <b><A HREF="#ref73">cancelAll</A></b> (void)
</LI>
</ul><h4>Public Members</h4><ul><LI>friend class <b><A HREF="#ref74">toQuery</A></b></LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> Represent a database connection in TOra. Observe that this can mean several actual
connections to the database as queries that ae expected to run a long time are sometimes
executed in their own connection to make sure the interface doesn't lock up for a long time.
</p>
<A NAME="toConnection__exception.html"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>exception</strong> <small>(class)</small></td><td align="right"><h3><strong>exception</strong></h3></td></tr></table><p></p><p> Class that could be used to throw exceptions in connection errors. Must use if you
want to indicate error offset.
</p>
<A NAME="toConnection__objectName.html"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>objectName</strong> <small>(struct)</small></td><td align="right"><h3><strong>objectName</strong></h3></td></tr></table><p></p><p> Contain information about a tablename.
</p>
<A NAME="toConnection__connectionImpl.html"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>connectionImpl</strong> <small>(class)</small></td><td align="right"><h3><strong>connectionImpl</strong></h3></td></tr></table><p></p><p> This class is an abstract baseclass to actually implement the comunication with the
database.
(See also toQuery::queryImpl and <A HREF="toConnectionProvider.html">toConnectionProvider</A>)
</p>
<A NAME="toConnection"></A><A NAME="ref35"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>toConnection</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &provider,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &user,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &password,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &host,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &database,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &mode=QString::null,
bool cache=true)
<br></td><td align="right"><h3><strong>toConnection</strong></h3></td></tr></table><p></p><p> Create a new connection.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>provider</i></TD><TD align="left" valign="top">Which database provider to use for this connection.
(See to toDatabaseConnection)
</TD></TR>
<TR><TD align="left" valign="top"><i>user</i></TD><TD align="left" valign="top">User to connect to the database with.
</TD></TR>
<TR><TD align="left" valign="top"><i>password</i></TD><TD align="left" valign="top">Password to connect with.
</TD></TR>
<TR><TD align="left" valign="top"><i>host</i></TD><TD align="left" valign="top">Host to connect to the database with.
</TD></TR>
<TR><TD align="left" valign="top"><i>database</i></TD><TD align="left" valign="top">Database to connect to.
</TD></TR>
<TR><TD align="left" valign="top"><i>mode</i></TD><TD align="left" valign="top">Mode to connect to the database with.
</TD></TR>
<TR><TD align="left" valign="top"><i>cache</i></TD><TD align="left" valign="top">Enable object cache for this connection.
</TD></TR>
</TABLE></P>
<A NAME="toConnection"></A><A NAME="ref36"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>toConnection</strong> (const <A HREF="toConnection.html">toConnection</A> &conn)
<br></td><td align="right"><h3><strong>toConnection</strong></h3></td></tr></table><p></p><p> Create a copy of a connection. Will not cache objects, so objects will never be available
in a subconnection.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>conn</i></TD><TD align="left" valign="top">Connection to copy.
</TD></TR>
</TABLE></P>
<A NAME="~toConnection"></A><A NAME="ref37"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~toConnection</strong> ()
<br></td><td align="right"><h3><strong>~toConnection</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Destroy connection.
</p>
<A NAME="closeWidgets"></A><A NAME="ref38"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>closeWidgets</strong> (void)
<br></td><td align="right"><h3><strong>closeWidgets</strong></h3></td></tr></table><p></p><p> Try to close all the widgets associated with this connection.
</p>
<p><b>Returns</b>: True if all widgets agreed to close.
</p>
<A NAME="user"></A><A NAME="ref39"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <strong>user</strong> ()
<br></td><td align="right"><h3><strong>user</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get username of connection.
</p>
<A NAME="password"></A><A NAME="ref40"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <strong>password</strong> ()
<br></td><td align="right"><h3><strong>password</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get password of connection.
</p>
<A NAME="host"></A><A NAME="ref41"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <strong>host</strong> ()
<br></td><td align="right"><h3><strong>host</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get host of connection.
</p>
<A NAME="database"></A><A NAME="ref42"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <strong>database</strong> ()
<br></td><td align="right"><h3><strong>database</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get database of connection.
</p>
<A NAME="mode"></A><A NAME="ref43"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <strong>mode</strong> ()
<br></td><td align="right"><h3><strong>mode</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get mode of connection.
</p>
<A NAME="version"></A><A NAME="ref44"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <strong>version</strong> ()
<br></td><td align="right"><h3><strong>version</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get version of connection.
</p>
<A NAME="provider"></A><A NAME="ref45"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> & <strong>provider</strong> ()
<br></td><td align="right"><h3><strong>provider</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get provider of connection.
</p>
<A NAME="description"></A><A NAME="ref46"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="http://doc.trolltech.com/qstring.html">QString</A> <strong>description</strong> (bool version=true)
<br></td><td align="right"><h3><strong>description</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p> Get a description of this connection.
</p>
<A NAME="setNeedCommit"></A><A NAME="ref47"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setNeedCommit</strong> (bool needCommit=true)
<br></td><td align="right"><h3><strong>setNeedCommit</strong></h3></td></tr></table><p></p><p> Set if this connection needs to be commited.
</p>
<A NAME="needCommit"></A><A NAME="ref48"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>needCommit</strong> (void)
<br></td><td align="right"><h3><strong>needCommit</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
Get information about if the connection has uncommited data.
</p>
<p></p>
<p><b>Returns</b>: Whether uncommited data is available.
</p>
<A NAME="commit"></A><A NAME="ref49"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>commit</strong> (void)
<br></td><td align="right"><h3><strong>commit</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
Commit connection. This will also close all extra connections except one.
</p>
<A NAME="rollback"></A><A NAME="ref50"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>rollback</strong> (void)
<br></td><td align="right"><h3><strong>rollback</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
Rollback connection. This will also close all extra connections except one.
</p>
<A NAME="execute"></A><A NAME="ref51"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>execute</strong> (const <A HREF="toSQL.html">toSQL</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
<br></td><td align="right"><h3><strong>execute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>params</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="execute"></A><A NAME="ref52"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>execute</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
<br></td><td align="right"><h3><strong>execute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>params</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="execute"></A><A NAME="ref53"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>execute</strong> (const <A HREF="toSQL.html">toSQL</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
<br></td><td align="right"><h3><strong>execute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>arg1</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="execute"></A><A NAME="ref54"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>execute</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
<br></td><td align="right"><h3><strong>execute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>arg1</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="allExecute"></A><A NAME="ref55"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>allExecute</strong> (const <A HREF="toSQL.html">toSQL</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
<br></td><td align="right"><h3><strong>allExecute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result on all open database connections.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>params</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="allExecute"></A><A NAME="ref56"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>allExecute</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
<A HREF="#toQList">toQList</A> ¶ms)
<br></td><td align="right"><h3><strong>allExecute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result on all open database connections.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>params</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="allExecute"></A><A NAME="ref57"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>allExecute</strong> (const <A HREF="toSQL.html">toSQL</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
<br></td><td align="right"><h3><strong>allExecute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result on all open database connections.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>arg1</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="allExecute"></A><A NAME="ref58"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>allExecute</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg1=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg2=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg3=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg4=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg5=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg6=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg7=QString::null,const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg8=QString::null,
const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &arg9=QString::null)
<br></td><td align="right"><h3><strong>allExecute</strong></h3></td></tr></table><p></p><p> Execute a statement without caring about the result on all open database connections.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">SQL to execute
</TD></TR>
<TR><TD align="left" valign="top"><i>arg1</i></TD><TD align="left" valign="top">Parameters to pass to query.
</TD></TR>
</TABLE></P>
<A NAME="addWidget"></A><A NAME="ref59"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>addWidget</strong> (<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *widget)
<br></td><td align="right"><h3><strong>addWidget</strong></h3></td></tr></table><p></p><p>
Add a widget that uses this connection. This is needed to ensure that all widgets
that make use of a connection are destroyed when the connection is closed. Usually
tool windows need to call this function.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>widget</i></TD><TD align="left" valign="top">The widget to add to the connection.
</TD></TR>
</TABLE></P>
<A NAME="delWidget"></A><A NAME="ref60"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>delWidget</strong> (<A HREF="http://doc.trolltech.com/qwidget.html">QWidget</A> *widget)
<br></td><td align="right"><h3><strong>delWidget</strong></h3></td></tr></table><p></p><p>
Remove a widget from this connection. Should be called by the destructor of the
widget that has called addWidget.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>widget</i></TD><TD align="left" valign="top">Widget to remove from the widget list.
</TD></TR>
</TABLE></P>
<p><b>See also</b>: addWidget</p>
<A NAME="addInit"></A><A NAME="ref61"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>addInit</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql)
<br></td><td align="right"><h3><strong>addInit</strong></h3></td></tr></table><p></p><p>
Add a statement to be run uppon making new connections.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>sql</i></TD><TD align="left" valign="top">Statement to run.
</TD></TR>
</TABLE></P>
<A NAME="delInit"></A><A NAME="ref62"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>delInit</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &sql)
<br></td><td align="right"><h3><strong>delInit</strong></h3></td></tr></table><p></p><p>
Remove a statement that was added using <A HREF="toConnection.html#addInit">addInit</A>.
</p>
<A NAME="quote"></A><A NAME="ref63"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="http://doc.trolltech.com/qstring.html">QString</A> <strong>quote</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name)
<br></td><td align="right"><h3><strong>quote</strong></h3></td></tr></table><p></p><p> Return a string representation to address an object.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">The name to be quoted.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String addressing table.
</p>
<A NAME="unQuote"></A><A NAME="ref64"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="http://doc.trolltech.com/qstring.html">QString</A> <strong>unQuote</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &name)
<br></td><td align="right"><h3><strong>unQuote</strong></h3></td></tr></table><p></p><p> Perform the opposite of <A HREF="toConnection.html#quote">quote</A>.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">The name to be un-quoted.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: String addressing table.
</p>
<A NAME="objects"></A><A NAME="ref65"></A><table width="100%"><tr bgcolor="#eeeeee"><td>std::list<objectName> & <strong>objects</strong> (bool block)
<br></td><td align="right"><h3><strong>objects</strong></h3></td></tr></table><p></p><p>
Get the objects available for the current user. Do not modify the returned list.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>block</i></TD><TD align="left" valign="top">Indicate wether or not to block until cached objects are available.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: A list of object available for the current user. The list is sorted in
owner and name order.
</p>
<A NAME="addIfNotExists"></A><A NAME="ref66"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>addIfNotExists</strong> (objectName &object)
<br></td><td align="right"><h3><strong>addIfNotExists</strong></h3></td></tr></table><p></p><p> Add a new object to the objectlist if it doesn't exist already.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>object</i></TD><TD align="left" valign="top">The object to add
</TD></TR>
</TABLE></P>
<A NAME="synonyms"></A><A NAME="ref67"></A><table width="100%"><tr bgcolor="#eeeeee"><td>std::map<<A HREF="http://doc.trolltech.com/qstring.html">QString</A>,objectName> & <strong>synonyms</strong> (bool block)
<br></td><td align="right"><h3><strong>synonyms</strong></h3></td></tr></table><p></p><p>
Get the synonyms available for objects. Do not modify the returned list.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>block</i></TD><TD align="left" valign="top">Indicate wether or not to block until cached objects are available.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: A list of synonyms to objects available for the current user.
</p>
<A NAME="columns"></A><A NAME="ref68"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="#toQDescList">toQDescList</A> & <strong>columns</strong> (const objectName &table,bool nocache=false)
<br></td><td align="right"><h3><strong>columns</strong></h3></td></tr></table><p></p><p>
Get a list of the available columns for a table. This function caches the responses
and should be fairly fast after the first call. Do not modify the returned list.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>table</i></TD><TD align="left" valign="top">The table to describe.
</TD></TR>
<TR><TD align="left" valign="top"><i>nocache</i></TD><TD align="left" valign="top">Don't use cached values even if they are available.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: A list of the columns for a table.
</p>
<A NAME="rereadCache"></A><A NAME="ref69"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>rereadCache</strong> (void)
<br></td><td align="right"><h3><strong>rereadCache</strong></h3></td></tr></table><p></p><p>
Reread the object and column cache.
</p>
<A NAME="realName"></A><A NAME="ref70"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const objectName & <strong>realName</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &object,bool block)
<br></td><td align="right"><h3><strong>realName</strong></h3></td></tr></table><p></p><p>
Get the real object name of an object.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>object</i></TD><TD align="left" valign="top">Object name
</TD></TR>
<TR><TD align="left" valign="top"><i>block</i></TD><TD align="left" valign="top">Block if not done caching object.
</TD></TR>
</TABLE></P>
<A NAME="realName"></A><A NAME="ref71"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const objectName & <strong>realName</strong> (const <A HREF="http://doc.trolltech.com/qstring.html">QString</A> &object,<A HREF="http://doc.trolltech.com/qstring.html">QString</A> &synonym,bool block)
<br></td><td align="right"><h3><strong>realName</strong></h3></td></tr></table><p></p><p>
Get the real object name of a synonym.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>object</i></TD><TD align="left" valign="top">Object name
</TD></TR>
<TR><TD align="left" valign="top"><i>synonym</i></TD><TD align="left" valign="top">Filled with the synonym used to access the object returned or empty.
</TD></TR>
<TR><TD align="left" valign="top"><i>block</i></TD><TD align="left" valign="top">Block if not done caching object.
</TD></TR>
</TABLE></P>
<A NAME="cacheAvailable"></A><A NAME="ref72"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>cacheAvailable</strong> (bool block=false,bool need=true)
<br></td><td align="right"><h3><strong>cacheAvailable</strong></h3></td></tr></table><p></p><p> Check if cache is available or not.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>block</i></TD><TD align="left" valign="top">Block until cache is done.
</TD></TR>
<TR><TD align="left" valign="top"><i>true</i></TD><TD align="left" valign="top">True if you need the cache, or just checking.
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: True if cache is available.
</p>
<A NAME="cancelAll"></A><A NAME="ref73"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>cancelAll</strong> (void)
<br></td><td align="right"><h3><strong>cancelAll</strong></h3></td></tr></table><p></p><p> Try to stop all running queries.
</p>
<A NAME="toQuery"></A><A NAME="ref74"></A><table width="100%"><tr bgcolor="#eeeeee"><td>friend class <strong>toQuery</strong>
</td><td align="right"><h3><strong>toQuery</strong></h3></td></tr></table><p></p><HR>
<table>
</table>
</BODY>
</HTML>
|