Class TopicStatusRepositoryImpl
- java.lang.Object
-
- org.sakaiproject.springframework.data.SpringCrudRepositoryImpl<TopicStatus,Long>
-
- org.sakaiproject.conversations.impl.repository.TopicStatusRepositoryImpl
-
- All Implemented Interfaces:
TopicStatusRepository,Repository<TopicStatus,Long>,SpringCrudRepository<TopicStatus,Long>
public class TopicStatusRepositoryImpl extends SpringCrudRepositoryImpl<TopicStatus,Long> implements TopicStatusRepository
-
-
Field Summary
-
Fields inherited from class org.sakaiproject.springframework.data.SpringCrudRepositoryImpl
sessionFactory
-
-
Constructor Summary
Constructors Constructor Description TopicStatusRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object[]>countBySiteIdAndViewed(String siteId, Boolean viewed)IntegerdeleteByTopicId(String topicId)Optional<TopicStatus>findByTopicIdAndUserId(String topicId, String userId)IntegersetViewedByTopicId(String topicId, Boolean viewed)-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sakaiproject.springframework.data.SpringCrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAll, findAllById, findById, getById, save, saveAll
-
-
-
-
Method Detail
-
findByTopicIdAndUserId
@Transactional public Optional<TopicStatus> findByTopicIdAndUserId(String topicId, String userId)
- Specified by:
findByTopicIdAndUserIdin interfaceTopicStatusRepository
-
deleteByTopicId
@Transactional public Integer deleteByTopicId(String topicId)
- Specified by:
deleteByTopicIdin interfaceTopicStatusRepository
-
countBySiteIdAndViewed
@Transactional(readOnly=true) public List<Object[]> countBySiteIdAndViewed(String siteId, Boolean viewed)
- Specified by:
countBySiteIdAndViewedin interfaceTopicStatusRepository
-
setViewedByTopicId
@Transactional public Integer setViewedByTopicId(String topicId, Boolean viewed)
- Specified by:
setViewedByTopicIdin interfaceTopicStatusRepository
-
-