fireruby 0.1.0-powerpc-darwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/doc/CVS/Entries +10 -0
  2. data/doc/CVS/Repository +1 -0
  3. data/doc/CVS/Root +1 -0
  4. data/doc/README +39 -0
  5. data/doc/classes/CVS/Entries +2 -0
  6. data/doc/classes/CVS/Entries.Log +1 -0
  7. data/doc/classes/CVS/Repository +1 -0
  8. data/doc/classes/CVS/Root +1 -0
  9. data/doc/classes/FireRuby/CVS/Entries +8 -0
  10. data/doc/classes/FireRuby/CVS/Entries.Log +7 -0
  11. data/doc/classes/FireRuby/CVS/Repository +1 -0
  12. data/doc/classes/FireRuby/CVS/Root +1 -0
  13. data/doc/classes/FireRuby/Connection.html +364 -0
  14. data/doc/classes/FireRuby/Connection.src/CVS/Entries +10 -0
  15. data/doc/classes/FireRuby/Connection.src/CVS/Repository +1 -0
  16. data/doc/classes/FireRuby/Connection.src/CVS/Root +1 -0
  17. data/doc/classes/FireRuby/Connection.src/M000046.html +17 -0
  18. data/doc/classes/FireRuby/Connection.src/M000047.html +17 -0
  19. data/doc/classes/FireRuby/Connection.src/M000048.html +17 -0
  20. data/doc/classes/FireRuby/Connection.src/M000049.html +17 -0
  21. data/doc/classes/FireRuby/Connection.src/M000050.html +17 -0
  22. data/doc/classes/FireRuby/Connection.src/M000051.html +17 -0
  23. data/doc/classes/FireRuby/Connection.src/M000052.html +18 -0
  24. data/doc/classes/FireRuby/Connection.src/M000053.html +18 -0
  25. data/doc/classes/FireRuby/Connection.src/M000054.html +18 -0
  26. data/doc/classes/FireRuby/Database.html +292 -0
  27. data/doc/classes/FireRuby/Database.src/CVS/Entries +7 -0
  28. data/doc/classes/FireRuby/Database.src/CVS/Repository +1 -0
  29. data/doc/classes/FireRuby/Database.src/CVS/Root +1 -0
  30. data/doc/classes/FireRuby/Database.src/M000035.html +17 -0
  31. data/doc/classes/FireRuby/Database.src/M000036.html +17 -0
  32. data/doc/classes/FireRuby/Database.src/M000037.html +17 -0
  33. data/doc/classes/FireRuby/Database.src/M000038.html +18 -0
  34. data/doc/classes/FireRuby/Database.src/M000039.html +17 -0
  35. data/doc/classes/FireRuby/Database.src/M000040.html +17 -0
  36. data/doc/classes/FireRuby/FireRubyError.html +221 -0
  37. data/doc/classes/FireRuby/FireRubyError.src/CVS/Entries +6 -0
  38. data/doc/classes/FireRuby/FireRubyError.src/CVS/Repository +1 -0
  39. data/doc/classes/FireRuby/FireRubyError.src/CVS/Root +1 -0
  40. data/doc/classes/FireRuby/FireRubyError.src/M000041.html +17 -0
  41. data/doc/classes/FireRuby/FireRubyError.src/M000042.html +17 -0
  42. data/doc/classes/FireRuby/FireRubyError.src/M000043.html +17 -0
  43. data/doc/classes/FireRuby/FireRubyError.src/M000044.html +17 -0
  44. data/doc/classes/FireRuby/FireRubyError.src/M000045.html +17 -0
  45. data/doc/classes/FireRuby/Generator.html +343 -0
  46. data/doc/classes/FireRuby/Generator.src/CVS/Entries +9 -0
  47. data/doc/classes/FireRuby/Generator.src/CVS/Repository +1 -0
  48. data/doc/classes/FireRuby/Generator.src/CVS/Root +1 -0
  49. data/doc/classes/FireRuby/Generator.src/M000001.html +17 -0
  50. data/doc/classes/FireRuby/Generator.src/M000002.html +17 -0
  51. data/doc/classes/FireRuby/Generator.src/M000003.html +17 -0
  52. data/doc/classes/FireRuby/Generator.src/M000004.html +17 -0
  53. data/doc/classes/FireRuby/Generator.src/M000005.html +17 -0
  54. data/doc/classes/FireRuby/Generator.src/M000006.html +17 -0
  55. data/doc/classes/FireRuby/Generator.src/M000007.html +17 -0
  56. data/doc/classes/FireRuby/Generator.src/M000008.html +17 -0
  57. data/doc/classes/FireRuby/ResultSet.html +343 -0
  58. data/doc/classes/FireRuby/ResultSet.src/CVS/Entries +10 -0
  59. data/doc/classes/FireRuby/ResultSet.src/CVS/Repository +1 -0
  60. data/doc/classes/FireRuby/ResultSet.src/CVS/Root +1 -0
  61. data/doc/classes/FireRuby/ResultSet.src/M000026.html +17 -0
  62. data/doc/classes/FireRuby/ResultSet.src/M000027.html +17 -0
  63. data/doc/classes/FireRuby/ResultSet.src/M000028.html +17 -0
  64. data/doc/classes/FireRuby/ResultSet.src/M000029.html +17 -0
  65. data/doc/classes/FireRuby/ResultSet.src/M000030.html +17 -0
  66. data/doc/classes/FireRuby/ResultSet.src/M000031.html +17 -0
  67. data/doc/classes/FireRuby/ResultSet.src/M000032.html +17 -0
  68. data/doc/classes/FireRuby/ResultSet.src/M000033.html +17 -0
  69. data/doc/classes/FireRuby/ResultSet.src/M000034.html +17 -0
  70. data/doc/classes/FireRuby/Statement.html +349 -0
  71. data/doc/classes/FireRuby/Statement.src/CVS/Entries +10 -0
  72. data/doc/classes/FireRuby/Statement.src/CVS/Repository +1 -0
  73. data/doc/classes/FireRuby/Statement.src/CVS/Root +1 -0
  74. data/doc/classes/FireRuby/Statement.src/M000017.html +17 -0
  75. data/doc/classes/FireRuby/Statement.src/M000018.html +17 -0
  76. data/doc/classes/FireRuby/Statement.src/M000019.html +17 -0
  77. data/doc/classes/FireRuby/Statement.src/M000020.html +17 -0
  78. data/doc/classes/FireRuby/Statement.src/M000021.html +17 -0
  79. data/doc/classes/FireRuby/Statement.src/M000022.html +17 -0
  80. data/doc/classes/FireRuby/Statement.src/M000023.html +18 -0
  81. data/doc/classes/FireRuby/Statement.src/M000024.html +18 -0
  82. data/doc/classes/FireRuby/Statement.src/M000025.html +17 -0
  83. data/doc/classes/FireRuby/Transaction.html +484 -0
  84. data/doc/classes/FireRuby/Transaction.src/CVS/Entries +9 -0
  85. data/doc/classes/FireRuby/Transaction.src/CVS/Repository +1 -0
  86. data/doc/classes/FireRuby/Transaction.src/CVS/Root +1 -0
  87. data/doc/classes/FireRuby/Transaction.src/M000009.html +17 -0
  88. data/doc/classes/FireRuby/Transaction.src/M000010.html +17 -0
  89. data/doc/classes/FireRuby/Transaction.src/M000011.html +17 -0
  90. data/doc/classes/FireRuby/Transaction.src/M000012.html +17 -0
  91. data/doc/classes/FireRuby/Transaction.src/M000013.html +17 -0
  92. data/doc/classes/FireRuby/Transaction.src/M000014.html +17 -0
  93. data/doc/classes/FireRuby/Transaction.src/M000015.html +18 -0
  94. data/doc/classes/FireRuby/Transaction.src/M000016.html +17 -0
  95. data/doc/classes/FireRuby.html +116 -0
  96. data/doc/created.rid +1 -0
  97. data/doc/files/CVS/Entries +2 -0
  98. data/doc/files/CVS/Repository +1 -0
  99. data/doc/files/CVS/Root +1 -0
  100. data/doc/files/src_rb.html +119 -0
  101. data/doc/fr_class_index.html +34 -0
  102. data/doc/fr_file_index.html +27 -0
  103. data/doc/fr_method_index.html +80 -0
  104. data/doc/index.html +24 -0
  105. data/doc/license.txt +411 -0
  106. data/doc/rdoc-style.css +175 -0
  107. data/lib/CVS/Entries +4 -0
  108. data/lib/CVS/Repository +1 -0
  109. data/lib/CVS/Root +1 -0
  110. data/lib/fireruby.bundle +0 -0
  111. data/lib/mkdoc +1 -0
  112. data/lib/src.rb +736 -0
  113. data/test/CVS/Entries +17 -0
  114. data/test/CVS/Repository +1 -0
  115. data/test/CVS/Root +1 -0
  116. data/test/ConnectionTest.rb +91 -0
  117. data/test/DDLTest.rb +49 -0
  118. data/test/DatabaseTest.rb +84 -0
  119. data/test/GeneratorTest.rb +47 -0
  120. data/test/ResultSetTest.rb +96 -0
  121. data/test/SQLTest.rb +154 -0
  122. data/test/StatementTest.rb +101 -0
  123. data/test/TestSetup.rb +10 -0
  124. data/test/TransactionTest.rb +107 -0
  125. data/test/UnitTest.rb +10 -0
  126. data/test/example.c +91 -0
  127. data/test/fb.c +297 -0
  128. data/test/mfb +1 -0
  129. data/test/sql_unit_test.fdb +0 -0
  130. data/test/test.fdb +0 -0
  131. metadata +190 -0
@@ -0,0 +1,484 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: FireRuby::Transaction</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <h1>FireRuby::Transaction <sup class="type-note">(Class)</sup></h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>In:</strong></td>
54
+ <td>
55
+ <a href="../../files/src_rb.html">
56
+ src.rb
57
+ </a>
58
+ <br />
59
+ </td>
60
+ </tr>
61
+
62
+ <tr class="top-aligned-row">
63
+ <td><strong>Parent:</strong></td>
64
+ <td>
65
+ Object
66
+ </td>
67
+ </tr>
68
+ </table>
69
+ </div>
70
+ <!-- banner header -->
71
+
72
+ <div id="bodyContent">
73
+
74
+
75
+ <div id="contextContent">
76
+
77
+ <div id="description">
78
+ <p>
79
+ This class represents a Firebird database transaction. There may be
80
+ multiple transaction outstanding against a connection at any one time.
81
+ </p>
82
+
83
+ </div>
84
+
85
+
86
+ <div id="method-list">
87
+ <h2 class="section-bar">Methods</h2>
88
+
89
+ <div class="name-list">
90
+ <a href="#M000010">active?</a>&nbsp;&nbsp;
91
+ <a href="#M000013">commit</a>&nbsp;&nbsp;
92
+ <a href="#M000011">connections</a>&nbsp;&nbsp;
93
+ <a href="#M000016">create</a>&nbsp;&nbsp;
94
+ <a href="#M000015">execute</a>&nbsp;&nbsp;
95
+ <a href="#M000012">for_connection?</a>&nbsp;&nbsp;
96
+ <a href="#M000009">new</a>&nbsp;&nbsp;
97
+ <a href="#M000014">rollback</a>&nbsp;&nbsp;
98
+ </div>
99
+ </div>
100
+
101
+ <div id="constants-list">
102
+ <h2 class="section-bar">Constants</h2>
103
+
104
+ <div class="name-list">
105
+ <table summary="Constants">
106
+ <tr class="top-aligned-row context-row">
107
+ <td class="context-item-name">TPB_VERSION_1</td>
108
+ <td>=</td>
109
+ <td class="context-item-value">1</td>
110
+ </tr>
111
+ <tr class="top-aligned-row context-row">
112
+ <td class="context-item-name">TPB_VERSION_3</td>
113
+ <td>=</td>
114
+ <td class="context-item-value">3</td>
115
+ </tr>
116
+ <tr class="top-aligned-row context-row">
117
+ <td class="context-item-name">TPB_CONSISTENCY</td>
118
+ <td>=</td>
119
+ <td class="context-item-value">1</td>
120
+ </tr>
121
+ <tr class="top-aligned-row context-row">
122
+ <td class="context-item-name">TPB_CONCURRENCY</td>
123
+ <td>=</td>
124
+ <td class="context-item-value">2</td>
125
+ </tr>
126
+ <tr class="top-aligned-row context-row">
127
+ <td class="context-item-name">TPB_SHARED</td>
128
+ <td>=</td>
129
+ <td class="context-item-value">3</td>
130
+ </tr>
131
+ <tr class="top-aligned-row context-row">
132
+ <td class="context-item-name">TPB_PROTECTED</td>
133
+ <td>=</td>
134
+ <td class="context-item-value">4</td>
135
+ </tr>
136
+ <tr class="top-aligned-row context-row">
137
+ <td class="context-item-name">TPB_EXCLUSIVE</td>
138
+ <td>=</td>
139
+ <td class="context-item-value">5</td>
140
+ </tr>
141
+ <tr class="top-aligned-row context-row">
142
+ <td class="context-item-name">TPB_WAIT</td>
143
+ <td>=</td>
144
+ <td class="context-item-value">6</td>
145
+ </tr>
146
+ <tr class="top-aligned-row context-row">
147
+ <td class="context-item-name">TPB_NO_WAIT</td>
148
+ <td>=</td>
149
+ <td class="context-item-value">7</td>
150
+ </tr>
151
+ <tr class="top-aligned-row context-row">
152
+ <td class="context-item-name">TPB_READ</td>
153
+ <td>=</td>
154
+ <td class="context-item-value">8</td>
155
+ </tr>
156
+ <tr class="top-aligned-row context-row">
157
+ <td class="context-item-name">TPB_WRITE</td>
158
+ <td>=</td>
159
+ <td class="context-item-value">9</td>
160
+ </tr>
161
+ <tr class="top-aligned-row context-row">
162
+ <td class="context-item-name">TPB_LOCK_READ</td>
163
+ <td>=</td>
164
+ <td class="context-item-value">10</td>
165
+ </tr>
166
+ <tr class="top-aligned-row context-row">
167
+ <td class="context-item-name">TPB_LOCK_WRITE</td>
168
+ <td>=</td>
169
+ <td class="context-item-value">11</td>
170
+ </tr>
171
+ <tr class="top-aligned-row context-row">
172
+ <td class="context-item-name">TPB_VERB_TIME</td>
173
+ <td>=</td>
174
+ <td class="context-item-value">12</td>
175
+ </tr>
176
+ <tr class="top-aligned-row context-row">
177
+ <td class="context-item-name">TPB_COMMIT_TIME</td>
178
+ <td>=</td>
179
+ <td class="context-item-value">13</td>
180
+ </tr>
181
+ <tr class="top-aligned-row context-row">
182
+ <td class="context-item-name">TPB_IGNORE_LIMBO</td>
183
+ <td>=</td>
184
+ <td class="context-item-value">14</td>
185
+ </tr>
186
+ <tr class="top-aligned-row context-row">
187
+ <td class="context-item-name">TPB_READ_COMMITTED</td>
188
+ <td>=</td>
189
+ <td class="context-item-value">15</td>
190
+ </tr>
191
+ <tr class="top-aligned-row context-row">
192
+ <td class="context-item-name">TPB_AUTO_COMMIT</td>
193
+ <td>=</td>
194
+ <td class="context-item-value">16</td>
195
+ </tr>
196
+ <tr class="top-aligned-row context-row">
197
+ <td class="context-item-name">TPB_REC_VERSION</td>
198
+ <td>=</td>
199
+ <td class="context-item-value">17</td>
200
+ </tr>
201
+ <tr class="top-aligned-row context-row">
202
+ <td class="context-item-name">TPB_NO_REC_VERSION</td>
203
+ <td>=</td>
204
+ <td class="context-item-value">18</td>
205
+ </tr>
206
+ <tr class="top-aligned-row context-row">
207
+ <td class="context-item-name">TPB_RESTART_REQUESTS</td>
208
+ <td>=</td>
209
+ <td class="context-item-value">19</td>
210
+ </tr>
211
+ <tr class="top-aligned-row context-row">
212
+ <td class="context-item-name">TPB_NO_AUTO_UNDO</td>
213
+ <td>=</td>
214
+ <td class="context-item-value">20</td>
215
+ </tr>
216
+ <tr class="top-aligned-row context-row">
217
+ <td>&nbsp;</td>
218
+ <td colspan="2" class="context-item-desc">
219
+ <a href="Transaction.html">Transaction</a> parameter buffer value
220
+ constants.
221
+
222
+ </td>
223
+ </tr>
224
+ </table>
225
+ </div>
226
+ </div>
227
+
228
+
229
+
230
+
231
+
232
+ </div>
233
+
234
+
235
+
236
+ <!-- if includes -->
237
+
238
+
239
+ <!-- if method_list -->
240
+ <div id="methods">
241
+ <h2 class="section-bar">Public Class methods</h2>
242
+
243
+ <div id="method-M000016" class="method-detail">
244
+ <a name="M000016"></a>
245
+
246
+ <div class="method-heading">
247
+ <a href="Transaction.src/M000016.html" target="Code" class="method-signature"
248
+ onclick="popupCode('Transaction.src/M000016.html');return false;">
249
+ <span class="method-name">create</span><span class="method-args">(connections, parameters)</span>
250
+ </a>
251
+ </div>
252
+
253
+ <div class="method-description">
254
+ <p>
255
+ This method allows for the creation of a <a
256
+ href="Transaction.html">Transaction</a> object with non-standard settings.
257
+ </p>
258
+ <h4>Parameters</h4>
259
+ <table>
260
+ <tr><td valign="top">connections:</td><td>Either a single <a href="Connection.html">Connection</a> object or an array
261
+ of <a href="Connection.html">Connection</a> objects that the new <a
262
+ href="Transaction.html">Transaction</a> will be associated with.
263
+
264
+ </td></tr>
265
+ <tr><td valign="top">parameters:</td><td>An array of the parameters to be used in creating the new constants.
266
+ Populate this from the TPB constants defined within the class.
267
+
268
+ </td></tr>
269
+ </table>
270
+ <h4>Exceptions</h4>
271
+ <table>
272
+ <tr><td valign="top"><a href="FireRubyError.html">FireRubyError</a>:</td><td>Generated whenever a problem occurs creating the transaction.
273
+
274
+ </td></tr>
275
+ </table>
276
+ </div>
277
+ </div>
278
+
279
+ <div id="method-M000009" class="method-detail">
280
+ <a name="M000009"></a>
281
+
282
+ <div class="method-heading">
283
+ <a href="Transaction.src/M000009.html" target="Code" class="method-signature"
284
+ onclick="popupCode('Transaction.src/M000009.html');return false;">
285
+ <span class="method-name">new</span><span class="method-args">(connections)</span>
286
+ </a>
287
+ </div>
288
+
289
+ <div class="method-description">
290
+ <p>
291
+ This is the constructor for the <a href="Transaction.html">Transaction</a>
292
+ class.
293
+ </p>
294
+ <h4>Parameters</h4>
295
+ <table>
296
+ <tr><td valign="top">connections:</td><td>Either a single instance of the <a href="Connection.html">Connection</a>
297
+ class or an array of <a href="Connection.html">Connection</a> instances to
298
+ specify a multi-database transaction.
299
+
300
+ </td></tr>
301
+ </table>
302
+ <h4>Exceptions</h4>
303
+ <table>
304
+ <tr><td valign="top">Exception:</td><td>Generated whenever the method is passed an invalid parameter or a problem
305
+ occurs creating the transaction.
306
+
307
+ </td></tr>
308
+ </table>
309
+ </div>
310
+ </div>
311
+
312
+ <h2 class="section-bar">Public Instance methods</h2>
313
+
314
+ <div id="method-M000010" class="method-detail">
315
+ <a name="M000010"></a>
316
+
317
+ <div class="method-heading">
318
+ <a href="Transaction.src/M000010.html" target="Code" class="method-signature"
319
+ onclick="popupCode('Transaction.src/M000010.html');return false;">
320
+ <span class="method-name">active?</span><span class="method-args">()</span>
321
+ </a>
322
+ </div>
323
+
324
+ <div class="method-description">
325
+ <p>
326
+ This method is used to determine whether a <a
327
+ href="Transaction.html">Transaction</a> object is still valid for use (i.e.
328
+ commit or rollback has not been called for the <a
329
+ href="Transaction.html">Transaction</a>).
330
+ </p>
331
+ </div>
332
+ </div>
333
+
334
+ <div id="method-M000013" class="method-detail">
335
+ <a name="M000013"></a>
336
+
337
+ <div class="method-heading">
338
+ <a href="Transaction.src/M000013.html" target="Code" class="method-signature"
339
+ onclick="popupCode('Transaction.src/M000013.html');return false;">
340
+ <span class="method-name">commit</span><span class="method-args">()</span>
341
+ </a>
342
+ </div>
343
+
344
+ <div class="method-description">
345
+ <p>
346
+ This method commits the details outstanding against a <a
347
+ href="Transaction.html">Transaction</a> object. The <a
348
+ href="Transaction.html">Transaction</a> object may not be reused after a
349
+ successful call to this method.
350
+ </p>
351
+ <h4>Exceptions</h4>
352
+ <table>
353
+ <tr><td valign="top">Exception:</td><td>Generated whenever a problem occurs committing the details of the
354
+ transaction.
355
+
356
+ </td></tr>
357
+ </table>
358
+ </div>
359
+ </div>
360
+
361
+ <div id="method-M000011" class="method-detail">
362
+ <a name="M000011"></a>
363
+
364
+ <div class="method-heading">
365
+ <a href="Transaction.src/M000011.html" target="Code" class="method-signature"
366
+ onclick="popupCode('Transaction.src/M000011.html');return false;">
367
+ <span class="method-name">connections</span><span class="method-args">()</span>
368
+ </a>
369
+ </div>
370
+
371
+ <div class="method-description">
372
+ <p>
373
+ This is the accessor for the connections attribute. This method returns an
374
+ array of the connections that the transaction applies to.
375
+ </p>
376
+ </div>
377
+ </div>
378
+
379
+ <div id="method-M000015" class="method-detail">
380
+ <a name="M000015"></a>
381
+
382
+ <div class="method-heading">
383
+ <a href="Transaction.src/M000015.html" target="Code" class="method-signature"
384
+ onclick="popupCode('Transaction.src/M000015.html');return false;">
385
+ <span class="method-name">execute</span><span class="method-args">(sql) {|row| ...}</span>
386
+ </a>
387
+ </div>
388
+
389
+ <div class="method-description">
390
+ <p>
391
+ This method executes a SQL statement using a <a
392
+ href="Transaction.html">Transaction</a> object. This method will only work
393
+ whenever a <a href="Transaction.html">Transaction</a> object applies to a
394
+ single <a href="Connection.html">Connection</a> as it would otherwise be
395
+ impossible to determine which connection to execute against. If the
396
+ statement executed was a SQL query then the method returns a <a
397
+ href="ResultSet.html">ResultSet</a> object, otherwise it returns nil. The
398
+ method also accepts a block that takes a single parameter. If the SQL
399
+ statement was a query the block will be invoked and passed each row
400
+ retrieved.
401
+ </p>
402
+ <h4>Parameters</h4>
403
+ <table>
404
+ <tr><td valign="top">sql:</td><td>A string containing the SQL statement to be executed.
405
+
406
+ </td></tr>
407
+ </table>
408
+ <h4>Exceptions</h4>
409
+ <table>
410
+ <tr><td valign="top">Exception:</td><td>Generated whenever the <a href="Transaction.html">Transaction</a> object
411
+ represents more than one connection or a problem occurs executing the SQL
412
+ statement.
413
+
414
+ </td></tr>
415
+ </table>
416
+ </div>
417
+ </div>
418
+
419
+ <div id="method-M000012" class="method-detail">
420
+ <a name="M000012"></a>
421
+
422
+ <div class="method-heading">
423
+ <a href="Transaction.src/M000012.html" target="Code" class="method-signature"
424
+ onclick="popupCode('Transaction.src/M000012.html');return false;">
425
+ <span class="method-name">for_connection?</span><span class="method-args">(connection)</span>
426
+ </a>
427
+ </div>
428
+
429
+ <div class="method-description">
430
+ <p>
431
+ This method is used to determine whether a given <a
432
+ href="Transaction.html">Transaction</a> applies to a specified <a
433
+ href="Connection.html">Connection</a>.
434
+ </p>
435
+ <h4>Parameters</h4>
436
+ <table>
437
+ <tr><td valign="top">connection:</td><td>A reference to the <a href="Connection.html">Connection</a> object to
438
+ perform the test for.
439
+
440
+ </td></tr>
441
+ </table>
442
+ </div>
443
+ </div>
444
+
445
+ <div id="method-M000014" class="method-detail">
446
+ <a name="M000014"></a>
447
+
448
+ <div class="method-heading">
449
+ <a href="Transaction.src/M000014.html" target="Code" class="method-signature"
450
+ onclick="popupCode('Transaction.src/M000014.html');return false;">
451
+ <span class="method-name">rollback</span><span class="method-args">()</span>
452
+ </a>
453
+ </div>
454
+
455
+ <div class="method-description">
456
+ <p>
457
+ This method rolls back the details outstanding against a <a
458
+ href="Transaction.html">Transaction</a> object. The <a
459
+ href="Transaction.html">Transaction</a> object may not be reused after a
460
+ successful call to this method.
461
+ </p>
462
+ <h4>Exceptions</h4>
463
+ <table>
464
+ <tr><td valign="top">Exception:</td><td>Generated whenever a problem occurs rolling back the details of the
465
+ transaction.
466
+
467
+ </td></tr>
468
+ </table>
469
+ </div>
470
+ </div>
471
+
472
+
473
+ </div>
474
+
475
+
476
+ </div>
477
+
478
+
479
+ <div id="validator-badges">
480
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
481
+ </div>
482
+
483
+ </body>
484
+ </html>
@@ -0,0 +1,9 @@
1
+ /M000009.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
2
+ /M000010.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
3
+ /M000011.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
4
+ /M000012.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
5
+ /M000013.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
6
+ /M000014.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
7
+ /M000015.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
8
+ /M000016.html/1.1.1.1/Tue Mar 15 10:36:23 2005//
9
+ D
@@ -0,0 +1 @@
1
+ /var/cvs/fireruby/fireruby/doc/classes/FireRuby/Transaction.src
@@ -0,0 +1 @@
1
+ :ext:paw220470@rubyforge.org:/var/cvs/fireruby
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 306</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">connections</span>)
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>active? (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 315</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active?</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>connections (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 323</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connections</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>for_connection? (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 335</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">for_connection?</span>(<span class="ruby-identifier">connection</span>)
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>commit (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 348</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>rollback (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 361</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rollback</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>execute (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 383</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>(<span class="ruby-identifier">sql</span>)
15
+ <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">row</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>create (FireRuby::Transaction)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File src.rb, line 404</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Transaction</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">connections</span>, <span class="ruby-identifier">parameters</span>)
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>