Package moblima.entities
Class Review
java.lang.Object
moblima.entities.Review
The type Review.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The constant MAX_RATING.static final int
The constant MIN_RATING. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets author id.Gets author name.getId()
Gets id.int
Gets movie id.int
Gets rating.Gets review.void
setAuthorId
(String authorId) Sets author id.void
setAuthorName
(String authorName) Sets author name.void
Sets id.void
setMovieId
(int movieId) Sets movie id.void
setRating
(int rating) Sets rating.void
Sets review.toString()
-
Field Details
-
MIN_RATING
public static final int MIN_RATINGThe constant MIN_RATING.- See Also:
-
MAX_RATING
public static final int MAX_RATINGThe constant MAX_RATING.- See Also:
-
-
Constructor Details
-
Review
public Review(String id, int movieId, String review, int rating, String authorName, String authorId) Instantiates a new Review.- Parameters:
id
- the idmovieId
- the movie idreview
- the reviewrating
- the ratingauthorName
- the author nameauthorId
- the author id
-
Review
Instantiates a new Review.- Parameters:
cloneReview
- the clone review
-
-
Method Details
-
getId
Gets id.- Returns:
- the id
-
setId
Sets id.- Parameters:
id
- the id
-
getMovieId
public int getMovieId()Gets movie id.- Returns:
- the movie id
-
setMovieId
public void setMovieId(int movieId) Sets movie id.- Parameters:
movieId
- the movie id
-
getReview
Gets review.- Returns:
- the review
-
setReview
Sets review.- Parameters:
review
- the review
-
getRating
public int getRating()Gets rating.- Returns:
- the rating
-
setRating
public void setRating(int rating) Sets rating.- Parameters:
rating
- the rating
-
getAuthorName
Gets author name.- Returns:
- the author name
-
setAuthorName
Sets author name.- Parameters:
authorName
- the author name
-
getAuthorId
Gets author id.- Returns:
- the author id
-
setAuthorId
Sets author id.- Parameters:
authorId
- the author id
-
toString
-