Class DB2024TEAM07_Restaurant

java.lang.Object
com.jdbc.model.DB2024TEAM07_Restaurant

public class DB2024TEAM07_Restaurant extends Object
DB 2024 team 07 restaurant.
  • Field Details

    • res_name

      String res_name
      The Res name.
    • res_id

      int res_id
      The Res id.
    • phone_num

      String phone_num
      The Phone num.
    • address

      String address
      The Address.
    • operating_hours

      String operating_hours
      The Operating hours.
    • break_time

      String break_time
      The Break time.
    • rating

      float rating
      The Rating.
    • cuisine_type

      String cuisine_type
      The Cuisine type.
    • location

      String location
      The Location.
  • Constructor Details

    • DB2024TEAM07_Restaurant

      public DB2024TEAM07_Restaurant(String res_name, int res_id, String phone_num, String address, String operating_hours, String break_time, float rating, String cuisine_type, String location)
      Instantiates a new Db 2024 team 07 restaurant.
      Parameters:
      res_name - the res name
      res_id - the res id
      phone_num - the phone num
      address - the address
      operating_hours - the operating hours
      break_time - the break time
      rating - the rating
      cuisine_type - the cuisine type
      location - the location
  • Method Details

    • getRes_name

      public String getRes_name()
      Gets res name.
      Returns:
      the res name
    • setRes_name

      public void setRes_name(String res_name)
      Sets res name.
      Parameters:
      res_name - the res name
    • getRes_id

      public int getRes_id()
      Gets res id.
      Returns:
      the res id
    • setRes_id

      public void setRes_id(int res_id)
      Sets res id.
      Parameters:
      res_id - the res id
    • getPhone_num

      public String getPhone_num()
      Gets phone num.
      Returns:
      the phone num
    • setPhone_num

      public void setPhone_num(String phone_num)
      Sets phone num.
      Parameters:
      phone_num - the phone num
    • getAddress

      public String getAddress()
      Gets address.
      Returns:
      the address
    • setAddress

      public void setAddress(String address)
      Sets address.
      Parameters:
      address - the address
    • getOperating_hours

      public String getOperating_hours()
      Gets operating hours.
      Returns:
      the operating hours
    • setOperating_hours

      public void setOperating_hours(String operating_hours)
      Sets operating hours.
      Parameters:
      operating_hours - the operating hours
    • getBreak_time

      public String getBreak_time()
      Gets break time.
      Returns:
      the break time
    • setBreak_time

      public void setBreak_time(String break_time)
      Sets break time.
      Parameters:
      break_time - the break time
    • getRating

      public float getRating()
      Gets rating.
      Returns:
      the rating
    • setRating

      public void setRating(float rating)
      Sets rating.
      Parameters:
      rating - the rating
    • getCuisine_type

      public String getCuisine_type()
      Gets cuisine type.
      Returns:
      the cuisine type
    • setCuisine_type

      public void setCuisine_type(String cuisine_type)
      Sets cuisine type.
      Parameters:
      cuisine_type - the cuisine type
    • getLocation

      public String getLocation()
      Gets location.
      Returns:
      the location
    • setLocation

      public void setLocation(String location)
      Sets location.
      Parameters:
      location - the location
    • toString

      public String toString()
      Overrides the `toString` method to provide a formatted representation of the DB2024TEAM07_Restaurant object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the restaurant