Interface CookiesRepository

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

public interface CookiesRepository extends org.springframework.data.jpa.repository.JpaRepository<Cookie,UUID>
  • Method Details

    • removeAllByExecutionRequestIdIsNotNullAndTestRunIdIsNotNull

      void removeAllByExecutionRequestIdIsNotNullAndTestRunIdIsNotNull()
    • removeAllByIdIn

      void removeAllByIdIn(Collection<UUID> ids)
    • removeAllByUserIdAndProjectId

      void removeAllByUserIdAndProjectId(UUID userId, UUID projectId)
    • removeAllByExecutionRequestIdAndTestRunId

      void removeAllByExecutionRequestIdAndTestRunId(UUID executionRequestId, UUID testRunId)
    • findAllByUserIdAndProjectId

      List<Cookie> findAllByUserIdAndProjectId(UUID userId, UUID projectId)
    • findAllByExecutionRequestIdAndTestRunIdOrTestRunIdIsNull

      @Query(value="select * from cookies where execution_request_id = ?1 and (test_run_id = ?2 or test_run_id is null)", nativeQuery=true) List<Cookie> findAllByExecutionRequestIdAndTestRunIdOrTestRunIdIsNull(UUID executionRequestId, UUID testRunId)