Package com.alexnevsky.hotel.dao

Examples of com.alexnevsky.hotel.dao.CustomerDAO


    try {
      AbstractDAOFactory daoFactory = Controller.getDAOFactory();

      OrderDAO orderDAO = daoFactory.getOrderDAO();
      FormDAO formDAO = daoFactory.getFormDAO();
      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());

      Long orderRoomId = order.getRoomId();

      Long formId = order.getFormId();
View Full Code Here


    List<Customer> customerList = null;

    try {
      AbstractDAOFactory daoFactory = Controller.getDAOFactory();

      CustomerDAO customerDAO = daoFactory.getCustomerDAO();

      customerList = customerDAO.list();
    } catch (DAOException ex) {
      logger.error(ex, ex);
      return MessageManager.DAO_EXCEPTION_ERROR_MESSAGE;
    }
View Full Code Here

    try {
      AbstractDAOFactory daoFactory = Controller.getDAOFactory();

      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

    try {
      AbstractDAOFactory daoFactory = Controller.getDAOFactory();

      OrderDAO orderDAO = daoFactory.getOrderDAO();
      FormDAO formDAO = daoFactory.getFormDAO();
      CustomerDAO customerDAO = daoFactory.getCustomerDAO();
      RoomDAO roomDAO = daoFactory.getRoomDAO();
      CreditCardDAO creditCardDAO = daoFactory.getCreditCardDAO();

      List<Order> orderList = null;
      orderList = orderDAO.list();

      Customer customer = null;
      CreditCard creditCard = null;
      Form form = null;
      Room room = null;

      for (Order order : orderList) {
        customer = customerDAO.find(order.getCustomerId());
        creditCard = creditCardDAO.find(customer.getCreditCardNumber());

        Long orderRoomId = order.getRoomId();
        Long formId = order.getFormId();
        form = formDAO.find(formId);
View Full Code Here

TOP

Related Classes of com.alexnevsky.hotel.dao.CustomerDAO

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.