Package by.bsuir.hypermarket.dao.exception

Examples of by.bsuir.hypermarket.dao.exception.DaoException


        fillUpAddress(resultSet, address);
        addresses.add(address);
      }
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    } catch (SQLException e) {
      log.error("Error during searching all address entities", e);
      throw new DaoException(e);
    }

    return addresses;
  }
View Full Code Here


      if (resultSet.next()) {
        fillUpAddress(resultSet, address);
      }
    } catch (SQLException e) {
      log.error("Error during address entity searching by id", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    }
    return address;
  }
View Full Code Here

        fillUpCategory(resultSet, category);
        categories.add(category);
      }
    } catch (SQLException e) {
      log.error("Error during searching all entities", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    }
    return categories;
  }
View Full Code Here

      if (resultSet.next()) {
        fillUpCategory(resultSet, category);
      }
    } catch (SQLException e) {
      log.error("Error during serching entity by id", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    }
    return category;
  }
View Full Code Here

        fillUpCategory(resultSet, category);
        categories.add(category);
      }
    } catch (SQLException e) {
      log.error("Error during statement creation or execution", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    }
    return categories;
  }
View Full Code Here

   
        departments.add(department);
      }
    } catch (SQLException e) {
      log.error("Error during statement creation", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
   
    return departments;
  }
View Full Code Here

        ResultSet categoriesResultSet = categoryStatement.executeQuery();
        setDepartmentCategories(categoriesResultSet, department);
      }
    } catch (SQLException e) {
      log.error("Error during statement creation", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    }
    return department;
  }
View Full Code Here

        fillUpGoodsCondition(resultSet, goodsCondition);           
        conditions.add(goodsCondition);
      }
    } catch (SQLException e) {
      log.error("Error during statement creation", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    }
    return conditions;
  }
View Full Code Here

      if (resultSet.next()) {
        fillUpGoodsCondition(resultSet, goodsCondition);
      }
    } catch (SQLException e) {
      log.error("Error during statement creation", e);
      throw new DaoException(e);
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    }
    return goodsCondition;
  }
View Full Code Here

        fillUpHypermarket(resultSet, hypermarket);
        hypermarkets.add(hypermarket);
      }
    } catch (ConnectionPoolException e) {
      log.error("Error during getting connection from the pool", e);
      throw new DaoException(e);
    } catch (SQLException e) {
      log.error("Error during searching all address entities", e);
      throw new DaoException(e);
    }
    return hypermarkets;
  }
View Full Code Here

TOP

Related Classes of by.bsuir.hypermarket.dao.exception.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.