/**
   * fill the order dish list
   *
   * @param order
   * @return
   */
  @Override
  public LinkedList<Dish> fillOrderDishList(LinkedList<Integer> order) {
    DishDAO dishDao = DAOFactory.getFactory(DB_MYSQL).createDishDAO();
    LinkedList<Dish> orderDishList = new LinkedList();
    for (int i = 0; i < order.size(); i++) {
      orderDishList.add(dishDao.selectByID(order.get(i), null));
    }

    return orderDishList;
  }
  /**
   * get completed order
   *
   * @param orderId
   * @return
   */
  @Override
  public LinkedList<Dish> getCompleteOrder(int orderId) {

    LinkedList<Dish> dishList = new LinkedList();

    LinkedList<Integer> dishIdList = selectAllByOrderId(orderId);
    ComponentDAO componentDao = DAOFactory.getFactory(DB_MYSQL).createComponentDAO();
    DishDAO dishDao = DAOFactory.getFactory(DB_MYSQL).createDishDAO();
    for (int i = 0; i < dishIdList.size(); i++) {
      dishList.add(
          dishDao.selectByID(dishIdList.get(i), componentDao.dishContent(dishIdList.get(i))));
    }

    return dishList;
  }