File: classmysqlpp_1_1NoTransaction.html

package info (click to toggle)
mysql%2B%2B 3.1.0-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 11,640 kB
  • sloc: cpp: 35,569; sh: 3,113; makefile: 946; perl: 786
file content (62 lines) | stat: -rw-r--r-- 5,291 bytes parent folder | download
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
<!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&nbsp;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&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<b>mysqlpp</b>::<a class="el" href="classmysqlpp_1_1NoTransaction.html">NoTransaction</a></div>
<h1>mysqlpp::NoTransaction Class Reference</h1><!-- doxytag: class="mysqlpp::NoTransaction" -->Compile-time substitute for <a class="el" href="classmysqlpp_1_1Transaction.html">Transaction</a>, which purposely does nothing. Use it to instantiate templates that take <a class="el" href="classmysqlpp_1_1Transaction.html">Transaction</a> when you don't want transactions to be used.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="transaction_8h-source.html">transaction.h</a>&gt;</code>
<p>
<a href="classmysqlpp_1_1NoTransaction-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 Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7b255c73b2f978254a6d71c193ee7804"></a><!-- doxytag: member="mysqlpp::NoTransaction::NoTransaction" ref="7b255c73b2f978254a6d71c193ee7804" args="(Connection &amp;, bool=false)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1NoTransaction.html#7b255c73b2f978254a6d71c193ee7804">NoTransaction</a> (<a class="el" href="classmysqlpp_1_1Connection.html">Connection</a> &amp;, bool=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dbfd3f9de75fee1904eb216fb17ea1b2"></a><!-- doxytag: member="mysqlpp::NoTransaction::~NoTransaction" ref="dbfd3f9de75fee1904eb216fb17ea1b2" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1NoTransaction.html#dbfd3f9de75fee1904eb216fb17ea1b2">~NoTransaction</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6cf5b1a6d4b6baaf60077ef3afafa853"></a><!-- doxytag: member="mysqlpp::NoTransaction::commit" ref="6cf5b1a6d4b6baaf60077ef3afafa853" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1NoTransaction.html#6cf5b1a6d4b6baaf60077ef3afafa853">commit</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">stub to replace <a class="el" href="classmysqlpp_1_1Transaction.html#109bd0f1d70b6ff69cf3abccf7eea8f8">Transaction::commit()</a> <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1494ffb3d3b2f6b8d2990cd934fecb6a"></a><!-- doxytag: member="mysqlpp::NoTransaction::rollback" ref="1494ffb3d3b2f6b8d2990cd934fecb6a" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1NoTransaction.html#1494ffb3d3b2f6b8d2990cd934fecb6a">rollback</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">stub to replace <a class="el" href="classmysqlpp_1_1Transaction.html#000e4f0882139eb8470f7472ca14a24e">Transaction::rollback()</a> <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Compile-time substitute for <a class="el" href="classmysqlpp_1_1Transaction.html">Transaction</a>, which purposely does nothing. Use it to instantiate templates that take <a class="el" href="classmysqlpp_1_1Transaction.html">Transaction</a> when you don't want transactions to be used. 
<p>
This was created for use with InsertPolicy, used by <a class="el" href="classmysqlpp_1_1Query.html#6ddedfe4fd7f0a0007b0f0d85ae032d4">Query::insertfrom()</a>. You might use it when your code already wraps a given sequence of MySQL++ calls in a transaction and does an insertfrom() as part of that. MySQL doesn't support nested transactions, so you need to suppress the one insertfrom() would normally start. 
<p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="transaction_8h-source.html">transaction.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Jun 3 11:59:12 2010 for MySQL++ by&nbsp;
<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>