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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>wxSQLite3: wxSQLite3Transaction Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">wxSQLite3 <span id="projectnumber">3.0.0</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<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>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">wxSQLite3Transaction Class Reference</div> </div>
</div>
<div class="contents">
<!-- doxytag: class="wxSQLite3Transaction" -->
<p>RAII class for managing transactions.
<a href="classwx_s_q_lite3_transaction.html#details">More...</a></p>
<p><code>#include <wxsqlite3.h></code></p>
<p><a href="classwx_s_q_lite3_transaction-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_s_q_lite3_transaction.html#a380296f462d36f55a3d793f151c4faf2">wxSQLite3Transaction</a> (<a class="el" href="classwx_s_q_lite3_database.html">wxSQLite3Database</a> *db, <a class="el" href="wxsqlite3_8h.html#af49cafcb237029e7e744a5b2076e2e5d">wxSQLite3TransactionType</a> transactionType=WXSQLITE_TRANSACTION_DEFAULT)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. Start the Transaction. <a href="#a380296f462d36f55a3d793f151c4faf2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_s_q_lite3_transaction.html#a015a7740f1ac78f147535f77181abe61">~wxSQLite3Transaction</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a015a7740f1ac78f147535f77181abe61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_s_q_lite3_transaction.html#aaab1bf763cc5ff4ff867d137d2a3ef7f">Commit</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Commits the transaction. <a href="#aaab1bf763cc5ff4ff867d137d2a3ef7f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_s_q_lite3_transaction.html#a58b9f0505fc581cda707351a3d03ec61">Rollback</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Rolls back the transaction. <a href="#a58b9f0505fc581cda707351a3d03ec61"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_s_q_lite3_transaction.html#aa838c2835a5d3f463f487c7a2d93c8ce">IsActive</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Determins wether the transaction is open or not. <a href="#aa838c2835a5d3f463f487c7a2d93c8ce"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>RAII class for managing transactions. </p>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a380296f462d36f55a3d793f151c4faf2"></a><!-- doxytag: member="wxSQLite3Transaction::wxSQLite3Transaction" ref="a380296f462d36f55a3d793f151c4faf2" args="(wxSQLite3Database *db, wxSQLite3TransactionType transactionType=WXSQLITE_TRANSACTION_DEFAULT)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxSQLite3Transaction::wxSQLite3Transaction </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_s_q_lite3_database.html">wxSQLite3Database</a> * </td>
<td class="paramname"><em>db</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="wxsqlite3_8h.html#af49cafcb237029e7e744a5b2076e2e5d">wxSQLite3TransactionType</a> </td>
<td class="paramname"><em>transactionType</em> = <code>WXSQLITE_TRANSACTION_DEFAULT</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor. Start the Transaction. </p>
<p>The constructor starts the transaction. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">db</td><td>Pointer to the open Database. The pointer to the database is NOT freed on destruction! </td></tr>
<tr><td class="paramname">transactionType</td><td>Type of the transaction to be opened. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a015a7740f1ac78f147535f77181abe61"></a><!-- doxytag: member="wxSQLite3Transaction::~wxSQLite3Transaction" ref="a015a7740f1ac78f147535f77181abe61" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxSQLite3Transaction::~wxSQLite3Transaction </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destructor. </p>
<p>The destructor does nothing if the changes were already commited (see commit()). In case the changes were not commited, a call to the destructor rolls back the transaction. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aaab1bf763cc5ff4ff867d137d2a3ef7f"></a><!-- doxytag: member="wxSQLite3Transaction::Commit" ref="aaab1bf763cc5ff4ff867d137d2a3ef7f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxSQLite3Transaction::Commit </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Commits the transaction. </p>
<p>Commits the transaction if active. If not, it does nothing. After the commit, the transaction is not active. </p>
</div>
</div>
<a class="anchor" id="aa838c2835a5d3f463f487c7a2d93c8ce"></a><!-- doxytag: member="wxSQLite3Transaction::IsActive" ref="aa838c2835a5d3f463f487c7a2d93c8ce" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxSQLite3Transaction::IsActive </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Determins wether the transaction is open or not. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the constructor successfully opend the transaction, false otherwise. After committing the transaction, active returns false. </dd></dl>
</div>
</div>
<a class="anchor" id="a58b9f0505fc581cda707351a3d03ec61"></a><!-- doxytag: member="wxSQLite3Transaction::Rollback" ref="a58b9f0505fc581cda707351a3d03ec61" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxSQLite3Transaction::Rollback </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Rolls back the transaction. </p>
<p>Rolls back the transaction if active. If not, it does nothing. After the rollback, the transaction is not active. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="wxsqlite3_8h.html">wxsqlite3.h</a></li>
<li><a class="el" href="wxsqlite3_8cpp.html">wxsqlite3.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Jan 19 2012 16:17:48 for wxSQLite3 by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
|