<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">BDatabase</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></span></div>
<divclass="block"><p>Methodes pour les interaction avec une base de donnees</p></div>
</section>
<sectionclass="summary">
<ulclass="summary-list">
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="caption"><span>Fields</span></div>
<divclass="summary-table three-column-summary">
<divclass="table-header col-first">Modifier and Type</div>
<divclass="col-first even-row-color"><code>protected <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.sql/java/sql/Connection.html"title="class or interface in java.sql"class="external-link">Connection</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#fetchAll(java.lang.String)"class="member-name-link">fetchAll</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> request)</code></div>
<divclass="block">Recuperer les informations d'un requete de type SELECT.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="block">Recuperer le nom de la base de donnees.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.sql/java/sql/Connection.html"title="class or interface in java.sql"class="external-link">Connection</a></code></div>
<divclass="block">Recuperer le status de connection.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#insertRow(java.lang.String,java.lang.String%5B%5D,java.lang.String%5B%5D)"class="member-name-link">insertRow</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> table,
<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] col,
<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] value)</code></div>
<divclass="block">Insert une ligne dans une table.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#updateRow(java.lang.String)"class="member-name-link">updateRow</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> request)</code></div>
<divclass="block">Faire des requetes de type UPDATE SET (il y aura plus d'argument prochainement).</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<sectionclass="details">
<ulclass="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<sectionclass="field-details"id="field-detail">
<h2>Field Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="sharedObject">
<h3>sharedObject</h3>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.sql/java/sql/Connection.html"title="class or interface in java.sql"class="external-link">Connection</a></span> <spanclass="element-name">sharedObject</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>></span> <spanclass="element-name">fetchAll</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> request)</span></div>
<divclass="block">Recuperer les informations d'un requete de type SELECT.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>request</code> - Le SELECT a faire (il y aura plus d'argument prochainement)</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">insertRow</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> table,
<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] col,
<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] value)</span></div>
<divclass="block">Insert une ligne dans une table.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>table</code> - La table</dd>
<dd><code>col</code> - Tableau qui contient les colonnes d'affectation</dd>
<dd><code>value</code> - Valeur des colonnes</dd>
<dt>Returns:</dt>
<dd>Retourne true si ca a reussit et false dans le cas inverse</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">updateRow</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> request)</span></div>
<divclass="block">Faire des requetes de type UPDATE SET (il y aura plus d'argument prochainement).</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>request</code> - La requete</dd>
<dt>Returns:</dt>
<dd>Si oui ou non ca a fonctionne</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getSharedObject()">
<h3>getSharedObject</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.sql/java/sql/Connection.html"title="class or interface in java.sql"class="external-link">Connection</a></span> <spanclass="element-name">getSharedObject</span>()</div>
<divclass="block">Recuperer l'objet Connection pour pouvoir utiliser ses methodes.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>L 'objet Connection.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getUser()">
<h3>getUser</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">getUser</span>()</div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">getHost</span>()</div>
<divclass="block">Recuperer l'hote courant.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>L 'hote.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getDatabaseName()">
<h3>getDatabaseName</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">getDatabaseName</span>()</div>
<divclass="block">Recuperer le nom de la base de donnees.</div>
<divclass="block">Recuperer le status de connection.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Le status de connection.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toString()">
<h3>toString</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">toString</span>()</div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>