Examples of Abonne


Examples of data.abonne.Abonne

      Date dateConfirm = rsRes.getDate(3);
      int nbPlaces = rsRes.getInt(4);
      String idSeance = rsRes.getString(5);
      //Que faire de cela ?
      String idAbonne = rsRes.getString(6);
      Abonne abo = null;
      if(idAbonne != null){
        FabAbonne.getInstance().setConnection(this.c);
        abo = FabAbonne.getInstance().rechercher(idAbonne);
      }
     
View Full Code Here

Examples of data.abonne.Abonne

    pInsertReservation.setDate(2, r.getDateReserv());
    // On ne fixe pas la date de réservation, elle sera fixée plus tard
    pInsertReservation.setDate(3, null);
    pInsertReservation.setInt(4, r.getNbPersonnes());
    pInsertReservation.setString(5, r.getIdSeance());
    Abonne a = r.getAbonne();
    if (a != null)
      pInsertReservation.setString(6, a.getIdAbo());
    pInsertReservation.setString(7, r.getIdZone());

    //Création de la réservation
    pInsertReservation.executeUpdate();
    pInsertReservation.close();
View Full Code Here

Examples of data.abonne.Abonne

  public Abonne rechercher(String idAbonne) throws SQLException {
    pSelectAbonne.clearParameters();
    pSelectAbonne.setString(1, idAbonne);
   
    ResultSet rsAbonne = pSelectAbonne.executeQuery();
    Abonne a = null;
    FabTheatre ft = FabTheatre.getInstance();
    ft.setConnection(c);
    while(rsAbonne.next()){
      String nom = rsAbonne.getString(2);
      String prenom = rsAbonne.getString(3);
      String adresse = rsAbonne.getString(4);
      int nbPlaces = rsAbonne.getInt(5);
      Date debutVal = rsAbonne.getDate(6);
      Date finVal = rsAbonne.getDate(7);     
      String idZone = rsAbonne.getString(8);
      Zone z = ft.parametrerZone(idZone);     
     
      a = new Abonne(idAbonne,nom,prenom,adresse,debutVal,finVal,nbPlaces,z);
    }
    return a;
  }
View Full Code Here

Examples of data.abonne.Abonne

   * Permet d'indiquer l'existence ou non d'un abonné
   * @return true si l'abonné existe
   */
  private Abonne existe(String idAbonne){
    Demande d = new Demande();
    Abonne a = d.abonneExiste(idAbonne);
    if(a == null){
      String message = "Cet abonné n'existe pas !";
      GU.warn(message);
    }
      //System.out.println("Cette abonné n'existe pas ! ");     
View Full Code Here

Examples of data.abonne.Abonne

      if(idAbonne.trim().equals("")){
        String message = "Vous devez saisir un identifiant d'abonné";
        GU.info(message);
        return;
      }
      Abonne abonne = existe(idAbonne);
      // Si l'objet est non nul
      if (abonne!=null){
       
        NtpPanel next = new InfosAbonne(abonne, p,cdm.getDate(), owner,this);
        // Affichage de l'écran suivant
View Full Code Here

Examples of data.abonne.Abonne

   * @param idAbonne L'identifiant de l'abonné
   * @return L'obet <code>Abonne</code> ou null si l'identifiant n'est associé à aucun abonné.
   */
  public Abonne abonneExiste(String idAbonne){
    FabAbonne fa = FabAbonne.getInstance();
    Abonne a = null;
    try{
      fa.setConnection(gc.getConnection());
      a = fa.rechercher(idAbonne);     
    }catch(SQLException se){
      se.printStackTrace();
View Full Code Here

Examples of data.abonne.Abonne

   * @param idPiece L'identifiant de la piéce.
   * @return true si l'abonné a déja réservé pour cette piéce
   */
  public boolean aReserve(String idAbonne, String idPiece) {
    FabAbonne fa = FabAbonne.getInstance();
    Abonne a = null;
    try{
      fa.setConnection(gc.getConnection());
      String idReservation = fa.aReserve(idAbonne, idPiece);
      //System.out.println("idDejaReserve = "+idReservation);
      return idReservation!=null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.