Class TopicReactionRepositoryImpl

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

    public class TopicReactionRepositoryImpl
    extends org.sakaiproject.springframework.data.SpringCrudRepositoryImpl<org.sakaiproject.conversations.api.model.TopicReaction,​Long>
    implements org.sakaiproject.conversations.api.repository.TopicReactionRepository
    • 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 deleteByTopicId​(String topicId)  
      List<org.sakaiproject.conversations.api.model.TopicReaction> findByTopicIdAndUserId​(String topicId, 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

      • TopicReactionRepositoryImpl

        public TopicReactionRepositoryImpl()
    • Method Detail

      • findByTopicIdAndUserId

        @Transactional
        public List<org.sakaiproject.conversations.api.model.TopicReaction> findByTopicIdAndUserId​(String topicId,
                                                                                                   String userId)
        Specified by:
        findByTopicIdAndUserId in interface org.sakaiproject.conversations.api.repository.TopicReactionRepository
      • deleteByTopicId

        @Transactional
        public Integer deleteByTopicId​(String topicId)
        Specified by:
        deleteByTopicId in interface org.sakaiproject.conversations.api.repository.TopicReactionRepository