Package com.alexnevsky.hotel.dao

Examples of com.alexnevsky.hotel.dao.FormDAO.find()


      Order order = null;
      order = orderDAO.find(orderId);

      Form form = null;
      form = formDAO.find(order.getFormId());

      logger.info("Admin '" + request.getSession().getAttribute(AttributesManager.PARAM_NAME_LOGIN)
          + "'. Delete '" + order + "'" + " and '" + form + "'" + ". RemoteAddr: " + request.getRemoteAddr());

      orderDAO.delete(order);
View Full Code Here


      Order order = null;
      order = orderDAO.find(orderId);

      Form form = null;
      form = formDAO.find(formId);

      Room room = null;
      room = roomDAO.find(roomId);

      Double amount = null;
View Full Code Here

      Order order = null;
      order = orderDAO.find(orderId);

      Form form = null;
      form = formDAO.find(order.getFormId());

      request.getSession().setAttribute(AttributesManager.PARAM_NAME_ORDER_ID, order.getId());
      request.getSession().setAttribute(AttributesManager.PARAM_NAME_FORM_ID, form.getId());

    } catch (DAOException ex) {
View Full Code Here

      Order order = null;
      order = orderDAO.find(orderId);

      Form form = null;
      form = formDAO.find(order.getFormId());

      if (customer.getId().compareTo(order.getCustomerId()) == 0
          && OrderStatusEnum.CANCELLED.equals(order.getOrderStatus())) {
        logger.info("Customer '" + request.getSession().getAttribute(AttributesManager.PARAM_NAME_LOGIN)
            + "'. Delete '" + order + "'" + " and '" + form + "'" + ". RemoteAddr: "
View Full Code Here

      CustomerDAO customerDAO = daoFactory.getCustomerDAO();
      RoomDAO roomDAO = daoFactory.getRoomDAO();
      CreditCardDAO creditCardDAO = daoFactory.getCreditCardDAO();

      order = orderDAO.find(this.orderId);
      form = formDAO.find(order.getFormId());

      freeRoomList = this.getFreeRooms(form);

      customer = customerDAO.find(order.getCustomerId());
      creditCard = creditCardDAO.find(customer.getCreditCardNumber());
View Full Code Here

      creditCard = creditCardDAO.find(customer.getCreditCardNumber());

      Long orderRoomId = order.getRoomId();

      Long formId = order.getFormId();
      form = formDAO.find(formId);

      orderRoom = roomDAO.find(orderRoomId);
    } catch (DAOException ex) {
      logger.error(ex, ex);
      return MessageManager.DAO_EXCEPTION_ERROR_MESSAGE;
View Full Code Here

      List<Order> orderWithParamRoomList = null;
      orderWithParamRoomList = orderDAO.listWhereRoomAndStatus(room.getId(), OrderStatusEnum.CHECKED);

      for (Order orderTmp : orderWithParamRoomList) {
        Form formTmp = null;
        formTmp = formDAO.find(orderTmp.getFormId());

        Date arrivalTmp = formTmp.getArrival();
        Integer nightsTmp = formTmp.getNights();
        Date departureTmp = new Date();
        GregorianCalendar gregorianCalendarTmp = new GregorianCalendar();
View Full Code Here

        Long orderRoomId = order.getRoomId();

        room = roomDAO.find(orderRoomId);

        Long formId = order.getFormId();
        form = formDAO.find(formId);

        sb.append(this.generateHTML(order, form, room));
      }
    } catch (DAOException ex) {
      logger.error(ex, ex);
View Full Code Here

      OrderDAO orderDAO = daoFactory.getOrderDAO();
      FormDAO formDAO = daoFactory.getFormDAO();
      CustomerDAO customerDAO = daoFactory.getCustomerDAO();

      order = orderDAO.find(this.orderId);
      form = formDAO.find(order.getFormId());
      customer = customerDAO.find(order.getCustomerId());
    } catch (DAOException ex) {
      logger.error(ex, ex);
      return MessageManager.DAO_EXCEPTION_ERROR_MESSAGE;
    }
View Full Code Here

        customer = customerDAO.find(order.getCustomerId());
        creditCard = creditCardDAO.find(customer.getCreditCardNumber());

        Long orderRoomId = order.getRoomId();
        Long formId = order.getFormId();
        form = formDAO.find(formId);
        room = roomDAO.find(orderRoomId);

        sb.append(this.generateHTML(order, customer, creditCard, form, room));
      }
    } catch (DAOException ex) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.