metier
Class GestionConnection

java.lang.Object
  extended by metier.GestionConnection

public class GestionConnection
extends java.lang.Object

Classe de gestion de connection. Permet de centraliser la gestion d'une connection.

Author:
Ait Elhaj Brahim

Constructor Summary
GestionConnection()
          Crée un objet GestionConnection
 
Method Summary
 java.sql.Connection getConnection()
          Renvoie une connection valide
 void shutDown()
          Fermeture de la connexion.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GestionConnection

public GestionConnection()
Crée un objet GestionConnection

Method Detail

shutDown

public void shutDown()
Fermeture de la connexion. Celle ci devient donc inutilisable. Attention aux opération effectuées ensuite.


getConnection

public java.sql.Connection getConnection()
Renvoie une connection valide