SQL-221: ReportQueryProvider.GetActiveLegalRepRecordsForClaim¶
This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by ReportQueryProvider.GetActiveLegalRepRecordsForClaim.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-221 |
| Operation type | Read |
| Execution method | ORM (NHibernate LINQ) |
| Database | Oracle* |
| Schema | [unqualified]** |
| Command type | N/A (ORM-generated) |
| Business object | ReportQueryProvider |
| Criteria property | N/A — ORM |
| Lifecycle method | GetActiveLegalRepRecordsForClaim |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
claimId |
Input | long | N/A | Method argument of ReportQueryProvider.GetActiveLegalRepRecordsForClaim bound into the ORM expression; NHibernate generates the bind variable at runtime |
Tables¶
| Table | Access | Columns used |
|---|---|---|
| CL_CLAIM_LEGAL_REPRESENTATIVE | SELECT | CLAIM_ID, EFF_DATE, UPDATE_NUM, EXP_DATE, UPDATE_DATE, UPDATE_USER, LEGAL_REP_END_REASON_CODE, PROVIDER_LOCATION_SEQ_NUM, PARENT_PROVIDER_LOC_SEQ_NUM |
LINQ statement¶
Source: Data/SAIF.Data/Queries/Claims/Reports/ReportQueryProvider.cs:66-67.
public IEnumerable<ClaimLegalRepresentative> GetActiveLegalRepRecordsForClaim(long claimId)
{
return Factory.GetRepository<ClaimLegalRepresentative>().Query()
.Where(rep => rep.ClaimId == claimId && rep.ExpirationDate == null).ToList();
}
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
CCLR.CLAIM_ID,
CCLR.EFF_DATE,
CCLR.UPDATE_NUM,
CCLR.EXP_DATE,
CCLR.UPDATE_DATE,
CCLR.UPDATE_USER,
CCLR.LEGAL_REP_END_REASON_CODE,
CCLR.PROVIDER_LOCATION_SEQ_NUM,
CCLR.PARENT_PROVIDER_LOC_SEQ_NUM
FROM CL_CLAIM_LEGAL_REPRESENTATIVE CCLR
WHERE CCLR.CLAIM_ID = :claimId
AND CCLR.EXP_DATE IS NULL
Operations and processes¶
Business rules¶
Sources¶
Data/SAIF.Data/Queries/Claims/Reports/ReportQueryProvider.cs:66