Package edu.ucsb.cs156.jobs.repositories
Interface JobLogRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<JobLog,,Long> org.springframework.data.jpa.repository.JpaRepository<JobLog,,Long> org.springframework.data.repository.ListCrudRepository<JobLog,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<JobLog,,Long> org.springframework.data.repository.PagingAndSortingRepository<JobLog,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<JobLog>,org.springframework.data.repository.Repository<JobLog,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindByJobIdAndIdGreaterThanOrderByIdAsc(Long jobId, Long afterId) Everything logged sinceafterId— the incremental "tail -f" query.findByJobIdOrderByIdAsc(Long jobId) Full log, chronological order — used to assemble the complete log for one job.The most recent lines, newest first — used for the list/paginated endpoints' preview.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
-
findByJobIdOrderByIdAsc
Full log, chronological order — used to assemble the complete log for one job. -
findTop10ByJobIdOrderByIdDesc
The most recent lines, newest first — used for the list/paginated endpoints' preview. Callers that want chronological order must reverse this. -
findByJobIdAndIdGreaterThanOrderByIdAsc
Everything logged sinceafterId— the incremental "tail -f" query.
-