Interface RequestExecutionRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<RequestExecution,UUID>, org.springframework.data.jpa.repository.JpaRepository<RequestExecution,UUID>, org.springframework.data.repository.PagingAndSortingRepository<RequestExecution,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<RequestExecution>, org.springframework.data.repository.Repository<RequestExecution,UUID>

public interface RequestExecutionRepository extends org.springframework.data.jpa.repository.JpaRepository<RequestExecution,UUID>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    findByProjectId(UUID projectId)
     
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Field Details

  • Method Details

    • deleteByExecutedWhenBefore

      @Modifying @Transactional @Query("DELETE FROM RequestExecution re WHERE re.executedWhen < :executedWhen") int deleteByExecutedWhenBefore(@Param("executedWhen") Timestamp executedWhen)
    • findByProjectId

      @Query(value="SELECT DISTINCT(executor) FROM request_executions WHERE project_id=:projectId", nativeQuery=true) List<String> findByProjectId(@Param("projectId") UUID projectId)
    • findBySseId

      RequestExecution findBySseId(UUID sseId)