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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MySQL++ Reference Manual</title>
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1">
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="refman.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<h1>RowCountInsertPolicy< AccessController > Class Template Reference</h1><!-- doxytag: class="RowCountInsertPolicy" -->An insert policy object that triggers a new INSERT statement after a given number of rows have been inserted.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="insertpolicy_8h-source.html">insertpolicy.h</a>></code>
<p>
<a href="classRowCountInsertPolicy-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4904cc50ad00c8eae56bff0d7db9e52c"></a><!-- doxytag: member="RowCountInsertPolicy::access_controller" ref="4904cc50ad00c8eae56bff0d7db9e52c" args="" -->
typedef AccessController </td><td class="memItemRight" valign="bottom"><a class="el" href="classRowCountInsertPolicy.html#4904cc50ad00c8eae56bff0d7db9e52c">access_controller</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Alias for our access controller type. <br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="da78427b0495b6dcffdbbedfbd91d1bc"></a><!-- doxytag: member="RowCountInsertPolicy::RowCountInsertPolicy" ref="da78427b0495b6dcffdbbedfbd91d1bc" args="(unsigned int rows)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classRowCountInsertPolicy.html#da78427b0495b6dcffdbbedfbd91d1bc">RowCountInsertPolicy</a> (unsigned int rows)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ed2bda29ac9d38bff3b47f4a285e1d6b"></a><!-- doxytag: member="RowCountInsertPolicy::~RowCountInsertPolicy" ref="ed2bda29ac9d38bff3b47f4a285e1d6b" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classRowCountInsertPolicy.html#ed2bda29ac9d38bff3b47f4a285e1d6b">~RowCountInsertPolicy</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2">template<class RowT> </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classRowCountInsertPolicy.html#bbb91511fa21f267890e0464e17ad69d">can_add</a> (int, const RowT &)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Can we add another object to the query? <a href="#bbb91511fa21f267890e0464e17ad69d"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<class AccessController = Transaction><br>
class RowCountInsertPolicy< AccessController ></h3>
An insert policy object that triggers a new INSERT statement after a given number of rows have been inserted.
<p>
This policy is very lightweight, but is only reliable when you can predict the size of each INSERT in advance. The others do more processing to reduce the risk of unpredictable row sizes.
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="bbb91511fa21f267890e0464e17ad69d"></a><!-- doxytag: member="RowCountInsertPolicy::can_add" ref="bbb91511fa21f267890e0464e17ad69d" args="(int, const RowT &)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class AccessController = Transaction> </div>
<div class="memtemplate">
template<class RowT> </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classRowCountInsertPolicy.html">RowCountInsertPolicy</a>< AccessController >::can_add </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const RowT & </td>
<td class="paramname"></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Can we add another object to the query?
<p>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>true</em> </td><td>if the object is allowed to be added to the INSERT statement </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="insertpolicy_8h-source.html">insertpolicy.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Jun 3 11:59:12 2010 for MySQL++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>
|