Package com.jdbc.view
Class DB2024TEAM07_ResReviewVO
java.lang.Object
com.jdbc.view.DB2024TEAM07_ResReviewVO
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDB2024TEAM07_ResReviewVO(int review_id, String user_id, String res_name, int rating, String review_content) Constructor to initialize all fields of the VO. -
Method Summary
Modifier and TypeMethodDescriptionintGetter method for the rating.Getter method for the restaurant name.Getter method for the review content.intGetter method for the review ID.Getter method for the user ID.
-
Field Details
-
review_id
private int review_id -
user_id
-
res_name
-
rating
private int rating -
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 reviewuser_id- username of the user who wrote the reviewres_name- name of the restaurant associated with the reviewrating- 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
Getter method for the user ID.- Returns:
- the user ID
-
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
Getter method for the review content.- Returns:
- the review content
-