Skip to content

SQL-029: Retrieve clsPrepayDiscountFactor data

This document records the SQL used by clsPrepayDiscountFactor in SAIF.Business.Policy.Rating.

Classification

Field Value
SQL ID SQL-029
Operation type Read
Execution method Data portal — criteria SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsPrepayDiscountFactor
Criteria property RetrieveSQL
Lifecycle method BeforeRetrieve / AfterRetrieve

Parameters

Parameter Direction Type Max length Description
:PrepayFrequencyCode Input Not specified not specified Bound parameter.
:SelectDate Input Not specified not specified Bound parameter.

Tables

Table Access Columns used
PREPAY_DISCOUNT_FACTOR SELECT See sample SQL and source for column usage.

Sample SQL

Select
  PREPAY_DISCOUNT_FACTOR.PREPAY_FREQUENCY_CODE as PrepayFrequencyCode,
  PREPAY_DISCOUNT_FACTOR.EFFECTIVE_DATE as EffectiveDate,
  PREPAY_DISCOUNT_FACTOR.EXPIRATION_DATE as ExpirationDate,
  PREPAY_DISCOUNT_FACTOR.DISCOUNT_FACTOR as PrepayDiscountFactor,
  PREPAY_DISCOUNT_FACTOR.CREATE_DATE as CreateDate,
  PREPAY_DISCOUNT_FACTOR.CREATE_USER as CreateUser,
  PREPAY_DISCOUNT_FACTOR.UPDATE_DATE as UpdateDate,
  PREPAY_DISCOUNT_FACTOR.UPDATE_USER as UpdateUser
From
  PREPAY_DISCOUNT_FACTOR
Where
  PREPAY_DISCOUNT_FACTOR.PREPAY_FREQUENCY_CODE = :PrepayFrequencyCode
  AND :SelectDate >= PREPAY_DISCOUNT_FACTOR.EFFECTIVE_DATE
  AND :SelectDate < NVL(PREPAY_DISCOUNT_FACTOR.EXPIRATION_DATE,'01-JAN-2199')

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.Rating\clsPrepayDiscountFactor.vb:329-336