Class ConversationsPostRepositoryImpl
- java.lang.Object
-
- org.sakaiproject.springframework.data.SpringCrudRepositoryImpl<ConversationsPost,String>
-
- org.sakaiproject.conversations.impl.repository.ConversationsPostRepositoryImpl
-
- All Implemented Interfaces:
ConversationsPostRepository,Repository<ConversationsPost,String>,SpringCrudRepository<ConversationsPost,String>
public class ConversationsPostRepositoryImpl extends SpringCrudRepositoryImpl<ConversationsPost,String> implements ConversationsPostRepository
-
-
Field Summary
-
Fields inherited from class org.sakaiproject.springframework.data.SpringCrudRepositoryImpl
sessionFactory
-
-
Constructor Summary
Constructors Constructor Description ConversationsPostRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongcountByParentPostId(String parentConversationsPostId)IntegerdeleteByTopicId(String topicId)List<ConversationsPost>findByParentPostId(String parentPostId)List<ConversationsPost>findByParentThreadId(String parentThreadId)List<ConversationsPost>findBySiteId(String siteId)List<ConversationsPost>findByTopicId(String topicId)List<ConversationsPost>findByTopicIdAndMetadata_Creator(String topicId, String creatorId)List<ConversationsPost>findByTopicIdAndParentPostIdIsNull(String topicId)IntegerlockByParentPostId(Boolean locked, String parentConversationsPostId)IntegerlockBySiteId(String siteId, Boolean locked)IntegerlockByTopicId(Boolean locked, String topicId)-
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
-
findByTopicId
@Transactional(readOnly=true) public List<ConversationsPost> findByTopicId(String topicId)
- Specified by:
findByTopicIdin interfaceConversationsPostRepository
-
findByTopicIdAndParentPostIdIsNull
@Transactional(readOnly=true) public List<ConversationsPost> findByTopicIdAndParentPostIdIsNull(String topicId)
- Specified by:
findByTopicIdAndParentPostIdIsNullin interfaceConversationsPostRepository
-
findByTopicIdAndMetadata_Creator
@Transactional(readOnly=true) public List<ConversationsPost> findByTopicIdAndMetadata_Creator(String topicId, String creatorId)
- Specified by:
findByTopicIdAndMetadata_Creatorin interfaceConversationsPostRepository
-
findByParentPostId
@Transactional(readOnly=true) public List<ConversationsPost> findByParentPostId(String parentPostId)
- Specified by:
findByParentPostIdin interfaceConversationsPostRepository
-
findBySiteId
@Transactional(readOnly=true) public List<ConversationsPost> findBySiteId(String siteId)
- Specified by:
findBySiteIdin interfaceConversationsPostRepository
-
countByParentPostId
@Transactional(readOnly=true) public Long countByParentPostId(String parentConversationsPostId)
- Specified by:
countByParentPostIdin interfaceConversationsPostRepository
-
findByParentThreadId
@Transactional(readOnly=true) public List<ConversationsPost> findByParentThreadId(String parentThreadId)
- Specified by:
findByParentThreadIdin interfaceConversationsPostRepository
-
deleteByTopicId
@Transactional public Integer deleteByTopicId(String topicId)
- Specified by:
deleteByTopicIdin interfaceConversationsPostRepository
-
lockByTopicId
@Transactional public Integer lockByTopicId(Boolean locked, String topicId)
- Specified by:
lockByTopicIdin interfaceConversationsPostRepository
-
lockByParentPostId
@Transactional public Integer lockByParentPostId(Boolean locked, String parentConversationsPostId)
- Specified by:
lockByParentPostIdin interfaceConversationsPostRepository
-
lockBySiteId
@Transactional public Integer lockBySiteId(String siteId, Boolean locked)
- Specified by:
lockBySiteIdin interfaceConversationsPostRepository
-
-