Package com.lpvs.repository
Interface LPVSDetectedLicenseRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<LPVSDetectedLicense,
,Long> org.springframework.data.jpa.repository.JpaRepository<LPVSDetectedLicense,
,Long> org.springframework.data.repository.ListCrudRepository<LPVSDetectedLicense,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<LPVSDetectedLicense,
,Long> org.springframework.data.repository.PagingAndSortingRepository<LPVSDetectedLicense,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<LPVSDetectedLicense>
,org.springframework.data.repository.Repository<LPVSDetectedLicense,
Long>
public interface LPVSDetectedLicenseRepository
extends org.springframework.data.jpa.repository.JpaRepository<LPVSDetectedLicense,Long>
Repository interface for managing
LPVSDetectedLicense
entities.
Extends JpaRepository
for basic CRUD operations.-
Method Summary
Modifier and TypeMethodDescriptionCount the number of detected licenses associated with a specific pull request where the license is not null.Check if there is at least one detected license associated with a specific pull request and marked as an issue.findByPullRequest
(LPVSPullRequest lpvsPullRequest) Find all detected licenses associated with a specific pull request.org.springframework.data.domain.Page<LPVSDetectedLicense>
findByPullRequest
(LPVSPullRequest lpvsPullRequest, org.springframework.data.domain.Pageable pageable) Find a paginated list of detected licenses associated with a specific pull request.Find detected licenses associated with a specific pull request where the license is not null.Find distinct licenses associated with a specific pull request.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
-
existsByIssueIsTrueAndPullRequest
Check if there is at least one detected license associated with a specific pull request and marked as an issue.- Parameters:
pr
- TheLPVSPullRequest
to check.- Returns:
true
if at least one detected license with an issue is associated with the pull request,false
otherwise.
-
findByPullRequest
Find all detected licenses associated with a specific pull request.- Parameters:
lpvsPullRequest
- TheLPVSPullRequest
to retrieve detected licenses for.- Returns:
- List of
LPVSDetectedLicense
associated with the pull request.
-
findByPullRequest
org.springframework.data.domain.Page<LPVSDetectedLicense> findByPullRequest(LPVSPullRequest lpvsPullRequest, org.springframework.data.domain.Pageable pageable) Find a paginated list of detected licenses associated with a specific pull request.- Parameters:
lpvsPullRequest
- TheLPVSPullRequest
to retrieve detected licenses for.pageable
- The pagination information.- Returns:
- Page of
LPVSDetectedLicense
associated with the pull request.
-
countByPullRequestAndLicenseIsNotNull
Count the number of detected licenses associated with a specific pull request where the license is not null.- Parameters:
pr
- TheLPVSPullRequest
to count detected licenses for.- Returns:
- The count of detected licenses where the license is not null.
-
findDistinctLicenseByPullRequest
Find distinct licenses associated with a specific pull request.- Parameters:
pr
- TheLPVSPullRequest
to retrieve distinct licenses for.- Returns:
- List of distinct
LPVSLicense
associated with the pull request.
-
findByPullRequestAndLicenseIsNotNull
Find detected licenses associated with a specific pull request where the license is not null.- Parameters:
pr
- TheLPVSPullRequest
to retrieve detected licenses for.- Returns:
- List of
LPVSDetectedLicense
associated with the pull request where the license is not null.
-