Class PostReactionRepositoryImpl

  • All Implemented Interfaces:
    org.sakaiproject.conversations.api.repository.PostReactionRepository, org.sakaiproject.springframework.data.Repository<org.sakaiproject.conversations.api.model.PostReaction,​Long>, org.sakaiproject.springframework.data.SpringCrudRepository<org.sakaiproject.conversations.api.model.PostReaction,​Long>

    public class PostReactionRepositoryImpl
    extends org.sakaiproject.springframework.data.SpringCrudRepositoryImpl<org.sakaiproject.conversations.api.model.PostReaction,​Long>
    implements org.sakaiproject.conversations.api.repository.PostReactionRepository
    • Field Summary

      • Fields inherited from class org.sakaiproject.springframework.data.SpringCrudRepositoryImpl

        sessionFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Integer deleteByPostId​(String postId)  
      List<org.sakaiproject.conversations.api.model.PostReaction> findByPostIdAndUserId​(String postId, String userId)  
      • Methods inherited from class org.sakaiproject.springframework.data.SpringCrudRepositoryImpl

        count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAll, findAllById, findById, getById, getDomainClass, save, saveAll, setSessionFactory, startCriteriaQuery
      • Methods inherited from interface org.sakaiproject.springframework.data.SpringCrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAll, findAllById, findById, getById, save, saveAll
    • Constructor Detail

      • PostReactionRepositoryImpl

        public PostReactionRepositoryImpl()
    • Method Detail

      • findByPostIdAndUserId

        @Transactional(readOnly=true)
        public List<org.sakaiproject.conversations.api.model.PostReaction> findByPostIdAndUserId​(String postId,
                                                                                                 String userId)
        Specified by:
        findByPostIdAndUserId in interface org.sakaiproject.conversations.api.repository.PostReactionRepository
      • deleteByPostId

        @Transactional
        public Integer deleteByPostId​(String postId)
        Specified by:
        deleteByPostId in interface org.sakaiproject.conversations.api.repository.PostReactionRepository