Skip to content

clsDTECRate

Retrieves the effective DTEC rate for a market type and date. The class is retrieved through BOF criteria objects and exposes the loaded row to rating callers.

Purpose

  • Retrieves the effective DTEC rate for a market type and date.
  • The class is retrieved through BOF criteria objects and exposes the loaded row to rating callers.

Context

  • Namespace: SAIF.Business.Policy.Rating
  • Assembly/package: SAIF.Business.Policy.Rating

Public members

Member Signature Purpose
MarketTypeCode Public ReadOnly Property MarketTypeCode() As String Persisted market-type code that identifies which market the DTEC rate applies to.
MarketType Public ReadOnly Property MarketType() As Enums.MarketTypes Enum projection of MarketTypeCode used by callers to work with market types.
EffectiveDate Public ReadOnly Property EffectiveDate() As Date Start date from which this DTEC rate is in force.
CreateUser Public ReadOnly Property CreateUser() As String Audit user ID that created the DTEC rate row.
CreateDate Public ReadOnly Property CreateDate() As Date Audit timestamp recording when the DTEC rate row was created.
UpdateUser Public ReadOnly Property UpdateUser() As String Audit user ID that last updated the DTEC rate row.
UpdateDate Public ReadOnly Property UpdateDate() As Date Audit timestamp for the most recent DTEC rate update.
Rate Public ReadOnly Property Rate() As Decimal DTEC rate value in force for the market type and effective-date window.
ExpirationDate Public ReadOnly Property ExpirationDate() As Date Optional date after which this DTEC rate no longer applies.
IsExpirationDateNull Public Function IsExpirationDateNull() As Boolean Indicates whether the DTEC rate is open-ended with no expiration date.
Equals Public Overloads Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean Compares two objects as DTEC-rate records by delegating to typed equality.
Equals Public Overloads Overrides Function Equals(ByVal inObject As Object) As Boolean Treats another object as equal only when it is a clsDTECRate with the same market type and effective date.
Equals Public Overloads Function Equals(ByVal inObject As clsDTECRate) As Boolean Uses market type plus effective date as the identity comparison for two DTEC rate rows.
GetHashCode Public Overrides Function GetHashCode() As Integer Hashes Rate, the value this type uses as its identity key in keyed collections.
ToString Public Overrides Function ToString() As String Uses the numeric DTEC rate as the string representation.
GetDTECRate Public Shared Function GetDTECRate(ByVal inDataportal As IDataPortalInfo, ByVal inMarketType As Enums.MarketTypes, ByVal inEffectiveDate As Date) As clsDTECRate Retrieves the effective DTEC rate for a market type and date identified by the key values or effective-date criteria supplied by the caller.
MarketType Public Property MarketType() As Enums.MarketTypes Retrieval criterion that selects DTEC rows for a specific market type.
EffectiveDate Public Property EffectiveDate() As Date As-of date criterion that selects the row whose effective/expiration window covers the requested date.
New Public Sub New(ByVal inDataPortalInfo As IDataPortalInfo) Creates an empty BOF object shell that shared factory methods or retrieval logic can populate with a loaded row.
New Public Sub New(ByVal inDataPortalInfo As IDataPortalInfo, ByVal inMarketType As Enums.MarketTypes, ByVal inEffectiveDate As Date) Creates a criteria-backed instance seeded with inMarketType, inEffectiveDate so the next retrieval runs in the caller's requested context.
## Inherited public members
Member Signature Purpose
--- --- ---
Rules Property Rules As clsRulesManager Owns the BOF rules manager used to evaluate registered validation logic.†
BeginEdit Sub BeginEdit() Opens an n-level edit session for the business object.†
CancelEdit Sub CancelEdit() Rolls back the active edit scope.†
ApplyEdit Sub ApplyEdit() Commits the active edit scope.†
Error ReadOnly Property Error As String Surfaces aggregate broken-rule text through IDataErrorInfo.†
## Behavioral notes
- The object layers convenience logic over the loaded row, such as equality keys, related-row resolution, or validation helpers.
## Constraints and usage notes
- Retrieve the row with the same keys and effective context that the caller will use later, because helper members derive additional data from that loaded state.
> Note: Statements marked with † are derived from dependency library
> documentation via the Legends CLI. They describe inherited behavior from the
> indicated origin library and should be verified if the dependency version changes.
## Sources
- Business\SAIF.Business.Policy.Rating\clsDTECRate.vb