---
title: "SQL-055: ClaimPaymentQueryProvider.GetSpecialHandlingCode"
summary: Read operation for `ClaimPaymentQueryProvider.GetSpecialHandlingCode`
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# SQL-055: ClaimPaymentQueryProvider.GetSpecialHandlingCode

This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by `ClaimPaymentQueryProvider.GetSpecialHandlingCode`.

## Classification

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

## Parameters

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

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CL_PAYMENT_SPCL_HANDLING_CODE](../database-tables.md#cl_payment_spcl_handling_code) | SELECT | CODE, CODE_DESCR, UPDATE_DATE, UPDATE_USER, UPDATE_NUM |

## LINQ statement

Source: `Data/SAIF.Data/Queries/Claims/ClaimPaymentQueryProvider.cs:20`.

```csharp
return Factory.GetRepository<SpecialHandlingCode>().Query().FirstOrDefault(x => x.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.

```sql
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
SELECT *
FROM (
  SELECT
    CPSHC.CODE,
    CPSHC.CODE_DESCR,
    CPSHC.UPDATE_DATE,
    CPSHC.UPDATE_USER,
    CPSHC.UPDATE_NUM
  FROM CL_PAYMENT_SPCL_HANDLING_CODE CPSHC
  WHERE CPSHC.CODE = :code
)
WHERE ROWNUM <= 1
```

## Operations and processes

- [Other query providers](../operations/other-query-providers.md)


## Sources
- `Data/SAIF.Data/Queries/Claims/ClaimPaymentQueryProvider.cs:20`
