factories
Class FabTheatre

java.lang.Object
  extended by factories.FabTheatre

public class FabTheatre
extends java.lang.Object

Author:
brahim

Method Summary
static FabTheatre getInstance()
          Recuperation du singleton de FabPersonne
 int getPlacesRestantes(java.lang.String idSeance, java.lang.String idZone)
           
 Theatre getTheatre()
           
 java.util.Collection getZones()
           
 Zone parametrerZone(java.lang.String idZone)
           
 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 FabTheatre 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

parametrerZone

public Zone parametrerZone(java.lang.String idZone)
                    throws java.sql.SQLException
Parameters:
z -
Returns:
Throws:
java.sql.SQLException

getZones

public java.util.Collection getZones()
                              throws java.sql.SQLException
Returns:
Throws:
java.sql.SQLException

getPlacesRestantes

public int getPlacesRestantes(java.lang.String idSeance,
                              java.lang.String idZone)
                       throws java.sql.SQLException
Parameters:
idSeance -
idZone -
Returns:
Throws:
java.sql.SQLException

getTheatre

public Theatre getTheatre()
                   throws java.sql.SQLException
Returns:
Throws:
java.sql.SQLException