Package de.dlr.proseo.model.dao
Schnittstelle JobStepRepository
- Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<JobStep,,Long> org.springframework.data.jpa.repository.JpaRepository<JobStep,,Long> org.springframework.data.repository.PagingAndSortingRepository<JobStep,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<JobStep>,org.springframework.data.repository.Repository<JobStep,Long>
@Transactional
public interface JobStepRepository
extends org.springframework.data.jpa.repository.JpaRepository<JobStep,Long>
Data Access Object for the JobStep class
- Autor:
- melchinger
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintcountJobStepByOrderId(long id) intcountJobStepCompletedByJobId(long id) intcountJobStepCompletedByOrderId(long id) intcountJobStepFailedByJobId(long id) intcountJobStepFailedByOrderId(long id) intcountJobStepNotFinishedByJobId(long id) intcountJobStepNotFinishedByOrderId(long id) intcountJobStepRunningByJobId(long id) intcountJobStepRunningByOrderId(long id) countJobStepStatesByOrderId(long id) findAllByJobStepState(JobStep.JobStepState jobStepState) findAllByJobStepStateAndMissionOrderByDate(JobStep.JobStepState jobStepState, String mission) findAllByJobStepStateAndOrderIdByDate(JobStep.JobStepState jobStepState, long orderId) findAllByProcessingFacilityAndJobStepStateIn(long id, List<JobStep.JobStepState> jobStepStates) findAllByProcessingFacilityAndJobStepStateInAndOrderBySensingStartTime(long id, List<JobStep.JobStepState> jobStepStates) findAllByProcessingFacilityAndJobStepStateInAndOrderBySubmissionTime(long id, List<JobStep.JobStepState> jobStepStates) findDistinctJobStepStatesByOrderId(long id) Von Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveVon Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushVon Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository
findAllVon Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Methodendetails
-
findAllByJobStepState
-
findAllByProcessingFacilityAndJobStepStateIn
@Query("select js from JobStep js where js.job.processingFacility.id = ?1 and js.jobStepState in ?2") List<JobStep> findAllByProcessingFacilityAndJobStepStateIn(long id, List<JobStep.JobStepState> jobStepStates) -
findAllByProcessingFacilityAndJobStepStateInAndOrderBySensingStartTime
@Query("select js from JobStep js where js.job.processingFacility.id = ?1 and js.jobStepState in ?2 order by js.job.startTime, js.id") List<JobStep> findAllByProcessingFacilityAndJobStepStateInAndOrderBySensingStartTime(long id, List<JobStep.JobStepState> jobStepStates) -
findAllByProcessingFacilityAndJobStepStateInAndOrderBySubmissionTime
@Query("select js from JobStep js where js.job.processingFacility.id = ?1 and js.jobStepState in ?2 order by js.job.processingOrder.submissionTime, js.id") List<JobStep> findAllByProcessingFacilityAndJobStepStateInAndOrderBySubmissionTime(long id, List<JobStep.JobStepState> jobStepStates) -
findAllByJobStepStateAndMissionOrderByDate
@Query("select js from JobStep js where js.jobStepState = ?1 and js.job.processingOrder.mission.code = ?2 order by js.processingCompletionTime desc") List<JobStep> findAllByJobStepStateAndMissionOrderByDate(JobStep.JobStepState jobStepState, String mission) -
findAllByJobStepStateAndOrderIdByDate
@Query("select js from JobStep js where js.jobStepState = ?1 and js.job.processingOrder.id = ?2 order by js.job.startTime, js.id") List<JobStep> findAllByJobStepStateAndOrderIdByDate(JobStep.JobStepState jobStepState, long orderId) -
countJobStepNotFinishedByJobId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.id = ?1 AND js.jobStepState NOT IN (\'COMPLETED\', \'FAILED\')") int countJobStepNotFinishedByJobId(long id) -
countJobStepNotFinishedByOrderId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.processingOrder.id = ?1 AND js.jobStepState NOT IN (\'COMPLETED\', \'FAILED\')") int countJobStepNotFinishedByOrderId(long id) -
countJobStepByOrderId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.processingOrder.id = ?1") int countJobStepByOrderId(long id) -
countJobStepCompletedByJobId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.id = ?1 AND js.jobStepState = \'COMPLETED\'") int countJobStepCompletedByJobId(long id) -
countJobStepFailedByJobId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.id = ?1 AND js.jobStepState = \'FAILED\'") int countJobStepFailedByJobId(long id) -
countJobStepRunningByJobId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.id = ?1 AND js.jobStepState = \'RUNNING\'") int countJobStepRunningByJobId(long id) -
countJobStepCompletedByOrderId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.processingOrder.id = ?1 AND js.jobStepState = \'COMPLETED\'") int countJobStepCompletedByOrderId(long id) -
countJobStepFailedByOrderId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.processingOrder.id = ?1 AND js.jobStepState = \'FAILED\'") int countJobStepFailedByOrderId(long id) -
countJobStepRunningByOrderId
@Query("SELECT COUNT(*) FROM JobStep js WHERE js.job.processingOrder.id = ?1 AND js.jobStepState = \'RUNNING\'") int countJobStepRunningByOrderId(long id) -
countJobStepStatesByOrderId
-
findDistinctJobStepStatesByOrderId
-