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
|
<HTML>
<HEAD>
<TITLE>class queryImpl</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 queryImpl</h1>
</TD>
<TD valign="top" align="right" colspan="1"> Abstract parent of implementations of a query for a database provider
(See <A HREF="toConnection__connectionImpl.html">toConnection::connectionImpl</A> and <A HREF="toConnectionProvider.html">toConnectionProvider</A>)
<small><A HREF="#longdesc">More...</A></small></TD></TR>
</TABLE>
<HR>
<TABLE BORDER="0">
<TR><TH colspan="2">Contains pure virtuals</TH></TR><TR><TH>Full name</TH><TD><code><A HREF="toQuery.html">toQuery</A>::queryImpl</code></TD></TR>
<TR><TH>Definition</TH><TD><code>#include <<A HREF="toconnection_h.html">toconnection.h</A>></code></TD></TR>
<TR><TH><A HREF="full-list-toQuery__queryImpl.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 Methods</h4><ul><LI><A HREF="toQuery.html">toQuery</A> * <b><A HREF="#ref2">query</A></b> ()
</LI>
<LI> <b><A HREF="#ref3">queryImpl</A></b> (<A HREF="toQuery.html">toQuery</A> *query)
</LI>
<LI>virtual <b><A HREF="#ref4">~queryImpl</A></b> ()
</LI>
<LI>virtual void <b><i><A HREF="#ref5">execute</A></i></b> (void)
</LI>
<LI>virtual <A HREF="toQValue.html">toQValue</A> <b><i><A HREF="#ref6">readValue</A></i></b> (void)
</LI>
<LI>virtual bool <b><i><A HREF="#ref7">eof</A></i></b> (void)
</LI>
<LI>virtual int <b><i><A HREF="#ref8">rowsProcessed</A></i></b> (void)
</LI>
<LI>virtual std::list<queryDescribe> <b><i><A HREF="#ref9">describe</A></i></b> (void)
</LI>
<LI>virtual int <b><i><A HREF="#ref10">columns</A></i></b> (void)
</LI>
<LI>virtual void <b><i><A HREF="#ref11">cancel</A></i></b> (void)
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> Abstract parent of implementations of a query for a database provider
(See <A HREF="toConnection__connectionImpl.html">toConnection::connectionImpl</A> and <A HREF="toConnectionProvider.html">toConnectionProvider</A>)
</p>
<A NAME="query"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="toQuery.html">toQuery</A> * <strong>query</strong> ()
<br></td><td align="right"><h3><strong>query</strong></h3></td></tr></table><p></p><p> Get the parent query object. All the parameters of the query must be read from here.
nothing is passed to the functions.
</p>
<A NAME="queryImpl"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>queryImpl</strong> (<A HREF="toQuery.html">toQuery</A> *query)
<br></td><td align="right"><h3><strong>queryImpl</strong></h3></td></tr></table><p></p><p> Create a query implementation. The constructor must not perform any actions with the
database that could block for a noticable time (Like execute or parse a query). The
data for the query may not be available when this object created.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>query</i></TD><TD align="left" valign="top">Parent query object.
</TD></TR>
</TABLE></P>
<A NAME="~queryImpl"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~queryImpl</strong> ()
<br></td><td align="right"><h3><strong>~queryImpl</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Destroy query implementation.
</p>
<A NAME="execute"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <i><strong>execute</strong></i> (void)
<br></td><td align="right"><h3><i><strong>execute</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Execute a query. Parameters can be gotten from the <A HREF="toQuery.html#toQuery">toQuery</A> object.
</p>
<A NAME="readValue"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="toQValue.html">toQValue</A> <i><strong>readValue</strong></i> (void)
<br></td><td align="right"><h3><i><strong>readValue</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Read the next value from the stream.
</p>
<p><b>Returns</b>: The value read from the query.
</p>
<A NAME="eof"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool <i><strong>eof</strong></i> (void)
<br></td><td align="right"><h3><i><strong>eof</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Check if the end of the query has been reached.
</p>
<p><b>Returns</b>: True if all values have been read.
</p>
<A NAME="rowsProcessed"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> int <i><strong>rowsProcessed</strong></i> (void)
<br></td><td align="right"><h3><i><strong>rowsProcessed</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Get the number of rows processed in the last executed query.
</p>
<A NAME="describe"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td> std::list<queryDescribe> <i><strong>describe</strong></i> (void)
<br></td><td align="right"><h3><i><strong>describe</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Describe the currently running query.
</p>
<p><b>Returns</b>: A list of column descriptions of the query.
</p>
<A NAME="columns"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td> int <i><strong>columns</strong></i> (void)
<br></td><td align="right"><h3><i><strong>columns</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Get number of columns in the resultset.
</p>
<p><b>Returns</b>: Column number.
</p>
<A NAME="cancel"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <i><strong>cancel</strong></i> (void)
<br></td><td align="right"><h3><i><strong>cancel</strong></i></h3></td></tr></table><p> <small>[pure virtual]</small></p><p> Cancel the current execution of a query. This will usually be called from another
thread than is executing the query.
</p>
<HR>
<table>
<tr><td><small>Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54.</small></td></tr>
</table>
</BODY>
</HTML>
|