Package dev.dokimos.server.repository
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 TypeMethodDescriptionfindByExperimentOrderByStartedAtDesc(Experiment experiment) findByExperimentOrderByStartedAtDesc(Experiment experiment, org.springframework.data.domain.Pageable pageable) findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable) findFirstByExperimentOrderByStartedAtDesc(Experiment experiment) 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.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
-
findByExperimentOrderByStartedAtDesc
-
findByExperimentOrderByStartedAtDesc
List<ExperimentRun> findByExperimentOrderByStartedAtDesc(Experiment experiment, org.springframework.data.domain.Pageable pageable) -
findFirstByExperimentOrderByStartedAtDesc
-
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)
-