Class CommentService

java.lang.Object
com.esprit.services.products.CommentService
All Implemented Interfaces:
IService<Comment>

public class CommentService extends Object implements IService<Comment>
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • connection

      private final Connection connection
  • Constructor Details

    • CommentService

      public CommentService()
      Performs CommentService operation.
  • Method Details

    • create

      public void create(Comment comment)
      Specified by:
      create in interface IService<Comment>
    • read

      public List<Comment> read()
      Specified by:
      read in interface IService<Comment>
    • update

      public void update(Comment comment)
      Specified by:
      update in interface IService<Comment>
    • delete

      public void delete(Comment comment)
      Specified by:
      delete in interface IService<Comment>
    • readByClientId

      public Comment readByClientId(int clientId)
      Performs readByClientId operation.
      Returns:
      the result of the operation
    • getCommentsByProductId

      public List<Comment> getCommentsByProductId(int productId)
      Retrieves the CommentsByProductId value.
      Returns:
      the CommentsByProductId value