public List<Comment> getComments(Date commentDate, int start, int count) {
   return dao.getComments(commentDate, start, count);
 }
 public List<Comment> getLowScoreComments(int score, int start, int count) {
   return dao.getLowScoreComments(score, start, count);
 }
 public int getCommentCount(Date commentDate) {
   return dao.getCommentCount(commentDate);
 }
 public List<Comment> getUserComments(String userId, int start, int count) {
   return dao.getUserComments(userId, start, count);
 }
 public int getLowScoreCommentCount(int score) {
   return dao.getLowScoreCommentCount(score);
 }
 public int getUserCommentCount(String userId) {
   return dao.getUserCommentCount(userId);
 }
 public List<Comment> getBookComments(String bookId, int start, int count) {
   return dao.getBookComments(bookId, start, count);
 }
 public int getCountByBook(String bookId) {
   return dao.getCountByBook(bookId);
 }
 public double getAvgScoreByBook(String bookId) {
   return dao.getAvgScoreByBook(bookId);
 }
Esempio n. 10
0
 public void save(Comment comment) {
   dao.save(comment);
 }