Skip to content

SQL-072: Retrieve policy

Retrieve policy in the context of clsPolicy.

Classification

Field Value
SQL ID SQL-072
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.GetWebAddress (application layer)

Parameters

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

Tables

Table Access Columns used
BUSINESS SELECT See sample SQL

Sample SQL

SELECT
  web_addr
FROM
  business b
WHERE
  b.policy_num = :policynumber
  AND b.bus_seq_num = (
      SELECT
        min(bus_seq_num)
      FROM
        business b2
      WHERE
        b2.policy_num = :policynumber
        AND b2.bus_exp_date is null
    )

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