Examples of PianoIasException


Examples of it.pdor.gestionePratica.exception.PianoIasException

    return lista;
  }
 
  public void riscontiFinanziariMutuoPianoIas(Mutuo mutuo) throws PianoIasException {
    if(mutuo.getDataDecorrenza()==null){
      throw new PianoIasException(messages.getMessage("gestionePratica.pianoIas.dataDecorrenzaMancante"));
    }
    try {     
      SimpleDateFormat f = new SimpleDateFormat("dd/MM/yyyy");
      final StringBuffer call = new StringBuffer("{call RISCONTI_FINANZIARI_MUTUO(");
      call.append("'").append(f.format(mutuo.getDataDecorrenza())).append("', ");
      call.append("'01/01/1960', '31/12/2999', '").append(f.format(mutuo.getDataDecorrenza())).append("', ");
      call.append("'31/12/2999', '").append(mutuo.getCodiceSocietaVeicolo()).append("', ");
      call.append("null , null , null , null , null , null , ").append(mutuo.getNumeroMutuo()).append(", ");
      call.append("'L' , 'PP')}");
     
      getJdbcTemplate().execute(call.toString());
    } catch (DataAccessException e) {
      log.error("Errore nella chiamata alla procedura RISCONTI_FINANZIARI_MUTUO", e);
      throw new PianoIasException(messages.getMessage("gestionePratica.pianoIas.erroreChiamata"));
    } catch (Exception e) {
      log.error("Errore nella chiamata alla procedura RISCONTI_FINANZIARI_MUTUO", e);
      throw new PianoIasException(messages.getMessage("gestionePratica.pianoIas.erroreChiamata"));
    }
  }
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.