Interface ExperimentRunRepository

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

public interface ExperimentRunRepository extends org.springframework.data.jpa.repository.JpaRepository<ExperimentRun,UUID>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    findByExperimentOrderByStartedAtDesc(Experiment experiment, org.springframework.data.domain.Pageable pageable)
     
    findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable)
     
     

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

    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
  • Method Details

    • findByExperimentOrderByStartedAtDesc

      List<ExperimentRun> findByExperimentOrderByStartedAtDesc(Experiment experiment)
    • findByExperimentOrderByStartedAtDesc

      List<ExperimentRun> findByExperimentOrderByStartedAtDesc(Experiment experiment, org.springframework.data.domain.Pageable pageable)
    • findFirstByExperimentOrderByStartedAtDesc

      Optional<ExperimentRun> findFirstByExperimentOrderByStartedAtDesc(Experiment experiment)
    • findCompletedRunsByExperiment

      @Query("SELECT r FROM ExperimentRun r\nWHERE r.experiment = :experiment\nAND r.status IN (\'SUCCESS\', \'FAILED\')\nORDER BY r.startedAt DESC\n") List<ExperimentRun> findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable)