SQL-002 Get agency¶
Retrieve the agency row for a policy.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-002 |
| Operation type | Read |
| Execution method | Stored procedure |
| Database | Oracle |
| Schema | [unqualified]** |
| Command type | StoredProcedure |
| Business object | clsAgency |
| Criteria property | RetrieveSQL |
| Lifecycle method | BeforeRetrieve / AfterRetrieve |
Parameters¶
| Parameter | Direction | Type | Max length | Description |
|---|---|---|---|---|
:apolicynum |
Input | Decimal | N/A | Policy number |
recordset |
Output (Cursor) | REF CURSOR | N/A | Agency row |
Tables¶
N/A — Stored procedure
Sample SQL¶
-- Oracle stored procedure call (CommandType.StoredProcedure)
-- clsAgency.BeforeRetrieve
CALL pk72846_view_policy.getAgency(
:apolicynum,
:recordset)
Operations and processes¶
Business rules¶
- BR-VP-010: Demo users see masked data
- BR-VP-025: Missing agency row records a "No data found" error
- BR-VP-027: Create/Insert/Update/Delete SQL are invalid
Sources¶
SAIF.Business.View.Policy/clsAgency.vb