Skip to content

SQL-089: EbillBatchQueryProvider.GetBatchStatus

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

Classification

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

Parameters

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

Tables

Table Access Columns used
EBILL_BATCH_STATUS_CODE SELECT CODE, UPDATE_NUM, CODE_DESCR, UPDATE_USER, UPDATE_DATE

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillBatchQueryProvider.cs:109. The repository is obtained at Data/SAIF.Data/Queries/Claims/Ebilling/EbillBatchQueryProvider.cs:21.

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillBatchQueryProvider.cs:21
statusRepository = Factory.GetRepository<EbillBatchStatusCode>().Query();

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillBatchQueryProvider.cs:109
return statusRepository.SingleOrDefault(s => s.Code == code);

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
  EBSC.CODE,
  EBSC.UPDATE_NUM,
  EBSC.CODE_DESCR,
  EBSC.UPDATE_USER,
  EBSC.UPDATE_DATE
FROM EBILL_BATCH_STATUS_CODE EBSC
WHERE EBSC.CODE = :code
-- NHibernate expects at most one row

Translation notes:

  • Direct translation: an equality predicate on mapped columns. No navigation, joins or in-memory operators.

Operations and processes

Business rules

Sources

  • Data/SAIF.Data/Queries/Claims/Ebilling/EbillBatchQueryProvider.cs:109