Package com.bytedesk.service.queue
Interface QueueRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<QueueEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<QueueEntity,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<QueueEntity>,org.springframework.data.repository.ListCrudRepository<QueueEntity,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<QueueEntity,,Long> org.springframework.data.repository.PagingAndSortingRepository<QueueEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<QueueEntity>,org.springframework.data.repository.Repository<QueueEntity,Long>
public interface QueueRepository
extends org.springframework.data.jpa.repository.JpaRepository<QueueEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<QueueEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object> -
Method Summary
Modifier and TypeMethodDescriptionintcountByStatus(String status) findByStatus(String status) findByTopicAndDayAndDeletedFalse(String topic, String day) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findAll, findBy, findOneMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByUid
-
findByDay
-
findFirstByTopicAndDayAndDeletedFalseOrderByCreatedAtDesc
Optional<QueueEntity> findFirstByTopicAndDayAndDeletedFalseOrderByCreatedAtDesc(String topic, String day) -
findByStatus
-
countByStatus
-
findByTopicAndDayAndDeletedFalse
@Lock(PESSIMISTIC_WRITE) @Query("SELECT q FROM QueueEntity q WHERE q.topic = :topic AND q.day = :day AND q.deleted = false") Optional<QueueEntity> findByTopicAndDayAndDeletedFalse(@Param("topic") String topic, @Param("day") String day)
-