Resolve or cache benefit-jurisdiction code table¶
Resolves and caches a single clsBenefitJurisdictionCodeMap instance, backed by BENEFIT_JURISDICTION_CODE, refreshing only when explicitly requested.
| Field | Value |
|---|---|
| Operation ID | OP-POL-010 |
| Trigger | Caller invokes CodeMaps.GetBenefitJurisdictionCodeMap(inDPI, refresh) |
| Inputs | Data portal info, refresh flag |
| Outputs | Cached clsBenefitJurisdictionCodeMap |
| Primary components | CodeMaps.GetBenefitJurisdictionCodeMap, clsBenefitJurisdictionCodeMap |
| Entry point | SAIF.Business.Policy\CodeMaps\clsBenefitJurisdictionCodeMap.vb |
Steps¶
- Caller invokes
CodeMaps.GetBenefitJurisdictionCodeMap(inDPI, refresh). - If not yet cached (or
refresh=True), a newclsBenefitJurisdictionCodeMap(inDPI, False)is constructed. - The constructor issues
SELECT code, code_descr FROM BENEFIT_JURISDICTION_CODE(SQL-001) via the framework'sFill(inDPI, sql)helper, returning aclsResultSet.Origin: The
Fill(inDPI, sql)helper is implemented inSAIF.Framework.Coreand executed on behalf of this operation. - Each row is mapped to a
BenefitJurisdictionsenum value (S→State,F→Federal) and added to the code map. - The single instance is cached in a
Staticlocal for subsequent calls untilrefresh=Trueis requested.
Process flow¶
flowchart TD
Start([GetBenefitJurisdictionCodeMap called]) --> D{Cached and not refresh?}
D -->|Yes| EndCached([Return cached instance])
D -->|No| S1[Construct clsBenefitJurisdictionCodeMap]
S1 --> S2[Execute SQL-001 via Fill helper]
S2 --> S3[Map rows to BenefitJurisdictions enum]
S3 --> S4[Cache instance in Static local]
S4 --> EndNew([Return new instance])
Failure and edge-case behavior¶
- No error handling beyond the framework's own
Fillhelper behavior was observed.*
Related documentation¶
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.
Sources¶
SAIF.Business.Policy\CodeMaps\clsBenefitJurisdictionCodeMap.vb