Skip to content

SQL-083: Retrieve policy period

Retrieve policy period in the context of clsPolicyPeriod.

Classification

Field Value
SQL ID SQL-083
Operation type Read
Execution method CommandType.StoredProcedure
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsPolicyPeriod
Criteria property RetrieveSQL
Lifecycle method BeforeRetrieve / AfterRetrieve

Parameters

This statement has no bind parameters.

Tables

This statement executes as a stored procedure call and does not expose table references in repository source.**

Sample SQL

> **Composed at runtime.** This property builds its statement conditionally. The block
> below shows every literal fragment in source order, so mutually exclusive branches
> appear consecutively - no single execution emits all of them. See the *Dynamic SQL*
> note in *Scope and evidence notes* for the branch conditions.
-- Stored-procedure invocation; no standalone SQL text in source.
WHERE
  POLICY_PERIOD.POLICY_NUM = :PolicyNumber
  AND POLICY_PERIOD.POLICY_PERIOD_EFF_DATE <= :AsOfDate
  AND POLICY_PERIOD.POLICY_PERIOD_EXP_DATE > :AsOfDate
  AND NVL(POLICY_PERIOD.CANCEL_DATE,POLICY_PERIOD_EXP_DATE) <> POLICY_PERIOD.POLICY_PERIOD_EFF_DATE
  AND POLICY_PERIOD.POLICY_PERIOD_EFF_DATE = :PolicyPeriodEffDate

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