Package ecar.exception

Examples of ecar.exception.ECARException


        try {
            lista = this.session.createQuery("from AcompReferenciaAref a where a.tipoAcompanhamentoTa.indMonitoramentoTa = 'N' order by a.orgaoOrg.codOrg asc, a.anoAref desc, a.mesAref desc, a.diaAref desc").list();
        } catch (HibernateException e) {
            this.logger.error(e);
            throw new ECARException("erro.hibernateException");
        }
       
        return lista;
    }
View Full Code Here


          q.setLong("codOrg", orgao.getCodOrg().longValue());
         
          return q.list();
        } catch (HibernateException e) {
            this.logger.error(e);
            throw new ECARException("erro.hibernateException");
        }
    }
View Full Code Here

          q.setLong("codOrg", orgao.getCodOrg().longValue());
         
            return q.list();
        } catch (HibernateException e) {
            this.logger.error(e);
            throw new ECARException("erro.hibernateException");
        }
    }
View Full Code Here

          return (AcompRefLimitesArl) this.getSession()
                .get(AcompRefLimitesArl.class,
                    new AcompRefLimitesArlPK(acomp.getCodAref(),funcaoAcomp.getCodTpfa()));
        } catch(HibernateException e){
          this.logger.error(e);
            throw new ECARException(e);
        }      
}
View Full Code Here

             
              if(acompRefItAri.getStatusRelatorioSrl() != null
                  && acompRefItAri.getStatusRelatorioSrl().getCodSrl() != null
                  && acompRefItAri.getStatusRelatorioSrl().getCodSrl().intValue() == AcompReferenciaItemDao.STATUS_LIBERADO) {

                throw new ECARException("periodoReferencia.exclusao.posicaoJaLiberada", null, new String[] {acompRefItAri.getItemEstruturaIett().getNomeIett()});

              }
              /*
              C�digo anterior
              ---------------
View Full Code Here

      else {
        return null
      }
    } catch (HibernateException e){
      this.logger.error(e);
      throw new ECARException (e);
    }
    }
View Full Code Here

      else {
        return null
      }
    } catch (HibernateException e){
      this.logger.error(e);
      throw new ECARException (e);
    }
    }
View Full Code Here

     * @param acompanhamentoReferencia
     * @throws ECARException
     */
    public void validaInclusaoExercicioPeriodoReferencia(AcompReferenciaAref acompanhamentoReferencia) throws ECARException{       
      if(getExercicio(acompanhamentoReferencia.getAnoAref(), acompanhamentoReferencia.getMesAref(), acompanhamentoReferencia.getDiaAref()) == null) {
        throw new ECARException("periodoReferencia.validacao.exercicioNaoEncontrado");
      }
    }
View Full Code Here

     */
    public void validaInclusaoDiaMesAnoPeriodoReferencia(AcompReferenciaAref acompanhamentoReferencia) throws ECARException{       
      // se uma referencia com orgao especifico se existir a mesma referencia dia, mes e ano
     
      if(existeMesmaReferenciaDiaMesAno(acompanhamentoReferencia)) {
        throw new ECARException("periodoReferencia.validacao.mesAnoTipoAcompanhamento.jaExistente");
       
      }
    }
View Full Code Here

            return retorno;
       
           
        }catch(HibernateException e){
          this.logger.error(e);
            throw new ECARException(e);
        }
    }
View Full Code Here

TOP

Related Classes of ecar.exception.ECARException

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.