Interface JobsRepository

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

@Repository public interface JobsRepository extends org.springframework.data.jpa.repository.JpaRepository<Job,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Job>
Spring Data repository for Job entities. Paging comes from JpaRepository; JpaSpecificationExecutor backs /paginated's optional filters, composed as a dynamic Specification<Job> rather than a combinatorial set of derived-query methods for every combination of filters; scope-based queries support apps that associate jobs with a domain object (see Job.scopeType/Job.scopeId).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     

    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.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findBy, findOne

    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

    • findAllByOrderByIdDesc

      Iterable<Job> findAllByOrderByIdDesc()
    • findByScopeTypeAndScopeIdOrderByIdDesc

      Iterable<Job> findByScopeTypeAndScopeIdOrderByIdDesc(String scopeType, Long scopeId)
    • deleteByScopeTypeAndScopeId

      @Transactional void deleteByScopeTypeAndScopeId(String scopeType, Long scopeId)