Package com.manager

Class DB2024TEAM07_RestaurantManager

java.lang.Object
com.manager.DB2024TEAM07_RestaurantManager

public class DB2024TEAM07_RestaurantManager extends Object
This class manages restaurant functionalities in the E-MATEASY application. It provides methods for adding, updating, searching, and deleting restaurants from the database.
  • Field Details

  • Constructor Details

    • DB2024TEAM07_RestaurantManager

      public DB2024TEAM07_RestaurantManager()
  • Method Details

    • addRestaurant

      public static void addRestaurant(Scanner scanner)
      Adds a new restaurant to the database.
      Parameters:
      scanner - a Scanner object to read user input
    • updateRestaurant

      public static void updateRestaurant(Scanner scanner, DB2024TEAM07_RestaurantDAO restaurantDAO)
      Updates an existing restaurant in the database.
      Parameters:
      scanner - a Scanner object to read user input
      restaurantDAO - an instance of the DB2024TEAM07_RestaurantDAO class
    • searchRestaurant

      public static void searchRestaurant(Scanner scanner)
      Searches for restaurants based on various criteria.
      Parameters:
      scanner - a Scanner object to read user input
    • searchRestaurantByCategory

      public static void searchRestaurantByCategory(Scanner scanner)
      Searches for restaurants by cuisine type.
      Parameters:
      scanner - a Scanner object to read user input
    • deleteRestaurant

      public static void deleteRestaurant(Scanner scanner)
      Deletes a restaurant from the database.
      Parameters:
      scanner - a Scanner object to read user input
    • displayAllRestaurants

      public static void displayAllRestaurants()
      Displays a list of all restaurants in the database.
    • displayRandomRestaurant

      public static void displayRandomRestaurant()
      Displays a randomly selected restaurant from the database.