Skip to content

SQL-071: Retrieve policy

Retrieve policy in the context of clsPolicy.

Classification

Field Value
SQL ID SQL-071
Operation type Read
Execution method CommandType.Text / DataRequestType.Scalar
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsPolicy
Criteria property *n/a - application layer*
Lifecycle method clsPolicy.GetNonWCISCancelDate (application layer)

Parameters

Parameter Direction Type Max length Description
:policynumber Input bound from PolicyNumber - Bound in clsPolicy.GetNonWCISCancelDate (line 769)

Tables

Table Access Columns used
POLICY_PERIOD_MASTER SELECT See sample SQL

Sample SQL

SELECT
  cancel_date
FROM
  policy_period_master ppm
WHERE
  (policy_num = :policynumber)
  AND policy_period_eff_date = (
      SELECT
        max(policy_period_eff_date)
      FROM
        policy_period_master ppm2
      WHERE
        ppm.policy_num = ppm2.policy_num
    )

Operations and processes

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\clsPolicy.vb