SQL-061: ClaimQueryProvider.GetClaimStatusActivity¶
This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by ClaimQueryProvider.GetClaimStatusActivity.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-061 |
| 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 | GetClaimStatusActivity |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
claimId |
Input | long | N/A | Method argument of ClaimQueryProvider.GetClaimStatusActivity bound into the ORM expression; NHibernate generates the bind variable at runtime |
Tables¶
| Table | Access | Columns used |
|---|---|---|
| CL_CLAIM_STATUS_ACTIVITY | SELECT (never executed) | CLAIM_ID, CLAIM_STATUS_CODE, CLAIM_STATUS_ACTIVITY_SEQ_NUM, UPDATE_NUM, EFF_DATE, UPDATE_USER, UPDATE_DATE |
LINQ statement¶
Source: Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:274-275.
// Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:273
throw new Exception("Not Implemented for Guidewire ClaimCenter.");
var repo = Factory.GetRepository<ClaimStatusActivity>();
return repo.Query().Where(x => x.ClaimId == claimId).OrderBy(x => x.SubId).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
-- Unreachable: the method throws at ClaimQueryProvider.cs:273 before this statement
SELECT
CCSA.CLAIM_ID,
CCSA.CLAIM_STATUS_CODE,
CCSA.CLAIM_STATUS_ACTIVITY_SEQ_NUM,
CCSA.UPDATE_NUM,
CCSA.EFF_DATE,
CCSA.UPDATE_USER,
CCSA.UPDATE_DATE
FROM CL_CLAIM_STATUS_ACTIVITY CCSA
WHERE CCSA.CLAIM_ID = :claimId
ORDER BY CCSA.CLAIM_STATUS_ACTIVITY_SEQ_NUM
Translation notes:
- This is dead code: the unconditional throw at ClaimQueryProvider.cs:273 means no SQL is ever issued.
Operations and processes¶
Business rules¶
- SD-BR-041 Latest claim status falls back to WCD status when no history
- SD-BR-042 Compensability status mapping
- SD-BR-043 Original acceptance requires request type I with decision A
Sources¶
Data/SAIF.Data/Queries/Claims/ClaimQueryProvider.cs:274