Class JDBCParameterCacheAdapter

    • Method Summary

      All Methods Instance Methods Concrete 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 codeSystemId, 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
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JDBCParameterCacheAdapter

        public JDBCParameterCacheAdapter​(FHIRPersistenceJDBCCache cache)
        Public constructor
        Parameters:
        cache -
    • Method Detail

      • getParameterNameId

        public java.lang.Integer getParameterNameId​(java.lang.String parameterName)
        Description copied from interface: IParameterIdentityCache
        Get the parameter_name_id value for the given parameterName
        Specified by:
        getParameterNameId in interface IParameterIdentityCache
        Returns:
        the parameter_name_id or null if the value is not found in the cache
      • getCodeSystemId

        public java.lang.Integer getCodeSystemId​(java.lang.String codeSystem)
        Description copied from interface: IParameterIdentityCache
        Get the code_system_id value for the given codeSystem value
        Specified by:
        getCodeSystemId in interface IParameterIdentityCache
        Returns:
        the code_system_id or null if the value is not found in the cache
      • getCommonTokenValueId

        public java.lang.Long getCommonTokenValueId​(short shardKey,
                                                    java.lang.String codeSystem,
                                                    java.lang.String tokenValue)
        Description copied from interface: IParameterIdentityCache
        Get the common_token_value_id for the given codeSystem and tokenValue
        Specified by:
        getCommonTokenValueId in interface IParameterIdentityCache
        Returns:
        the common_token_value_id or null if the value is not found in the cache
      • addCommonTokenValue

        public void addCommonTokenValue​(short shardKey,
                                        java.lang.String codeSystem,
                                        int codeSystemId,
                                        java.lang.String tokenValue,
                                        long commonTokenValueId)
        Description copied from interface: IParameterIdentityCache
        Add the common token value to the cache.
        Specified by:
        addCommonTokenValue in interface IParameterIdentityCache
      • getLogicalResourceIdentId

        public java.lang.Long getLogicalResourceIdentId​(java.lang.String resourceType,
                                                        java.lang.String logicalId)
        Description copied from interface: IParameterIdentityCache
        Get the database logical_resource_id for the given resourceType/logicalId tuple.
        Specified by:
        getLogicalResourceIdentId in interface IParameterIdentityCache
        Returns: