burger-quizz/doc/java/class_bdd.html
2018-06-07 10:57:43 +02:00

712 lines
32 KiB
HTML
Executable File

<!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>BurgerQuizz: Bdd 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.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;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>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="classes.html"><span>Class&nbsp;Index</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>
<div class="header">
<div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> </div>
<div class="headertitle">
<h1>Bdd Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="Bdd" -->
<p>Classe principalement statique servant d'intermédiaire avec la BDD.
<a href="#_details">More...</a></p>
<p><a href="class_bdd-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a87ee20d7e2e7679dcaf7ec8585ee77b2">getIP</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accesseur pour l'IP de la dernière tentative de connexion à la bdd. <a href="#a87ee20d7e2e7679dcaf7ec8585ee77b2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a07593679bd22e78ab396c0b0e5b7f577">getSchema</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accesseur pour le schéma de la dernière tentative de connexion à la bdd. <a href="#a07593679bd22e78ab396c0b0e5b7f577"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a6ce16dc2ca3c8ea03af27a23e4366b1f">getUser</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accesseur pour le nom de l'utilisateur de la dernière tentative de connexion à la bdd. <a href="#a6ce16dc2ca3c8ea03af27a23e4366b1f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a90e2bc7668795309c83dd3eb8bf754f3">getPassword</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accesseur pour le mdp utilisé à la dernière tentative de connexion à la bdd. <a href="#a90e2bc7668795309c83dd3eb8bf754f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a0258c4b31f0e86150a08eb7b8814ced4">connect</a> (String sIPb, String sSchemab, String sUserb, String sPasswordb) throws Exception </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#acf8ee166466379475c86ca68e4abba9d">close</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ferme la connexion MySQL. <a href="#acf8ee166466379475c86ca68e4abba9d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static boolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a3e1d62348a3c7fe2142245305515d713">getIsConnected</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Renvoie 1 si la l'application est connectée à la BDD. <a href="#a3e1d62348a3c7fe2142245305515d713"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static ArrayList&lt; <a class="el" href="class_list_row.html">ListRow</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a0a079ad01b4a16037980eae9955e6000">generateCatList</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static ArrayList&lt; <a class="el" href="class_list_row.html">ListRow</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#afe8146171502a75728c6d05a4f61cb00">generateGroupList</a> (String sCat)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static ArrayList&lt; <a class="el" href="class_list_row.html">ListRow</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a6ea42d71f520efc99a6e6b1335d80846">generateQuestionList</a> (String sGrpID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static ArrayList&lt; <a class="el" href="class_list_row.html">ListRow</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a61b09478f66b66c27308ae3f6ef8d586">generateAnsList</a> (String sGrpID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a9aa6de94489086a2cb61880349bd3a7f">getGroupAns0ByID</a> (String sID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a4d87248886602f4e1c9db77ccdb672a3">getGroupAns1ByID</a> (String sID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#ab5524556a4d9ab42d59adbaa68055044">getQuestionAns</a> (String sIDQuestion)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a0e8e7de35efae3adaf10316dc16c6f28">removeCat</a> (String sID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a1980bf150234918019da2f5bc6f41f2d">removeGroup</a> (String sID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#acfe276be49821e269061a235519daa58">removeQuestion</a> (String sID)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#ad1f3d723546851f34d5fdfa4acaa3ac5">updateCat</a> (String sID, String sName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a3736fc54c72617e0da6a9bac3a449037">updateGroup</a> (String sID, String sCat, String sAns0, String sAns1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a21480721dbf1d2b05a1722408d45e494">updateQuestion</a> (String sID, String sGroupID, String sQuest, String sGoodAns)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#aee23f04528e269e80b708ccbeccc0238">insertDefaultCatRow</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#a7115a1109d5dc6e2979c63c247e30e0f">insertDefaultGroupRow</a> (String sCat)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bdd.html#ad14c4e64b4df25a322b3257a53aaa156">insertDefaultQuestionRow</a> (String sGroupID)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Classe principalement statique servant d'intermédiaire avec la BDD. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="acf8ee166466379475c86ca68e4abba9d"></a><!-- doxytag: member="Bdd::close" ref="acf8ee166466379475c86ca68e4abba9d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.close </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Ferme la connexion MySQL. </p>
</div>
</div>
<a class="anchor" id="a0258c4b31f0e86150a08eb7b8814ced4"></a><!-- doxytag: member="Bdd::connect" ref="a0258c4b31f0e86150a08eb7b8814ced4" args="(String sIPb, String sSchemab, String sUserb, String sPasswordb)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.connect </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sIPb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sSchemab</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sUserb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sPasswordb</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> throws Exception <code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Connecte la BDD au serveur MySQL donné </p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>Stocke les paramètres utilisé dans la classe, même si la connexion à échouée </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>1 si connecté, 0 si la connexion à échouée </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sIPb</em>&nbsp;</td><td>l'IP de la bdd </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sSchemab</em>&nbsp;</td><td>le schéma utilisé par la bdd </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sUserb</em>&nbsp;</td><td>l'utilisateur ayant accès la table burgerquizz </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sPasswordb</em>&nbsp;</td><td>le mot de passe à utiliser </td></tr>
</table>
</dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>propage</em>&nbsp;</td><td>l'exception générée par la tentative de connexion MySQL </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a61b09478f66b66c27308ae3f6ef8d586"></a><!-- doxytag: member="Bdd::generateAnsList" ref="a61b09478f66b66c27308ae3f6ef8d586" args="(String sGrpID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static ArrayList&lt;<a class="el" href="class_list_row.html">ListRow</a>&gt; Bdd.generateAnsList </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sGrpID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Génère une liste contenant les réponses possibles d'un groupe donnée, tirées de la BDD </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sGrpID</em>&nbsp;</td><td>valeur de la colonne id de la table group </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>ladite liste </dd></dl>
</div>
</div>
<a class="anchor" id="a0a079ad01b4a16037980eae9955e6000"></a><!-- doxytag: member="Bdd::generateCatList" ref="a0a079ad01b4a16037980eae9955e6000" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static ArrayList&lt;<a class="el" href="class_list_row.html">ListRow</a>&gt; Bdd.generateCatList </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Génère une liste contenant les catégories tirées de la BDD </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>ladite liste </dd></dl>
</div>
</div>
<a class="anchor" id="afe8146171502a75728c6d05a4f61cb00"></a><!-- doxytag: member="Bdd::generateGroupList" ref="afe8146171502a75728c6d05a4f61cb00" args="(String sCat)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static ArrayList&lt;<a class="el" href="class_list_row.html">ListRow</a>&gt; Bdd.generateGroupList </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sCat</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Génère une liste contenant les groupes d'une catégorie donnée, tirés de la BDD </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sCat</em>&nbsp;</td><td>valeur de la colonne nom de la table categorie </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>ladite liste </dd></dl>
</div>
</div>
<a class="anchor" id="a6ea42d71f520efc99a6e6b1335d80846"></a><!-- doxytag: member="Bdd::generateQuestionList" ref="a6ea42d71f520efc99a6e6b1335d80846" args="(String sGrpID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static ArrayList&lt;<a class="el" href="class_list_row.html">ListRow</a>&gt; Bdd.generateQuestionList </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sGrpID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Génère une liste contenant les questions d'un groupe donnée, tirées de la BDD </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sGrpID</em>&nbsp;</td><td>valeur de la colonne id de la table group </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>ladite liste </dd></dl>
</div>
</div>
<a class="anchor" id="a9aa6de94489086a2cb61880349bd3a7f"></a><!-- doxytag: member="Bdd::getGroupAns0ByID" ref="a9aa6de94489086a2cb61880349bd3a7f" args="(String sID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static String Bdd.getGroupAns0ByID </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>retourne la 1ere réponse possible dans un groupe donné, tirées de la BDD </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne id de la table group </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>le texte de la reponse0 </dd></dl>
</div>
</div>
<a class="anchor" id="a4d87248886602f4e1c9db77ccdb672a3"></a><!-- doxytag: member="Bdd::getGroupAns1ByID" ref="a4d87248886602f4e1c9db77ccdb672a3" args="(String sID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static String Bdd.getGroupAns1ByID </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>retourne la 2de réponse possible dans un groupe donné, tirées de la BDD </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne id de la table group </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>le texte de la reponse1 </dd></dl>
</div>
</div>
<a class="anchor" id="a87ee20d7e2e7679dcaf7ec8585ee77b2"></a><!-- doxytag: member="Bdd::getIP" ref="a87ee20d7e2e7679dcaf7ec8585ee77b2" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static String Bdd.getIP </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Accesseur pour l'IP de la dernière tentative de connexion à la bdd. </p>
</div>
</div>
<a class="anchor" id="a3e1d62348a3c7fe2142245305515d713"></a><!-- doxytag: member="Bdd::getIsConnected" ref="a3e1d62348a3c7fe2142245305515d713" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static boolean Bdd.getIsConnected </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Renvoie 1 si la l'application est connectée à la BDD. </p>
</div>
</div>
<a class="anchor" id="a90e2bc7668795309c83dd3eb8bf754f3"></a><!-- doxytag: member="Bdd::getPassword" ref="a90e2bc7668795309c83dd3eb8bf754f3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static String Bdd.getPassword </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Accesseur pour le mdp utilisé à la dernière tentative de connexion à la bdd. </p>
</div>
</div>
<a class="anchor" id="ab5524556a4d9ab42d59adbaa68055044"></a><!-- doxytag: member="Bdd::getQuestionAns" ref="ab5524556a4d9ab42d59adbaa68055044" args="(String sIDQuestion)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static int Bdd.getQuestionAns </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sIDQuestion</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>retourne la réponse correcte de la question, tirées de la BDD </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sIDQuestion</em>&nbsp;</td><td>valeur de la colonne id de la table question </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0, 1, 2 respectivement pour reponse0, reponse1, les deux </dd></dl>
</div>
</div>
<a class="anchor" id="a07593679bd22e78ab396c0b0e5b7f577"></a><!-- doxytag: member="Bdd::getSchema" ref="a07593679bd22e78ab396c0b0e5b7f577" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static String Bdd.getSchema </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Accesseur pour le schéma de la dernière tentative de connexion à la bdd. </p>
</div>
</div>
<a class="anchor" id="a6ce16dc2ca3c8ea03af27a23e4366b1f"></a><!-- doxytag: member="Bdd::getUser" ref="a6ce16dc2ca3c8ea03af27a23e4366b1f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static String Bdd.getUser </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Accesseur pour le nom de l'utilisateur de la dernière tentative de connexion à la bdd. </p>
</div>
</div>
<a class="anchor" id="aee23f04528e269e80b708ccbeccc0238"></a><!-- doxytag: member="Bdd::insertDefaultCatRow" ref="aee23f04528e269e80b708ccbeccc0238" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.insertDefaultCatRow </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Ajoute une catégorie par défaut </p>
<dl class="note"><dt><b>Note:</b></dt><dd>le nom de la catégorie est 'Nouvelle cat.' </dd></dl>
</div>
</div>
<a class="anchor" id="a7115a1109d5dc6e2979c63c247e30e0f"></a><!-- doxytag: member="Bdd::insertDefaultGroupRow" ref="a7115a1109d5dc6e2979c63c247e30e0f" args="(String sCat)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.insertDefaultGroupRow </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sCat</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Ajoute un groupe par défaut dans la catégorie identifiée par sCat </p>
<dl class="note"><dt><b>Note:</b></dt><dd>le nom du nouveau groupe est 'RéponseA/RéponseB' </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sCat</em>&nbsp;</td><td>valeur de la colonne nom de la table categorie </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad14c4e64b4df25a322b3257a53aaa156"></a><!-- doxytag: member="Bdd::insertDefaultQuestionRow" ref="ad14c4e64b4df25a322b3257a53aaa156" args="(String sGroupID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.insertDefaultQuestionRow </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sGroupID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Ajoute un groupe par défaut dans la catégorie identifiée par sCat </p>
<dl class="note"><dt><b>Note:</b></dt><dd>le nom du nouveau groupe est 'RéponseA/RéponseB' </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sGroupID</em>&nbsp;</td><td>valeur de la colonne id de la table group </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0e8e7de35efae3adaf10316dc16c6f28"></a><!-- doxytag: member="Bdd::removeCat" ref="a0e8e7de35efae3adaf10316dc16c6f28" args="(String sID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.removeCat </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Supprime la catégorie identifiée par son ID </p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>Supprime aussi tous les group et les question associés via OnDeleteCascade (via MySQL) </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne nom de la table categorie de la catégorie à supprimer </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1980bf150234918019da2f5bc6f41f2d"></a><!-- doxytag: member="Bdd::removeGroup" ref="a1980bf150234918019da2f5bc6f41f2d" args="(String sID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.removeGroup </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Supprime le groupe identifié par son ID </p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>Supprime aussi toutes les question associés via OnDeleteCascade (via MySQL) </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne id de la table group du groupe à supprimer </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="acfe276be49821e269061a235519daa58"></a><!-- doxytag: member="Bdd::removeQuestion" ref="acfe276be49821e269061a235519daa58" args="(String sID)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.removeQuestion </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Supprime la question identifiée par son ID </p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>cohérence de la BDD : il est préférable que personne n'ai répondu à cette question via le site </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne id de la table question de la question à supprimer </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad1f3d723546851f34d5fdfa4acaa3ac5"></a><!-- doxytag: member="Bdd::updateCat" ref="ad1f3d723546851f34d5fdfa4acaa3ac5" args="(String sID, String sName)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.updateCat </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sName</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Modifie la catégorie identifiée par sID </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne nom de la table categorie de la catégorie à modifier </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sName</em>&nbsp;</td><td>nouveau nom à attribuer </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3736fc54c72617e0da6a9bac3a449037"></a><!-- doxytag: member="Bdd::updateGroup" ref="a3736fc54c72617e0da6a9bac3a449037" args="(String sID, String sCat, String sAns0, String sAns1)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.updateGroup </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sCat</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sAns0</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sAns1</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Modifie le groupe identifiée par sID </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne id de la table group du groupe à modifier </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sCat</em>&nbsp;</td><td>nom de la catégorie dans laquelle classer le groupe </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sAns0</em>&nbsp;</td><td>1ere réponse possible </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sAns1</em>&nbsp;</td><td>2de réponse possible </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a21480721dbf1d2b05a1722408d45e494"></a><!-- doxytag: member="Bdd::updateQuestion" ref="a21480721dbf1d2b05a1722408d45e494" args="(String sID, String sGroupID, String sQuest, String sGoodAns)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void Bdd.updateQuestion </td>
<td>(</td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sID</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sGroupID</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sQuest</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>sGoodAns</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Modifie la question identifiée par sID </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sID</em>&nbsp;</td><td>valeur de la colonne id de la table question de la question à modifier </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sGroupID</em>&nbsp;</td><td>Groupe auquel appartient la question </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sQuest</em>&nbsp;</td><td>Intitulé de la question Bonne réponse (0, 1, ou 2 pour reponse1, reponse1, les deux) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/media/data/ProjWeb/Java/<a class="el" href="_bdd_8java.html">Bdd.java</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue May 29 2012 09:05:38 for BurgerQuizz by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>