Class AbstractDataCatalogue

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractDataCatalogue​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      ResultSet getById​(int id)
      Get procedure result set by procedure id
      java.util.List<ResultSet> getByIdList​(java.util.List<java.lang.Integer> ids)
      Get list of ResultSet by list of procedure ids Filters our null objects
      java.util.List<ResultSet> getDiseases​(int procedureId)
      Returns related diseases
      protected abstract java.lang.String getTableName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • jdbcTemplate

        protected final org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
    • Constructor Detail

      • AbstractDataCatalogue

        protected AbstractDataCatalogue​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
    • Method Detail

      • getTableName

        protected abstract java.lang.String getTableName()
      • getById

        @NullMarked
        public ResultSet getById​(int id)
        Get procedure result set by procedure id
        Specified by:
        getById in interface DataCatalogue
        Parameters:
        id - The procedure id
        Returns:
        The procedure
      • getByIdList

        public java.util.List<ResultSet> getByIdList​(java.util.List<java.lang.Integer> ids)
        Get list of ResultSet by list of procedure ids Filters our null objects
        Parameters:
        ids - List of procedure id
        Returns:
        List of result set
      • getDiseases

        public java.util.List<ResultSet> getDiseases​(int procedureId)
        Returns related diseases
        Parameters:
        procedureId - The procedure id
        Returns:
        the diseases