---
title: "SQL-013: CollectionsRepository.GetInterest"
summary: Read operation for CollectionsRepository
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data.NHibernate
reference_type: package
---


# SQL-013: CollectionsRepository.GetInterest

This statement is a read operation invoked through StoredProc (named query Collections_GetCaseInterest). Executed by `CollectionsRepository.GetInterest`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-013 |
| **Operation type** | Read |
| **Execution method** | StoredProc (named query `Collections_GetCaseInterest`) |
| **Database** | Oracle |
| **Schema** | WCIS_DBA* (package owner; unqualified inside package); [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | `CollectionsRepository` |
| **Criteria property** | N/A — no IBusinessCriteria |
| **Lifecycle method** | `GetInterest` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:legal_collection_seq_num_in` | Input | VARCHAR2 (.NET `string`) | N/A** | Case id or 'ALL' |
| `:run_date_in` | Input | DATE | N/A | Interest run date |
| `recordset` | Output | REF CURSOR → `CaseInterest` | N/A | Result set |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [LEGAL_COLLECTION](../database-tables.md#legal_collection) | Read | See Sample SQL |
| [LEGAL_COLLECTION_TRANSACTION](../database-tables.md#legal_collection_transaction) | Read | See Sample SQL |

## Sample SQL

Source: `Data/SAIF.Data.NHibernate/Mappings/Collections/Collections.hbm.xml:42`

```sql
{ call pk80010_legal_collections.interest_calc_select(:legal_collection_seq_num_in, :run_date_in) }
```

## Operations and processes

- [Collections interest and payment selection](../operations/collections-interest-and-payment-selection.md)

## Business rules

- [PROC-RULE-014](../business-rules.md#proc-rule-014-'all'-selects-every-case)
- [PROC-RULE-017](../business-rules.md#proc-rule-017-interest-start-date-and-statement-balance)

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources
- `Data/SAIF.Data.NHibernate/Repositories/CollectionsRepository.cs:93`
