Interface IParameterIdentityCache

  • All Known Implementing Classes:
    JDBCParameterCacheAdapter

    public interface IParameterIdentityCache
    Interface to hides the implementation of various caches we use during ingestion persistence.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addCodeSystem​(java.lang.String codeSystem, int codeSystemId)
      Add the code system value to the cache
      void addCommonCanonicalValue​(short shardKey, java.lang.String url, long commonCanonicalValueId)
      Add the common canonical value to the cache
      void addCommonTokenValue​(short shardKey, java.lang.String codeSystem, int codesSystemId, java.lang.String tokenValue, long commonTokenValueId)
      Add the common token value to the cache.
      void addLogicalResourceIdent​(java.lang.String resourceType, java.lang.String logicalId, long logicalResourceId)
      Add the logical_resource_ident mapping to the cache
      void addParameterName​(java.lang.String parameterName, int parameterNameId)
      Add the given parameterName to parameterNameId mapping to the cache
      java.lang.Integer getCodeSystemId​(java.lang.String codeSystem)
      Get the code_system_id value for the given codeSystem value
      java.lang.Long getCommonCanonicalValueId​(short shardKey, java.lang.String url)  
      java.lang.Long getCommonTokenValueId​(short shardKey, java.lang.String codeSystem, java.lang.String tokenValue)
      Get the common_token_value_id for the given codeSystem and tokenValue
      java.lang.Long getLogicalResourceIdentId​(java.lang.String resourceType, java.lang.String logicalId)
      Get the database logical_resource_id for the given resourceType/logicalId tuple.
      java.lang.Integer getParameterNameId​(java.lang.String parameterName)
      Get the parameter_name_id value for the given parameterName
      int getResourceTypeId​(java.lang.String resourceType)
      Get the database resource_type_id value for the given resourceType value
    • Method Detail

      • getParameterNameId

        java.lang.Integer getParameterNameId​(java.lang.String parameterName)
        Get the parameter_name_id value for the given parameterName
        Parameters:
        parameterName -
        Returns:
        the parameter_name_id or null if the value is not found in the cache
      • getCodeSystemId

        java.lang.Integer getCodeSystemId​(java.lang.String codeSystem)
        Get the code_system_id value for the given codeSystem value
        Parameters:
        codeSystem -
        Returns:
        the code_system_id or null if the value is not found in the cache
      • getCommonTokenValueId

        java.lang.Long getCommonTokenValueId​(short shardKey,
                                             java.lang.String codeSystem,
                                             java.lang.String tokenValue)
        Get the common_token_value_id for the given codeSystem and tokenValue
        Parameters:
        shardKey -
        codeSystem -
        tokenValue -
        Returns:
        the common_token_value_id or null if the value is not found in the cache
      • addParameterName

        void addParameterName​(java.lang.String parameterName,
                              int parameterNameId)
        Add the given parameterName to parameterNameId mapping to the cache
        Parameters:
        parameterName -
        parameterNameId -
      • getCommonCanonicalValueId

        java.lang.Long getCommonCanonicalValueId​(short shardKey,
                                                 java.lang.String url)
        Parameters:
        shardKey -
        url -
        Returns:
      • addCommonCanonicalValue

        void addCommonCanonicalValue​(short shardKey,
                                     java.lang.String url,
                                     long commonCanonicalValueId)
        Add the common canonical value to the cache
        Parameters:
        shardKey -
        url -
        commonCanonicalValueId -
      • addCommonTokenValue

        void addCommonTokenValue​(short shardKey,
                                 java.lang.String codeSystem,
                                 int codesSystemId,
                                 java.lang.String tokenValue,
                                 long commonTokenValueId)
        Add the common token value to the cache.
        Parameters:
        shardKey -
        codeSystem -
        codeSystemId -
        tokenValue -
        commonTokenValueId -
      • addCodeSystem

        void addCodeSystem​(java.lang.String codeSystem,
                           int codeSystemId)
        Add the code system value to the cache
        Parameters:
        codeSystem -
        codeSystemId -
      • getResourceTypeId

        int getResourceTypeId​(java.lang.String resourceType)
        Get the database resource_type_id value for the given resourceType value
        Parameters:
        resourceType -
        Returns:
        Throws:
        java.lang.IllegalArgumentException - if resourceType is not a valid resource type name
      • getLogicalResourceIdentId

        java.lang.Long getLogicalResourceIdentId​(java.lang.String resourceType,
                                                 java.lang.String logicalId)
        Get the database logical_resource_id for the given resourceType/logicalId tuple.
        Parameters:
        resourceType -
        logicalId -
        Returns:
      • addLogicalResourceIdent

        void addLogicalResourceIdent​(java.lang.String resourceType,
                                     java.lang.String logicalId,
                                     long logicalResourceId)
        Add the logical_resource_ident mapping to the cache
        Parameters:
        resourceType -
        logicalId -
        logicalResourceId -