Interface IMdmLinkJpaMetricsRepository

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

@Repository("metricsRepository") public interface IMdmLinkJpaMetricsRepository extends org.springframework.data.jpa.repository.JpaRepository<MdmLink,Long>, IHapiFhirJpaRepository
  • Method Summary

    Modifier and Type
    Method
    Description
    Object[][]
    generateMetrics(String theResourceType, List<ca.uhn.fhir.mdm.api.MdmLinkSourceEnum> theLinkSources, List<ca.uhn.fhir.mdm.api.MdmMatchResultEnum> theMatchTypes)
     

    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

    • generateMetrics

      @Query("SELECT ml.myMatchResult AS match_result, ml.myLinkSource AS link_source, count(*) AS c FROM MdmLink ml WHERE ml.myMdmSourceType = :resourceName AND ml.myLinkSource in (:linkSource) AND ml.myMatchResult in (:matchResult) GROUP BY match_result, link_source ORDER BY match_result") Object[][] generateMetrics(@Param("resourceName") String theResourceType, @Param("linkSource") List<ca.uhn.fhir.mdm.api.MdmLinkSourceEnum> theLinkSources, @Param("matchResult") List<ca.uhn.fhir.mdm.api.MdmMatchResultEnum> theMatchTypes)