Skip to content

SQL-024: BillQueryProvider.BillExists

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

Classification

Field Value
SQL ID SQL-024
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 BillExists

Parameters

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

Tables

Table Access Columns used
CBP_BILL SELECT BILL_ID

LINQ statement

Source: Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:35. The repository is a class field initialised from Factory.GetRepository<CbpBill>().Query() at Data/SAIF.Data/Queries/Claims/BillQueryProvider.cs:26.

return repository.Any(x => x.Id == billId);

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 1
FROM CBP_BILL CB
WHERE CB.BILL_ID = :billId
  AND ROWNUM <= 1

Operations and processes

Business rules

Sources

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