org.appng.core.repository

## Interface JobRecordRepository

- All Superinterfaces:
    org.springframework.data.repository.CrudRepository<JobRecord,Integer>, org.springframework.data.jpa.repository.JpaRepository<JobRecord,Integer>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<JobRecord>, org.springframework.data.repository.PagingAndSortingRepository<JobRecord,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<JobRecord>, org.springframework.data.repository.Repository<JobRecord,Integer>, SearchRepository<JobRecord,Integer>

      public interface JobRecordRepository
      extends SearchRepository<JobRecord,Integer>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<JobRecord>` | `findBySiteAndJobName(String site, String jobName)`
    `List<String>` | `getDistinctApplications(String site)`
    `List<String>` | `getDistinctJobNames(String site)`

    - ### Methods inherited from interface org.appng.persistence.repository.SearchRepository

      `createSearchQuery, detach, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search, search`

    - ### Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

      `deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush`

    - ### Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

      `findAll`

    - ### Methods inherited from interface org.springframework.data.repository.CrudRepository

      `count, delete, delete, delete, deleteAll, exists, findOne, save`

    - ### Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

      `count, exists, findAll, findOne`

    - ### Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

      `count, findAll, findAll, findAll, findOne`

- - ### Method Detail

    - #### findBySiteAndJobName

          List<JobRecord> findBySiteAndJobName(String site,
                                               String jobName)

    - #### getDistinctApplications

          @Query(value="select distinct(j.application) from JobExecutionRecord j where j.site=?1 order by j.application")
          List<String> getDistinctApplications(String site)

    - #### getDistinctJobNames

          @Query(value="select distinct(j.jobName) from JobExecutionRecord j where j.site=?1 order by j.jobName")
          List<String> getDistinctJobNames(String site)

Copyright © 2011–2023 aiticon GmbH. All rights reserved.