Package application.exceptions

Examples of application.exceptions.DataFormatException


   * -----------------------------------------------------
   */
  public void ajouter() throws DataFormatException, SQLException
  {
    if(((_individu.getPrenom()== null) && (_individu.getNom() == null)) || (_numFilm == 0))
      throw new DataFormatException("Les attributs prenom, nom et numFilm doivent etre renseignes.");

    // Ajout dans la base de donnees
    CallableStatement cst = _DB.prepareCall("{call majVideotheque.ajouterActeur(?, ?, ?)}");
    cst.setInt(1, _numFilm);
    cst.setString(2, _individu.getNom());
View Full Code Here


   * -----------------------------------------------------
   */
  public void ajouter(CallableStatement cst) throws DataFormatException, SQLException
  {
    if(((_individu.getPrenom()== null) && (_individu.getNom() == null)) || (_numFilm == 0))
      throw new DataFormatException("Les attributs prenom, nom et numFilm doivent etre renseignes.");

    // Ajout dans la base de donnees
    cst.setInt(1, _numFilm);
    cst.setString(2, _individu.getNom());
    cst.setString(3, _individu.getPrenom());
View Full Code Here

TOP

Related Classes of application.exceptions.DataFormatException

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.