Skip to content

SQL-006 Is information page printed

Checks for a P401 endorsement with a non-null printed_date for a given policy/period, used by PolicyInformation.IsInformationPagePrinted (BR-POL-006).

Classification

Field Value
SQL ID SQL-006
Operation type Read
Execution method Inline SQL (CommandType.Text, DataRequestType.Scalar)
Database Oracle
Schema [unqualified]**
Command type Text
Business object N/A (Application layer)
Criteria property N/A
Lifecycle method N/A
Application class PolicyInformation (IsInformationPagePrinted property getter)

Parameters

Parameter Direction Type Max length Description
:PolicyNumber Input Decimal (Oracle NUMBER) N/A Policy number of the endorsement being checked.
:PolicyPeriodEffectiveDate Input Date (Oracle DATE) N/A Policy period effective date of the endorsement being checked.

Tables

Table Access Columns used
ENDORSEMENT SELECT POLICY_NUM, POLICY_PERIOD_EFF_DATE, ENDORSE_CODE, PRINTED_DATE

Sample SQL

SELECT
  policy_num
FROM endorsement
WHERE policy_num = :PolicyNumber
  AND policy_period_eff_date = :PolicyPeriodEffectiveDate
  AND endorse_code = 'P401'
  AND printed_date IS NOT NULL

The returned policy_num is coerced with CDec(...) without a null guard; a no-row result raises a conversion error rather than returning False.*

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.

Sources

  • SAIF.Business.Policy/PolicyInformation.vb