Package br.com.procempa.modus.session.exceptions

Examples of br.com.procempa.modus.session.exceptions.PersistException


      String msg = "Falha na persist�ncia do objeto do tipo "
          + p.getClass() + ". ";
      msg += p.getId() != null ? "Id do objeto: " + p.getId() : "";
      ExceptionLog log = ExceptionLogService.log(e, msg);

      throw new PersistException(log);
    }
    return this.persistent;
  }
View Full Code Here


      }
    } catch (NamingException e) {
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
    //TODO Trocar Exception por PersistException quando for resolvido o problema
    //da serializa��o de arrays no ejb 3
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
     
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia do Equipamento.");
      throw new PersistException(log);
    }

    return equipamento;
  }
View Full Code Here

      String msg = "Falha na persist�ncia do objeto do tipo "
          + p.getClass() + ". ";
      msg += p.getId() != null ? "Id do objeto: " + p.getId() : "";
      ExceptionLog log = ExceptionLogService.log(e, msg);

      throw new PersistException(log);
    }
    return this.persistent;
  }
View Full Code Here

      String msg = "Falha na persist�ncia do objeto do tipo "
          + p.getClass() + ". ";
      msg += p.getId() != null ? "Id do objeto: " + p.getId() : "";
      ExceptionLog log = ExceptionLogService.log(e, msg);

      throw new PersistException(log);
    }
    return this.persistent;
  }
View Full Code Here

      }
    } catch (NamingException e) {
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
      // TODO Trocar Exception por PersistException quando for resolvido o
      // problema
      // da serializa��o de arrays no ejb 3
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia de Conte�do.");
      throw new PersistException(log);
    }

    return conteudo;
  }
View Full Code Here

      }
    } catch (NamingException e) {
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
      // TODO Trocar Exception por PersistException quando for resolvido o
      // problema
      // da serializa��o de arrays no ejb 3
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }

      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia do Equipamento.");
      throw new PersistException(log);
    }

    return equipamento;
  }
View Full Code Here

      }
    } catch (NamingException e) {
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
      // TODO Trocar Exception por PersistException quando for resolvido o
      // problema
      // da serializa��o de arrays no ejb 3
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }

      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia da Visita.");
      throw new PersistException(log);
    }

    return visita;
  }
View Full Code Here

      }
    } catch (NamingException ne) {
      ne.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(ne,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
    } catch (SearchException se) {
      se.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(se,
          "Falha na busca de usu�rio");
      throw new PersistException(log);
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia de Usu�rio.");
      throw new PersistException(log);
    }

    return usuario;
  }
View Full Code Here

      }
    } catch (NamingException ne) {
      ne.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(ne,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
    } catch (SearchException se) {
      se.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(se,
          "Falha na busca de usu�rio");
      throw new PersistException(log);
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia de Usu�rio.");
      throw new PersistException(log);
    }

    return usuario;
  }
View Full Code Here

      }
    } catch (NamingException e) {
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na obten��o do PersistentAccess.");
      throw new PersistException(log);
      // TODO Trocar Exception por PersistException quando for resolvido o
      // problema
      // da serializa��o de arrays no ejb 3
    } catch (Exception e) {
      if (e instanceof ValidationException) {
        throw (ValidationException) e;
      }
      e.printStackTrace();
      ExceptionLog log = ExceptionLogService.log(e,
          "Falha na persist�ncia de Curso.");
      throw new PersistException(log);
    }
    return curso;
  }
View Full Code Here

TOP

Related Classes of br.com.procempa.modus.session.exceptions.PersistException

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.