Skip to content

SQL-029: BillQueryProvider.GetBillStatusCode

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

Classification

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

Parameters

Parameter Direction Type Max length Description
status Input string N/A Method argument of BillQueryProvider.GetBillStatusCode bound into the ORM expression; NHibernate generates the bind variable at runtime

Tables

Table Access Columns used
CBP_BILL_STATUS_CODE SELECT CODE, UPDATE_NUM, CODE_DESCR, ACTIVE_FLAG, EXT_IW_CODE_DESCR, UPDATE_DATE, UPDATE_USER

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:60.

return Factory.GetRepository<CbpBillStatusCode>().Query()
    .SingleOrDefault(x => x.Code == status);

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
  CBSC.CODE,
  CBSC.UPDATE_NUM,
  CBSC.CODE_DESCR,
  CBSC.ACTIVE_FLAG,
  CBSC.EXT_IW_CODE_DESCR,
  CBSC.UPDATE_DATE,
  CBSC.UPDATE_USER
FROM CBP_BILL_STATUS_CODE CBSC
WHERE CBSC.CODE = :status
-- NHibernate expects at most one row

Operations and processes

Business rules

Sources

  • Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:60