Package factories.exceptions

Examples of factories.exceptions.FactoriesException


   */
  public synchronized int supprimerCommande(Commande c)
    throws SQLException, FactoriesException{
    // verification rapide/complete de l'existence d'une commande
    if(rechercherCommande(c.getIdCommande(), c.getLeClient()) == null)
      throw new FactoriesException(FactoriesException.COMMANDE_EXISTE_PAS);
   
    pDeleteCommande.clearParameters();
    pDeleteCommande.setString(1, c.getIdCommande());
   
    pDeleteLignesCommande.clearParameters();
View Full Code Here


      if(disponible)
        return dispo;
      return indispo;
    }
    // on n'a rien trouve
    throw new FactoriesException(MetierException.PRODUIT_INEXISTANT);
  }
View Full Code Here

      }
     
     
    }else{
      // on ne retourne pas null
      throw new FactoriesException(MetierException.CLIENT_EXISTE_PAS);
     
    }
     
    return c;
  }
View Full Code Here

   * @throws SQLException
   */
  public synchronized int creerClient(Client c) throws SQLException, FactoriesException{
   
    if(this.clientExists(c.getId())){
      throw new FactoriesException(MetierException.CLIENT_EXISTE_DEJA);
    }
   
    pInsererClient.clearParameters();   
   
    pInsererClient.setString(1, c.getId());
View Full Code Here

   */
  public synchronized int supprimerCommande(Commande c)
    throws SQLException, FactoriesException{
    // verification rapide/complete de l'existence d'une commande
    if(rechercherCommande(c.getIdCommande(), c.getLeClient()) == null)
      throw new FactoriesException(FactoriesException.COMMANDE_EXISTE_PAS);
   
    pDeleteCommande.clearParameters();
    pDeleteCommande.setString(1, c.getIdCommande());
   
    pDeleteLignesCommande.clearParameters();
View Full Code Here

      if(disponible)
        return dispo;
      return indispo;
    }
    // on n'a rien trouve
    throw new FactoriesException(MetierException.PRODUIT_INEXISTANT);
  }
View Full Code Here

      }
     
     
    }else{
      // on ne retourne pas null
      throw new FactoriesException(MetierException.CLIENT_EXISTE_PAS);
     
    }
     
    return c;
  }
View Full Code Here

   * @throws SQLException
   */
  public synchronized int creerClient(Client c) throws SQLException, FactoriesException{
   
    if(this.clientExists(c.getId())){
      throw new FactoriesException(MetierException.CLIENT_EXISTE_DEJA);
    }
   
    pInsererClient.clearParameters();   
   
    pInsererClient.setString(1, c.getId());
View Full Code Here

TOP

Related Classes of factories.exceptions.FactoriesException

Copyright © 2018 www.massapicom. 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.