Package com.alexnevsky.hotel.dao

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


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

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

      Double amount = null;
      if (form != null && room != null) {
        amount = room.getNightPrice() * form.getNights();
        orderDAO.update(roomId, amount, order.getId());
View Full Code Here


      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

      Room room = null;

      for (Order order : orderList) {
        Long orderRoomId = order.getRoomId();

        room = roomDAO.find(orderRoomId);

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

        sb.append(this.generateHTML(order, form, room));
View Full Code Here

        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) {
      logger.error(ex, 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.