Créé dans le cadre du projet de fin d'année de la promo 2018 de CIR2 de l'ISEN Brest/Rennes, le Burger Quizz est une adaptation numérique du jeu télévisé éponyme, plus précisément d'une épreuve spécifique de ce jeu : le "Sel ou Poivre".

GestionReponses.html 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="fr">
  4. <head>
  5. <!-- Generated by javadoc (version 1.7.0_79) on Thu Jun 11 10:20:10 CEST 2015 -->
  6. <meta http-equiv="Content-Type" content="text/html" charset="utf8">
  7. <title>GestionReponses</title>
  8. <meta name="date" content="2015-06-11">
  9. <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. if (location.href.indexOf('is-external=true') == -1) {
  14. parent.document.title="GestionReponses";
  15. }
  16. //-->
  17. </script>
  18. <noscript>
  19. <div>JavaScript is disabled on your browser.</div>
  20. </noscript>
  21. <!-- ========= START OF TOP NAVBAR ======= -->
  22. <div class="topNav"><a name="navbar_top">
  23. <!-- -->
  24. </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
  25. <!-- -->
  26. </a>
  27. <ul class="navList" title="Navigation">
  28. <li><a href="../overview-summary.html">Overview</a></li>
  29. <li><a href="package-summary.html">Package</a></li>
  30. <li class="navBarCell1Rev">Class</li>
  31. <li><a href="package-tree.html">Tree</a></li>
  32. <li><a href="../deprecated-list.html">Deprecated</a></li>
  33. <li><a href="../index-files/index-1.html">Index</a></li>
  34. <li><a href="../help-doc.html">Help</a></li>
  35. </ul>
  36. </div>
  37. <div class="subNav">
  38. <ul class="navList">
  39. <li><a href="../GestionBddDAO/GestionQuestions.html" title="class in GestionBddDAO"><span class="strong">Prev Class</span></a></li>
  40. <li>Next Class</li>
  41. </ul>
  42. <ul class="navList">
  43. <li><a href="../index.html?GestionBddDAO/GestionReponses.html" target="_top">Frames</a></li>
  44. <li><a href="GestionReponses.html" target="_top">No Frames</a></li>
  45. </ul>
  46. <ul class="navList" id="allclasses_navbar_top">
  47. <li><a href="../allclasses-noframe.html">All Classes</a></li>
  48. </ul>
  49. <div>
  50. <script type="text/javascript"><!--
  51. allClassesLink = document.getElementById("allclasses_navbar_top");
  52. if(window==top) {
  53. allClassesLink.style.display = "block";
  54. }
  55. else {
  56. allClassesLink.style.display = "none";
  57. }
  58. //-->
  59. </script>
  60. </div>
  61. <div>
  62. <ul class="subNavList">
  63. <li>Summary:&nbsp;</li>
  64. <li>Nested&nbsp;|&nbsp;</li>
  65. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  66. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  67. <li><a href="#method_summary">Method</a></li>
  68. </ul>
  69. <ul class="subNavList">
  70. <li>Detail:&nbsp;</li>
  71. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  72. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  73. <li><a href="#method_detail">Method</a></li>
  74. </ul>
  75. </div>
  76. <a name="skip-navbar_top">
  77. <!-- -->
  78. </a></div>
  79. <!-- ========= END OF TOP NAVBAR ========= -->
  80. <!-- ======== START OF CLASS DATA ======== -->
  81. <div class="header">
  82. <div class="subTitle">GestionBddDAO</div>
  83. <h2 title="Class GestionReponses" class="title">Class GestionReponses</h2>
  84. </div>
  85. <div class="contentContainer">
  86. <ul class="inheritance">
  87. <li>java.lang.Object</li>
  88. <li>
  89. <ul class="inheritance">
  90. <li>GestionBddDAO.GestionReponses</li>
  91. </ul>
  92. </li>
  93. </ul>
  94. <div class="description">
  95. <ul class="blockList">
  96. <li class="blockList">
  97. <hr>
  98. <br>
  99. <pre>public class <span class="strong">GestionReponses</span>
  100. extends java.lang.Object</pre>
  101. </li>
  102. </ul>
  103. </div>
  104. <div class="summary">
  105. <ul class="blockList">
  106. <li class="blockList">
  107. <!-- =========== FIELD SUMMARY =========== -->
  108. <ul class="blockList">
  109. <li class="blockList"><a name="field_summary">
  110. <!-- -->
  111. </a>
  112. <h3>Field Summary</h3>
  113. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  114. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  115. <tr>
  116. <th class="colFirst" scope="col">Modifier and Type</th>
  117. <th class="colLast" scope="col">Field and Description</th>
  118. </tr>
  119. <tr class="altColor">
  120. <td class="colFirst"><code>private java.sql.Connection</code></td>
  121. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionReponses.html#bdd">bdd</a></strong></code>
  122. <div class="block">Connexion à la base de données.</div>
  123. </td>
  124. </tr>
  125. <tr class="rowColor">
  126. <td class="colFirst"><code>private java.util.ArrayList&lt;<a href="../Modele/Reponses.html" title="class in Modele">Reponses</a>&gt;</code></td>
  127. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionReponses.html#listReponses">listReponses</a></strong></code>
  128. <div class="block">Tableau contenant la liste de toutes les réponses stockées en base de données.</div>
  129. </td>
  130. </tr>
  131. </table>
  132. </li>
  133. </ul>
  134. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  135. <ul class="blockList">
  136. <li class="blockList"><a name="constructor_summary">
  137. <!-- -->
  138. </a>
  139. <h3>Constructor Summary</h3>
  140. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  141. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  142. <tr>
  143. <th class="colOne" scope="col">Constructor and Description</th>
  144. </tr>
  145. <tr class="altColor">
  146. <td class="colOne"><code><strong><a href="../GestionBddDAO/GestionReponses.html#GestionReponses(java.sql.Connection)">GestionReponses</a></strong>(java.sql.Connection&nbsp;bdd)</code>
  147. <div class="block">Constructeur donnant accées à la base de données.</div>
  148. </td>
  149. </tr>
  150. </table>
  151. </li>
  152. </ul>
  153. <!-- ========== METHOD SUMMARY =========== -->
  154. <ul class="blockList">
  155. <li class="blockList"><a name="method_summary">
  156. <!-- -->
  157. </a>
  158. <h3>Method Summary</h3>
  159. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  160. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  161. <tr>
  162. <th class="colFirst" scope="col">Modifier and Type</th>
  163. <th class="colLast" scope="col">Method and Description</th>
  164. </tr>
  165. <tr class="altColor">
  166. <td class="colFirst"><code>void</code></td>
  167. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionReponses.html#createReponses(java.lang.String,%20java.lang.String,%20java.lang.String)">createReponses</a></strong>(java.lang.String&nbsp;nomCategorie,
  168. java.lang.String&nbsp;reponse1,
  169. java.lang.String&nbsp;reponse2)</code>
  170. <div class="block">Crée un nouveau jeu de réponses.</div>
  171. </td>
  172. </tr>
  173. <tr class="rowColor">
  174. <td class="colFirst"><code>void</code></td>
  175. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionReponses.html#deleteReponses(java.lang.String,%20java.lang.String)">deleteReponses</a></strong>(java.lang.String&nbsp;reponse1,
  176. java.lang.String&nbsp;reponse2)</code>
  177. <div class="block">Supprime un jeu de réponses.</div>
  178. </td>
  179. </tr>
  180. <tr class="altColor">
  181. <td class="colFirst"><code>java.util.ArrayList&lt;<a href="../Modele/Reponses.html" title="class in Modele">Reponses</a>&gt;</code></td>
  182. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionReponses.html#getListReponses()">getListReponses</a></strong>()</code>
  183. <div class="block">Renvoie le tableau interne contenant les réponses.</div>
  184. </td>
  185. </tr>
  186. <tr class="rowColor">
  187. <td class="colFirst"><code>void</code></td>
  188. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionReponses.html#readReponses(java.lang.String)">readReponses</a></strong>(java.lang.String&nbsp;nomCategorie)</code>
  189. <div class="block">Remplis le tableau interne avec la liste des jeux de réponses depuis la base de données.</div>
  190. </td>
  191. </tr>
  192. <tr class="altColor">
  193. <td class="colFirst"><code>void</code></td>
  194. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionReponses.html#updateReponses(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)">updateReponses</a></strong>(java.lang.String&nbsp;categorie,
  195. java.lang.String&nbsp;oldRep1,
  196. java.lang.String&nbsp;oldRep2,
  197. java.lang.String&nbsp;newRep1,
  198. java.lang.String&nbsp;newRep2)</code>
  199. <div class="block">Modifie un jeu de réponses.</div>
  200. </td>
  201. </tr>
  202. </table>
  203. <ul class="blockList">
  204. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  205. <!-- -->
  206. </a>
  207. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  208. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  209. </ul>
  210. </li>
  211. </ul>
  212. </li>
  213. </ul>
  214. </div>
  215. <div class="details">
  216. <ul class="blockList">
  217. <li class="blockList">
  218. <!-- ============ FIELD DETAIL =========== -->
  219. <ul class="blockList">
  220. <li class="blockList"><a name="field_detail">
  221. <!-- -->
  222. </a>
  223. <h3>Field Detail</h3>
  224. <a name="bdd">
  225. <!-- -->
  226. </a>
  227. <ul class="blockList">
  228. <li class="blockList">
  229. <h4>bdd</h4>
  230. <pre>private&nbsp;java.sql.Connection bdd</pre>
  231. <div class="block">Connexion à la base de données.</div>
  232. </li>
  233. </ul>
  234. <a name="listReponses">
  235. <!-- -->
  236. </a>
  237. <ul class="blockListLast">
  238. <li class="blockList">
  239. <h4>listReponses</h4>
  240. <pre>private&nbsp;java.util.ArrayList&lt;<a href="../Modele/Reponses.html" title="class in Modele">Reponses</a>&gt; listReponses</pre>
  241. <div class="block">Tableau contenant la liste de toutes les réponses stockées en base de données.</div>
  242. </li>
  243. </ul>
  244. </li>
  245. </ul>
  246. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  247. <ul class="blockList">
  248. <li class="blockList"><a name="constructor_detail">
  249. <!-- -->
  250. </a>
  251. <h3>Constructor Detail</h3>
  252. <a name="GestionReponses(java.sql.Connection)">
  253. <!-- -->
  254. </a>
  255. <ul class="blockListLast">
  256. <li class="blockList">
  257. <h4>GestionReponses</h4>
  258. <pre>public&nbsp;GestionReponses(java.sql.Connection&nbsp;bdd)</pre>
  259. <div class="block">Constructeur donnant accées à la base de données.</div>
  260. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bdd</code> - La connexion à la base de données.</dd></dl>
  261. </li>
  262. </ul>
  263. </li>
  264. </ul>
  265. <!-- ============ METHOD DETAIL ========== -->
  266. <ul class="blockList">
  267. <li class="blockList"><a name="method_detail">
  268. <!-- -->
  269. </a>
  270. <h3>Method Detail</h3>
  271. <a name="readReponses(java.lang.String)">
  272. <!-- -->
  273. </a>
  274. <ul class="blockList">
  275. <li class="blockList">
  276. <h4>readReponses</h4>
  277. <pre>public&nbsp;void&nbsp;readReponses(java.lang.String&nbsp;nomCategorie)
  278. throws java.sql.SQLException</pre>
  279. <div class="block">Remplis le tableau interne avec la liste des jeux de réponses depuis la base de données.</div>
  280. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>nomCategorie</code> - La catégorie des jeux de réponses à récupérer.</dd>
  281. <dt><span class="strong">Throws:</span></dt>
  282. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  283. </li>
  284. </ul>
  285. <a name="createReponses(java.lang.String, java.lang.String, java.lang.String)">
  286. <!-- -->
  287. </a>
  288. <ul class="blockList">
  289. <li class="blockList">
  290. <h4>createReponses</h4>
  291. <pre>public&nbsp;void&nbsp;createReponses(java.lang.String&nbsp;nomCategorie,
  292. java.lang.String&nbsp;reponse1,
  293. java.lang.String&nbsp;reponse2)
  294. throws java.sql.SQLException</pre>
  295. <div class="block">Crée un nouveau jeu de réponses.</div>
  296. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>nomCategorie</code> - La catégorie du jeu de réponses.</dd><dd><code>reponse1</code> - La réponse une du jeu à créer.</dd><dd><code>reponse2</code> - La réponse deux du jeu à créer.</dd>
  297. <dt><span class="strong">Throws:</span></dt>
  298. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  299. </li>
  300. </ul>
  301. <a name="deleteReponses(java.lang.String, java.lang.String)">
  302. <!-- -->
  303. </a>
  304. <ul class="blockList">
  305. <li class="blockList">
  306. <h4>deleteReponses</h4>
  307. <pre>public&nbsp;void&nbsp;deleteReponses(java.lang.String&nbsp;reponse1,
  308. java.lang.String&nbsp;reponse2)
  309. throws java.sql.SQLException</pre>
  310. <div class="block">Supprime un jeu de réponses.</div>
  311. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>reponse1</code> - La réponse une du jeu à supprimer.</dd><dd><code>reponse2</code> - La réponse deux du jeu à supprimer.</dd>
  312. <dt><span class="strong">Throws:</span></dt>
  313. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  314. </li>
  315. </ul>
  316. <a name="updateReponses(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">
  317. <!-- -->
  318. </a>
  319. <ul class="blockList">
  320. <li class="blockList">
  321. <h4>updateReponses</h4>
  322. <pre>public&nbsp;void&nbsp;updateReponses(java.lang.String&nbsp;categorie,
  323. java.lang.String&nbsp;oldRep1,
  324. java.lang.String&nbsp;oldRep2,
  325. java.lang.String&nbsp;newRep1,
  326. java.lang.String&nbsp;newRep2)
  327. throws java.sql.SQLException</pre>
  328. <div class="block">Modifie un jeu de réponses.</div>
  329. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>categorie</code> - Nouvelle catégorie.</dd><dd><code>oldRep1</code> - Ancienne réponse une.</dd><dd><code>oldRep2</code> - Ancienne réponse deux.</dd><dd><code>newRep1</code> - Nouvelle réponse une.</dd><dd><code>newRep2</code> - Nouvelle réponse deux.</dd>
  330. <dt><span class="strong">Throws:</span></dt>
  331. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  332. </li>
  333. </ul>
  334. <a name="getListReponses()">
  335. <!-- -->
  336. </a>
  337. <ul class="blockListLast">
  338. <li class="blockList">
  339. <h4>getListReponses</h4>
  340. <pre>public&nbsp;java.util.ArrayList&lt;<a href="../Modele/Reponses.html" title="class in Modele">Reponses</a>&gt;&nbsp;getListReponses()</pre>
  341. <div class="block">Renvoie le tableau interne contenant les réponses.</div>
  342. <dl><dt><span class="strong">Returns:</span></dt><dd>Un tableau d'objets Réponses.</dd></dl>
  343. </li>
  344. </ul>
  345. </li>
  346. </ul>
  347. </li>
  348. </ul>
  349. </div>
  350. </div>
  351. <!-- ========= END OF CLASS DATA ========= -->
  352. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  353. <div class="bottomNav"><a name="navbar_bottom">
  354. <!-- -->
  355. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  356. <!-- -->
  357. </a>
  358. <ul class="navList" title="Navigation">
  359. <li><a href="../overview-summary.html">Overview</a></li>
  360. <li><a href="package-summary.html">Package</a></li>
  361. <li class="navBarCell1Rev">Class</li>
  362. <li><a href="package-tree.html">Tree</a></li>
  363. <li><a href="../deprecated-list.html">Deprecated</a></li>
  364. <li><a href="../index-files/index-1.html">Index</a></li>
  365. <li><a href="../help-doc.html">Help</a></li>
  366. </ul>
  367. </div>
  368. <div class="subNav">
  369. <ul class="navList">
  370. <li><a href="../GestionBddDAO/GestionQuestions.html" title="class in GestionBddDAO"><span class="strong">Prev Class</span></a></li>
  371. <li>Next Class</li>
  372. </ul>
  373. <ul class="navList">
  374. <li><a href="../index.html?GestionBddDAO/GestionReponses.html" target="_top">Frames</a></li>
  375. <li><a href="GestionReponses.html" target="_top">No Frames</a></li>
  376. </ul>
  377. <ul class="navList" id="allclasses_navbar_bottom">
  378. <li><a href="../allclasses-noframe.html">All Classes</a></li>
  379. </ul>
  380. <div>
  381. <script type="text/javascript"><!--
  382. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  383. if(window==top) {
  384. allClassesLink.style.display = "block";
  385. }
  386. else {
  387. allClassesLink.style.display = "none";
  388. }
  389. //-->
  390. </script>
  391. </div>
  392. <div>
  393. <ul class="subNavList">
  394. <li>Summary:&nbsp;</li>
  395. <li>Nested&nbsp;|&nbsp;</li>
  396. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  397. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  398. <li><a href="#method_summary">Method</a></li>
  399. </ul>
  400. <ul class="subNavList">
  401. <li>Detail:&nbsp;</li>
  402. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  403. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  404. <li><a href="#method_detail">Method</a></li>
  405. </ul>
  406. </div>
  407. <a name="skip-navbar_bottom">
  408. <!-- -->
  409. </a></div>
  410. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  411. </body>
  412. </html>