Skip to content

SQL-102: EbillEobQueryProvider.GetEobsForBatch

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

Classification

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

Parameters

Parameter Direction Type Max length Description
batch Input EbillBatch N/A Method argument of EbillEobQueryProvider.GetEobsForBatch bound into the ORM expression; NHibernate generates the bind variable at runtime

Tables

Table Access Columns used
EBILL_EOB SELECT EBILL_EOB_SEQ_NUM, UPDATE_NUM, PAYMENT_METHOD_CODE, PAYMENT_ADVICE_ID, PAYMENT_AMOUNT, BILL_TOTAL_AMOUNT, ACKNOWLEDGEMENT_CODE, UPDATE_USER, UPDATE_DATE, EBILL_BATCH_SEQ_NUM, PROVIDER_LOCATION_SEQ_NUM

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/Ebilling/EbillEobQueryProvider.cs:50

The repository is a class field initialised from factory.GetRepository<EbillEob>() at Data/SAIF.Data/Queries/Claims/Ebilling/EbillEobQueryProvider.cs:22.

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillEobQueryProvider.cs:22
eobRepository = factory.GetRepository<EbillEob>().Query();

// Data/SAIF.Data/Queries/Claims/Ebilling/EbillEobQueryProvider.cs:50
return eobRepository.Where(x => x.Batch == batch);

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
  EE.EBILL_EOB_SEQ_NUM,
  EE.UPDATE_NUM,
  EE.PAYMENT_METHOD_CODE,
  EE.PAYMENT_ADVICE_ID,
  EE.PAYMENT_AMOUNT,
  EE.BILL_TOTAL_AMOUNT,
  EE.ACKNOWLEDGEMENT_CODE,
  EE.UPDATE_USER,
  EE.UPDATE_DATE,
  EE.EBILL_BATCH_SEQ_NUM,
  EE.PROVIDER_LOCATION_SEQ_NUM
FROM EBILL_EOB EE
WHERE EE.EBILL_BATCH_SEQ_NUM = :batch

Translation notes:

  • The repository field is initialised from the constructor parameter factory (lower case, L22), which is the same IRepositoryFactory as Factory.
  • The method returns the un-materialized IQueryable. SQL runs when the caller enumerates it.

Operations and processes

Business rules

Sources

  • Data/SAIF.Data/Queries/Claims/Ebilling/EbillEobQueryProvider.cs:50