Skip to content

SQL-139: Update prior coverage

Update prior coverage in the context of clsPriorCoverage.

Classification

Field Value
SQL ID SQL-139
Operation type Update
Execution method IDataRequest.SQLStatement (CommandType.Text)
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsPriorCoverage
Criteria property UpdateSQL
Lifecycle method BeforeUpdate / AfterUpdate

Parameters

Parameter Direction Type Max length Description
:PolicyNumber Input bound from PolicyNumber - Bound in clsPriorCoverage.BeforeUpdate (line 639)
:EffectiveDate Input bound from EffectiveDate - Bound in clsPriorCoverage.BeforeUpdate (line 640)
:ExpirationDate Input bound from m_ExpirationDate - Bound in clsPriorCoverage.BeforeUpdate (line 643)
:CarrierCode Input bound from CarrierCode 5 Bound in clsPriorCoverage.BeforeUpdate (line 641)
:PriorPolicyNumber Input bound from m_PriorPolicyNumber 20 Bound in clsPriorCoverage.BeforeUpdate (line 644)
:ERModRate Input bound from m_ERModRate - Bound in clsPriorCoverage.BeforeUpdate (line 645)
:AnnualPremiumAmount Input bound from m_AnnualPremiumAmount - Bound in clsPriorCoverage.BeforeUpdate (line 646)
:AnnualPayrollAmount Input bound from m_AnnualPayrollAmount - Bound in clsPriorCoverage.BeforeUpdate (line 647)
:DisablingClaimsAmount Input bound from m_DisablingClaimsAmount - Bound in clsPriorCoverage.BeforeUpdate (line 648)
:NonDisablingClaimsAmount Input bound from m_NonDisablingClaimsAmount - Bound in clsPriorCoverage.BeforeUpdate (line 649)
:ClaimsAmount Input bound from m_ClaimsAmount - Bound in clsPriorCoverage.BeforeUpdate (line 650)
:DisablingClaimsCount Input bound from m_DisablingClaimsCount - Bound in clsPriorCoverage.BeforeUpdate (line 651)
:NonDisablingClaimsCount Input bound from m_NonDisablingClaimsCount - Bound in clsPriorCoverage.BeforeUpdate (line 652)
:ClaimsCount Input bound from m_ClaimsCount - Bound in clsPriorCoverage.BeforeUpdate (line 653)
:LossRatio Input bound from m_LossRatio - Bound in clsPriorCoverage.BeforeUpdate (line 654)
:ClaimFrequency Input bound from m_ClaimFrequency - Bound in clsPriorCoverage.BeforeUpdate (line 655)
:ClaimValueDate Input bound from m_ClaimValueDate - Bound in clsPriorCoverage.BeforeUpdate (line 656)
:CreateDate Input bound from m_CreateDate - Bound in clsPriorCoverage.BeforeUpdate (line 657)
:CreateUser Input bound from m_CreateUser 30 Bound in clsPriorCoverage.BeforeUpdate (line 658)
:UpdateDate Input bound from m_UpdateDate - Bound in clsPriorCoverage.BeforeUpdate (line 659)
:UpdateUser Input bound from m_UpdateUser 30 Bound in clsPriorCoverage.BeforeUpdate (line 660)
:SourceCode Input bound from m_SourceCode 5 Bound in clsPriorCoverage.BeforeUpdate (line 661)
:PricingIncludeFlag Input bound from PricingIncludeFlag 1 Bound in clsPriorCoverage.BeforeUpdate (line 642)
:AdjustedClaimsAmount Input bound from m_AdjustedClaimsAmount - Bound in clsPriorCoverage.BeforeUpdate (line 662)
:NonDisablingPaidAmount Input bound from m_NonDisablingPaidAmount - Bound in clsPriorCoverage.BeforeUpdate (line 664)
:DisablingPaidAmount Input bound from m_DisablingPaidAmount - Bound in clsPriorCoverage.BeforeUpdate (line 665)
:NonDisablingReimburseAmount Input bound from m_NonDisablingReimburseAmount - Bound in clsPriorCoverage.BeforeUpdate (line 666)
:TimeLossDaysCount Input bound from m_TimeLossDaysCount - Bound in clsPriorCoverage.BeforeUpdate (line 667)
:StandardPremiumAmount Input bound from m_StandardPremiumAmount - Bound in clsPriorCoverage.BeforeUpdate (line 668)

Tables

Table Access Columns used
PRIOR_COVERAGE UPDATE See sample SQL

Sample SQL

UPDATE
  PRIOR_COVERAGE
SET
  POLICY_NUM = :PolicyNumber,
  PRIOR_COV_EFF_DATE = :EffectiveDate,
  PRIOR_COV_EXP_DATE = :ExpirationDate,
  CARRIER_CODE = :CarrierCode,
  PRIOR_POLICY_NUMBER = :PriorPolicyNumber,
  EMOD_RATE = :ERModRate,
  ANNUAL_PREMIUM_AMT = :AnnualPremiumAmount,
  ANNUAL_PAYROLL_AMT = :AnnualPayrollAmount,
  DISABLING_CLAIMS_AMT = :DisablingClaimsAmount,
  NON_DISABLING_CLAIMS_AMT = :NonDisablingClaimsAmount,
  CLAIMS_AMT = :ClaimsAmount,
  DISABLING_CLAIMS_COUNT = :DisablingClaimsCount,
  NON_DISABLING_CLAIMS_COUNT = :NonDisablingClaimsCount,
  CLAIMS_COUNT = :ClaimsCount,
  LOSS_RATIO = :LossRatio,
  CLAIM_FREQUENCY = :ClaimFrequency,
  CLAIM_VALUE_DATE = :ClaimValueDate,
  CREATE_DATE = :CreateDate,
  CREATE_USER = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER = :UpdateUser,
  PRIOR_COV_SOURCE_CODE = :SourceCode,
  PRICING_INCLUDE_FLAG = :PricingIncludeFlag,
  ADJUSTED_CLAIMS_AMT = :AdjustedClaimsAmount,
  NON_DISABLING_PAID_AMT = :NonDisablingPaidAmount,
  DISABLING_PAID_AMT = :DisablingPaidAmount,
  NON_DISABLING_REIMBURSE_AMT = :NonDisablingReimburseAmount,
  TIME_LOSS_DAYS_COUNT = :TimeLossDaysCount,
  STANDARD_PREMIUM_AMT = :StandardPremiumAmount
WHERE
  PRIOR_COVERAGE.POLICY_NUM = :PolicyNumber
  AND PRIOR_COVERAGE.PRIOR_COV_EFF_DATE = :EffectiveDate

Business rules

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business\SAIF.Business.Policy.Core\clsPriorCoverage.vb