factories
Class FabAbonne

java.lang.Object
  extended by factories.FabAbonne

public class FabAbonne
extends java.lang.Object

Author:
brahim

Method Summary
 java.lang.String aReserve(java.lang.String idAbonne, java.lang.String idPiece)
           
static FabAbonne getInstance()
          Recuperation du singleton de FabPersonne
 Abonne rechercher(java.lang.String idAbonne)
           
 void setConnection(java.sql.Connection c)
          Mise en place d'une connexion JDBC au singleton
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FabAbonne getInstance()
Recuperation du singleton de FabPersonne

Returns:

setConnection

public void setConnection(java.sql.Connection c)
                   throws java.sql.SQLException
Mise en place d'une connexion JDBC au singleton

Parameters:
c -
Throws:
java.sql.SQLException

rechercher

public Abonne rechercher(java.lang.String idAbonne)
                  throws java.sql.SQLException
Parameters:
idAbonne -
Returns:
Throws:
java.sql.SQLException

aReserve

public java.lang.String aReserve(java.lang.String idAbonne,
                                 java.lang.String idPiece)
                          throws java.sql.SQLException
Parameters:
idAbonne -
idPiece -
Returns:
Le numéro de resevation de cette Abonnée pour cette pièce, null si pas de reservation
Throws:
java.sql.SQLException