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 deleteByTopic_Id​(String topicId)  
      List<org.sakaiproject.conversations.api.model.TopicReaction> findByTopic_IdAndUserId​(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

      • findByTopic_IdAndUserId

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

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