Package br.com.buyFast.integration.dao

Examples of br.com.buyFast.integration.dao.DaoException


      List<T> list = getSessionFactory().getCurrentSession().createQuery("FROM " + $Class.getName() + " ORDER BY id DESC").list();
      return list;
    } catch (Exception e) {
      String messageError = "Erro ao executar query para " + getObjectClass().getSimpleName();
      logger.error(messageError, e);
      throw new DaoException(messageError, e);
    }
  }
View Full Code Here


    try {
      getSessionFactory().getCurrentSession().flush();
    } catch (Exception e) {
      String messageError = "Erro ao atualizar da sessão.";
      logger.error(messageError, e);
      throw new DaoException(messageError, e);
    }
  }
View Full Code Here

//      .add(Restrictions.ilike("smallDescription", keyWord, MatchMode.ANYWHERE))
      .list();
    } catch (Exception e) {
      String error = "Erro ao obter lista de produto pela chave " + keyWord;
      logger.error(error, e);
      throw new DaoException(error, e);
    }
  }
View Full Code Here

          .add(Restrictions.ilike("user", user))
          .add(Restrictions.ilike("password", password)).uniqueResult();
    } catch (Exception e) {
      String messageError = "Erro ao obter administrador.";
      logger.error(messageError, e);
      throw new DaoException(messageError, e);
    }
  }
View Full Code Here

          .add(Restrictions.ilike("user", user))
          .add(Restrictions.ilike("password", password)).uniqueResult();
    } catch (Exception e) {
      String messageError = "Erro ao obter funcionário.";
      logger.error(messageError, e);
      throw new DaoException(messageError, e);
    }
  }
View Full Code Here

TOP

Related Classes of br.com.buyFast.integration.dao.DaoException

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.