Skip to content

SQL-068: ClaimQueryProvider.GetEaipPeriods

This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by ClaimQueryProvider.GetEaipPeriods.

Classification

Field Value
SQL ID SQL-068
Operation type Read
Execution method ORM (NHibernate LINQ)
Database Oracle*
Schema [unqualified]**
Command type N/A (ORM-generated)
Business object ClaimQueryProvider
Criteria property N/A — ORM
Lifecycle method GetEaipPeriods

Parameters

Parameter Direction Type Max length Description
claimId Input long N/A Method argument of ClaimQueryProvider.GetEaipPeriods bound into the ORM expression; NHibernate generates the bind variable at runtime

Tables

Table Access Columns used
EAIP_PERIOD SELECT EAIP_PERIOD_SEQ_NUM, CLAIM_ACTIVITY_DATE, EAIP_PERIOD_EFF_DATE, EAIP_PERIOD_EXP_DATE, EAIP_STATUS_DATE, EAIP_USER, CREATE_USER, CREATE_DATE, UPDATE_USER, UPDATE_DATE, CLAIM_ID, EAIP_STATUS_CODE

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:426-427.

return Factory.GetRepository<EaipPeriod>()
     .Query().Where(x => x.Claim.Id == claimId);

Sample SQL

Inferred SQL: This SQL was inferred from the LINQ statement above and the NHibernate mappings. It is not concrete SQL from source code; NHibernate generates the executed statement at runtime, so aliases, column order, join syntax, and bind-parameter names may differ.

-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
SELECT
  EP.EAIP_PERIOD_SEQ_NUM,
  EP.CLAIM_ACTIVITY_DATE,
  EP.EAIP_PERIOD_EFF_DATE,
  EP.EAIP_PERIOD_EXP_DATE,
  EP.EAIP_STATUS_DATE,
  EP.EAIP_USER,
  EP.CREATE_USER,
  EP.CREATE_DATE,
  EP.UPDATE_USER,
  EP.UPDATE_DATE,
  EP.CLAIM_ID,
  EP.EAIP_STATUS_CODE
FROM EAIP_PERIOD EP
WHERE EP.CLAIM_ID = :claimId

Translation notes: - x.Claim.Id is the InjuryClaim Id, so it resolves to the owner FK column EP.CLAIM_ID with no join; CL_INJURY_CLAIM is not accessed as a separate table. - The method returns a deferred IQueryable. The SQL runs when the caller enumerates it.

Operations and processes

Sources

  • Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:426