Package br.com.buyFast.service

Examples of br.com.buyFast.service.ServiceException


      addressDao.save(customer.getAddress());
      customerDao.save(customer);
    } catch (DaoException e) {
      String error = "Erro ao salvar cadastro do cliente.";
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here


    try {
      return this.productDao.productSearch(keyWord);
    } catch (DaoException e) {
      String error = "Erro ao obter lista de produtos para " + keyWord;
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here

    try {
      this.customerDao.update(customer);
    } catch (DaoException e) {
      String error = "Erro ao atualizar cliente " + customer;
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here

    try {
      return this.bankDao.searchById(id);
    } catch (DaoException e) {
      String error = "Erro ao obter banco.";
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here

    try {
      return this.bankDao.all();
    } catch (DaoException e) {
      String error = "Erro ao obter a lista de bancos da base de dados.";
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here

    try {
      this.bankDao.delete(bank);
    } catch (DaoException e) {
      String error = "Erro ao remover banco " + bank + " da base de dados.";
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here

    try {
      this.bankDao.save(bank);
    } catch (DaoException e) {
      String error = "Erro ao persistir banco " + bank + ".";
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here

    try {
      this.bankDao.update(bank);
    } catch (DaoException e) {
      String error = "Erro ao atualizar banco " + bank + ".";
      logger.error(error, e);
      throw new ServiceException(error, e);
    }
  }
View Full Code Here

      logger.info("Salvando pedido " + order + " no banco de dados ...");
      return this.orderDao.save(order);
    } catch (Exception e) {
      String messageError = "Erro ao salvar pedido " + order + ".";
      logger.error(messageError, e);
      throw new ServiceException(messageError, e);
    }
  }
View Full Code Here

      logger.info("Salvando item de pedido " + itemsOrder + " no banco de dados ...");
      return this.itemsOrderDao.save(itemsOrder);
    } catch (Exception e) {
      String messageError = "Erro ao salvar item de pedido " + itemsOrder + ".";
      logger.error(messageError, e);
      throw new ServiceException(messageError, e);
    }
  }
View Full Code Here

TOP

Related Classes of br.com.buyFast.service.ServiceException

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.