Package com.jdbc.view

Class DB2024TEAM07_ResReviewVO

java.lang.Object
com.jdbc.view.DB2024TEAM07_ResReviewVO

public class DB2024TEAM07_ResReviewVO extends Object
This class represents a Value Object (VO) for a restaurant review in the E-MATEASY application. A VO is a plain data transfer object that encapsulates data related to a specific entity
  • Field Details

    • review_id

      private int review_id
    • user_id

      private String user_id
    • res_name

      private String res_name
    • rating

      private int rating
    • review_content

      private String review_content
  • Constructor Details

    • DB2024TEAM07_ResReviewVO

      public DB2024TEAM07_ResReviewVO()
    • DB2024TEAM07_ResReviewVO

      public DB2024TEAM07_ResReviewVO(int review_id, String user_id, String res_name, int rating, String review_content)
      Constructor to initialize all fields of the VO.
      Parameters:
      review_id - unique identifier for the review
      user_id - username of the user who wrote the review
      res_name - name of the restaurant associated with the review
      rating - rating given to the restaurant by the user (1-5 stars)
      review_content - content of the review written by the user
  • Method Details

    • getReview_id

      public int getReview_id()
      Getter method for the review ID.
      Returns:
      the review ID
    • getUser_id

      public String getUser_id()
      Getter method for the user ID.
      Returns:
      the user ID
    • getRes_name

      public String getRes_name()
      Getter method for the restaurant name.
      Returns:
      the restaurant name
    • getRating

      public int getRating()
      Getter method for the rating.
      Returns:
      the rating
    • getReview_content

      public String getReview_content()
      Getter method for the review content.
      Returns:
      the review content