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".

GestionCategories.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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 Wed Jun 10 23:13:14 CEST 2015 -->
  6. <meta http-equiv="Content-Type" content="text/html" charset="utf8">
  7. <title>GestionCategories</title>
  8. <meta name="date" content="2015-06-10">
  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="GestionCategories";
  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/ConnexionBDD.html" title="class in GestionBddDAO"><span class="strong">Prev Class</span></a></li>
  40. <li><a href="../GestionBddDAO/GestionQuestions.html" title="class in GestionBddDAO"><span class="strong">Next Class</span></a></li>
  41. </ul>
  42. <ul class="navList">
  43. <li><a href="../index.html?GestionBddDAO/GestionCategories.html" target="_top">Frames</a></li>
  44. <li><a href="GestionCategories.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 GestionCategories" class="title">Class GestionCategories</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.GestionCategories</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">GestionCategories</span>
  100. extends java.lang.Object</pre>
  101. <div class="block">Classe effectuant les modifications en base de données pour les catégories.</div>
  102. </li>
  103. </ul>
  104. </div>
  105. <div class="summary">
  106. <ul class="blockList">
  107. <li class="blockList">
  108. <!-- =========== FIELD SUMMARY =========== -->
  109. <ul class="blockList">
  110. <li class="blockList"><a name="field_summary">
  111. <!-- -->
  112. </a>
  113. <h3>Field Summary</h3>
  114. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  115. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  116. <tr>
  117. <th class="colFirst" scope="col">Modifier and Type</th>
  118. <th class="colLast" scope="col">Field and Description</th>
  119. </tr>
  120. <tr class="altColor">
  121. <td class="colFirst"><code>private java.sql.Connection</code></td>
  122. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionCategories.html#bdd">bdd</a></strong></code>
  123. <div class="block">Connexion à la base de données.</div>
  124. </td>
  125. </tr>
  126. <tr class="rowColor">
  127. <td class="colFirst"><code>private java.util.ArrayList&lt;<a href="../Modele/Categorie.html" title="class in Modele">Categorie</a>&gt;</code></td>
  128. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionCategories.html#listCategories">listCategories</a></strong></code>
  129. <div class="block">Tableau contenant la liste de toutes les categories stockées en base de données.</div>
  130. </td>
  131. </tr>
  132. </table>
  133. </li>
  134. </ul>
  135. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  136. <ul class="blockList">
  137. <li class="blockList"><a name="constructor_summary">
  138. <!-- -->
  139. </a>
  140. <h3>Constructor Summary</h3>
  141. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  142. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  143. <tr>
  144. <th class="colOne" scope="col">Constructor and Description</th>
  145. </tr>
  146. <tr class="altColor">
  147. <td class="colOne"><code><strong><a href="../GestionBddDAO/GestionCategories.html#GestionCategories(java.sql.Connection)">GestionCategories</a></strong>(java.sql.Connection&nbsp;bdd)</code>
  148. <div class="block">Constructeur donnant accées à la base de données.</div>
  149. </td>
  150. </tr>
  151. </table>
  152. </li>
  153. </ul>
  154. <!-- ========== METHOD SUMMARY =========== -->
  155. <ul class="blockList">
  156. <li class="blockList"><a name="method_summary">
  157. <!-- -->
  158. </a>
  159. <h3>Method Summary</h3>
  160. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  161. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  162. <tr>
  163. <th class="colFirst" scope="col">Modifier and Type</th>
  164. <th class="colLast" scope="col">Method and Description</th>
  165. </tr>
  166. <tr class="altColor">
  167. <td class="colFirst"><code>void</code></td>
  168. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionCategories.html#createCategorie(java.lang.String)">createCategorie</a></strong>(java.lang.String&nbsp;categorieName)</code>
  169. <div class="block">Crée une nouvelle catégorie.</div>
  170. </td>
  171. </tr>
  172. <tr class="rowColor">
  173. <td class="colFirst"><code>void</code></td>
  174. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionCategories.html#deleteCategorie(java.lang.String)">deleteCategorie</a></strong>(java.lang.String&nbsp;categorieName)</code>
  175. <div class="block">Supprime une catégorie.</div>
  176. </td>
  177. </tr>
  178. <tr class="altColor">
  179. <td class="colFirst"><code>java.util.ArrayList&lt;<a href="../Modele/Categorie.html" title="class in Modele">Categorie</a>&gt;</code></td>
  180. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionCategories.html#getListCategories()">getListCategories</a></strong>()</code>
  181. <div class="block">Renvoie le tableau interne contenant les catégories.</div>
  182. </td>
  183. </tr>
  184. <tr class="rowColor">
  185. <td class="colFirst"><code>void</code></td>
  186. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionCategories.html#readCategorie()">readCategorie</a></strong>()</code>
  187. <div class="block">Remplis le tableau interne avec les catégorie trouvées en base de données.</div>
  188. </td>
  189. </tr>
  190. <tr class="altColor">
  191. <td class="colFirst"><code>void</code></td>
  192. <td class="colLast"><code><strong><a href="../GestionBddDAO/GestionCategories.html#updateCategorie(java.lang.String,%20java.lang.String)">updateCategorie</a></strong>(java.lang.String&nbsp;oldCategorieName,
  193. java.lang.String&nbsp;newCategorieName)</code>
  194. <div class="block">Rennome une catégorie.</div>
  195. </td>
  196. </tr>
  197. </table>
  198. <ul class="blockList">
  199. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  200. <!-- -->
  201. </a>
  202. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  203. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  204. </ul>
  205. </li>
  206. </ul>
  207. </li>
  208. </ul>
  209. </div>
  210. <div class="details">
  211. <ul class="blockList">
  212. <li class="blockList">
  213. <!-- ============ FIELD DETAIL =========== -->
  214. <ul class="blockList">
  215. <li class="blockList"><a name="field_detail">
  216. <!-- -->
  217. </a>
  218. <h3>Field Detail</h3>
  219. <a name="bdd">
  220. <!-- -->
  221. </a>
  222. <ul class="blockList">
  223. <li class="blockList">
  224. <h4>bdd</h4>
  225. <pre>private&nbsp;java.sql.Connection bdd</pre>
  226. <div class="block">Connexion à la base de données.</div>
  227. </li>
  228. </ul>
  229. <a name="listCategories">
  230. <!-- -->
  231. </a>
  232. <ul class="blockListLast">
  233. <li class="blockList">
  234. <h4>listCategories</h4>
  235. <pre>private&nbsp;java.util.ArrayList&lt;<a href="../Modele/Categorie.html" title="class in Modele">Categorie</a>&gt; listCategories</pre>
  236. <div class="block">Tableau contenant la liste de toutes les categories stockées en base de données.</div>
  237. </li>
  238. </ul>
  239. </li>
  240. </ul>
  241. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  242. <ul class="blockList">
  243. <li class="blockList"><a name="constructor_detail">
  244. <!-- -->
  245. </a>
  246. <h3>Constructor Detail</h3>
  247. <a name="GestionCategories(java.sql.Connection)">
  248. <!-- -->
  249. </a>
  250. <ul class="blockListLast">
  251. <li class="blockList">
  252. <h4>GestionCategories</h4>
  253. <pre>public&nbsp;GestionCategories(java.sql.Connection&nbsp;bdd)</pre>
  254. <div class="block">Constructeur donnant accées à la base de données.</div>
  255. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bdd</code> - La connexion à la base de données.</dd></dl>
  256. </li>
  257. </ul>
  258. </li>
  259. </ul>
  260. <!-- ============ METHOD DETAIL ========== -->
  261. <ul class="blockList">
  262. <li class="blockList"><a name="method_detail">
  263. <!-- -->
  264. </a>
  265. <h3>Method Detail</h3>
  266. <a name="readCategorie()">
  267. <!-- -->
  268. </a>
  269. <ul class="blockList">
  270. <li class="blockList">
  271. <h4>readCategorie</h4>
  272. <pre>public&nbsp;void&nbsp;readCategorie()
  273. throws java.sql.SQLException</pre>
  274. <div class="block">Remplis le tableau interne avec les catégorie trouvées en base de données.</div>
  275. <dl><dt><span class="strong">Throws:</span></dt>
  276. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  277. </li>
  278. </ul>
  279. <a name="createCategorie(java.lang.String)">
  280. <!-- -->
  281. </a>
  282. <ul class="blockList">
  283. <li class="blockList">
  284. <h4>createCategorie</h4>
  285. <pre>public&nbsp;void&nbsp;createCategorie(java.lang.String&nbsp;categorieName)
  286. throws java.sql.SQLException</pre>
  287. <div class="block">Crée une nouvelle catégorie.</div>
  288. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>categorieName</code> - Le nom de la catégorie à créer.</dd>
  289. <dt><span class="strong">Throws:</span></dt>
  290. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  291. </li>
  292. </ul>
  293. <a name="deleteCategorie(java.lang.String)">
  294. <!-- -->
  295. </a>
  296. <ul class="blockList">
  297. <li class="blockList">
  298. <h4>deleteCategorie</h4>
  299. <pre>public&nbsp;void&nbsp;deleteCategorie(java.lang.String&nbsp;categorieName)
  300. throws java.sql.SQLException</pre>
  301. <div class="block">Supprime une catégorie.</div>
  302. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>categorieName</code> - Le nom de la catégorie à supprimer.</dd>
  303. <dt><span class="strong">Throws:</span></dt>
  304. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  305. </li>
  306. </ul>
  307. <a name="updateCategorie(java.lang.String, java.lang.String)">
  308. <!-- -->
  309. </a>
  310. <ul class="blockList">
  311. <li class="blockList">
  312. <h4>updateCategorie</h4>
  313. <pre>public&nbsp;void&nbsp;updateCategorie(java.lang.String&nbsp;oldCategorieName,
  314. java.lang.String&nbsp;newCategorieName)
  315. throws java.sql.SQLException</pre>
  316. <div class="block">Rennome une catégorie.</div>
  317. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>oldCategorieName</code> - Le nom de la catégorie à rennomer.</dd><dd><code>newCategorieName</code> - Le nouveau nom de la catégorie.</dd>
  318. <dt><span class="strong">Throws:</span></dt>
  319. <dd><code>java.sql.SQLException</code> - Si une erreur SQL survient.</dd></dl>
  320. </li>
  321. </ul>
  322. <a name="getListCategories()">
  323. <!-- -->
  324. </a>
  325. <ul class="blockListLast">
  326. <li class="blockList">
  327. <h4>getListCategories</h4>
  328. <pre>public&nbsp;java.util.ArrayList&lt;<a href="../Modele/Categorie.html" title="class in Modele">Categorie</a>&gt;&nbsp;getListCategories()</pre>
  329. <div class="block">Renvoie le tableau interne contenant les catégories.</div>
  330. <dl><dt><span class="strong">Returns:</span></dt><dd>Un tableau d'objets Catégorie.</dd></dl>
  331. </li>
  332. </ul>
  333. </li>
  334. </ul>
  335. </li>
  336. </ul>
  337. </div>
  338. </div>
  339. <!-- ========= END OF CLASS DATA ========= -->
  340. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  341. <div class="bottomNav"><a name="navbar_bottom">
  342. <!-- -->
  343. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  344. <!-- -->
  345. </a>
  346. <ul class="navList" title="Navigation">
  347. <li><a href="../overview-summary.html">Overview</a></li>
  348. <li><a href="package-summary.html">Package</a></li>
  349. <li class="navBarCell1Rev">Class</li>
  350. <li><a href="package-tree.html">Tree</a></li>
  351. <li><a href="../deprecated-list.html">Deprecated</a></li>
  352. <li><a href="../index-files/index-1.html">Index</a></li>
  353. <li><a href="../help-doc.html">Help</a></li>
  354. </ul>
  355. </div>
  356. <div class="subNav">
  357. <ul class="navList">
  358. <li><a href="../GestionBddDAO/ConnexionBDD.html" title="class in GestionBddDAO"><span class="strong">Prev Class</span></a></li>
  359. <li><a href="../GestionBddDAO/GestionQuestions.html" title="class in GestionBddDAO"><span class="strong">Next Class</span></a></li>
  360. </ul>
  361. <ul class="navList">
  362. <li><a href="../index.html?GestionBddDAO/GestionCategories.html" target="_top">Frames</a></li>
  363. <li><a href="GestionCategories.html" target="_top">No Frames</a></li>
  364. </ul>
  365. <ul class="navList" id="allclasses_navbar_bottom">
  366. <li><a href="../allclasses-noframe.html">All Classes</a></li>
  367. </ul>
  368. <div>
  369. <script type="text/javascript"><!--
  370. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  371. if(window==top) {
  372. allClassesLink.style.display = "block";
  373. }
  374. else {
  375. allClassesLink.style.display = "none";
  376. }
  377. //-->
  378. </script>
  379. </div>
  380. <div>
  381. <ul class="subNavList">
  382. <li>Summary:&nbsp;</li>
  383. <li>Nested&nbsp;|&nbsp;</li>
  384. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  385. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  386. <li><a href="#method_summary">Method</a></li>
  387. </ul>
  388. <ul class="subNavList">
  389. <li>Detail:&nbsp;</li>
  390. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  391. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  392. <li><a href="#method_detail">Method</a></li>
  393. </ul>
  394. </div>
  395. <a name="skip-navbar_bottom">
  396. <!-- -->
  397. </a></div>
  398. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  399. </body>
  400. </html>