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 Type
    Method
    Description
    Count 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.
    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

      Boolean existsByIssueIsTrueAndPullRequest(@Param("pr") LPVSPullRequest pr)
      Check if there is at least one detected license associated with a specific pull request and marked as an issue.
      Parameters:
      pr - The LPVSPullRequest to check.
      Returns:
      true if at least one detected license with an issue is associated with the pull request, false otherwise.
    • findByPullRequest

      List<LPVSDetectedLicense> findByPullRequest(LPVSPullRequest lpvsPullRequest)
      Find all detected licenses associated with a specific pull request.
      Parameters:
      lpvsPullRequest - The LPVSPullRequest 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 - The LPVSPullRequest to retrieve detected licenses for.
      pageable - The pagination information.
      Returns:
      Page of LPVSDetectedLicense associated with the pull request.
    • countByPullRequestAndLicenseIsNotNull

      Long countByPullRequestAndLicenseIsNotNull(@Param("pr") LPVSPullRequest pr)
      Count the number of detected licenses associated with a specific pull request where the license is not null.
      Parameters:
      pr - The LPVSPullRequest to count detected licenses for.
      Returns:
      The count of detected licenses where the license is not null.
    • findDistinctLicenseByPullRequest

      List<LPVSLicense> findDistinctLicenseByPullRequest(@Param("pr") LPVSPullRequest pr)
      Find distinct licenses associated with a specific pull request.
      Parameters:
      pr - The LPVSPullRequest to retrieve distinct licenses for.
      Returns:
      List of distinct LPVSLicense associated with the pull request.
    • findByPullRequestAndLicenseIsNotNull

      List<LPVSDetectedLicense> findByPullRequestAndLicenseIsNotNull(@Param("pr") LPVSPullRequest pr)
      Find detected licenses associated with a specific pull request where the license is not null.
      Parameters:
      pr - The LPVSPullRequest to retrieve detected licenses for.
      Returns:
      List of LPVSDetectedLicense associated with the pull request where the license is not null.