Reference factor value provider

The reference factor value provider:

  • Is implemented in the ReferenceFactorValueProvider class.
  • Retrieves all distinct values used in a column of a rate table (source rate table).
  • Must have two arguments configured:
    • Rate table code – Code of a source rate table.
    • Column name – Name of the column in the source rate table
  • Returns a list of distinct values from a specific column (second argument) of the source rate table (first argument).
  • Does not return any specific labels, just the values themselves.
  • Implements internal cache (a hash map): (argument 1 + argument 2) -> ({set of values}).
    • Initialized when a value provider is constructed.
    • Populated for each combination of argument values on each call to ReferenceFactorValueProvider#getValues() method for those combinations of arguments that are not found in the cache.
  • The lookup of the source rate table is done in the same rate book as the table specifying this value provider.