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>

@Repository public interface JobLogRepository extends org.springframework.data.jpa.repository.JpaRepository<JobLog,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    Everything logged since afterId — the incremental "tail -f" query.
    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, 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

    • findByJobIdOrderByIdAsc

      List<JobLog> findByJobIdOrderByIdAsc(Long jobId)
      Full log, chronological order — used to assemble the complete log for one job.
    • findTop10ByJobIdOrderByIdDesc

      List<JobLog> findTop10ByJobIdOrderByIdDesc(Long jobId)
      The most recent lines, newest first — used for the list/paginated endpoints' preview. Callers that want chronological order must reverse this.
    • findByJobIdAndIdGreaterThanOrderByIdAsc

      List<JobLog> findByJobIdAndIdGreaterThanOrderByIdAsc(Long jobId, Long afterId)
      Everything logged since afterId — the incremental "tail -f" query.