Skip to content

SQL-032: Read Pa Auditor Data

This statement supports the premium-audit library by read Pa Auditor Data.

Classification

Field Value
SQL ID SQL-032
Operation type Read
Execution method IDataRequest.SQLStatement (CommandType.Text)
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsAuditor
Criteria property RetrieveSQL
Lifecycle method BeforeRetrieve / AfterRetrieve

Parameters

Parameter Direction Type Max length Description
:AuditorID Input bound from MyCriteria.AuditorID 10 Bound in clsAuditor.BeforeRetrieve (line 471)
:UserID Input bound from MyCriteria.UserID 30 Bound in clsAuditor.BeforeRetrieve (line 472)

Tables

Table Access Columns used
PA_AUDITOR SELECT See sample SQL.

Sample SQL

SELECT
  pa_auditor.assign_flag AS assignflag,
  pa_auditor.auditor_assignee_id AS auditorassigneeid,
  pa_auditor.auditor_email_addr AS auditoremailaddr,
  pa_auditor.auditor_name AS auditorname,
  pa_auditor.auditor_short_name AS auditorshortname,
  pa_auditor.filter_list_flag AS filterlistflag,
  pa_auditor.monthly_maximum_count AS monthlymaximumcount,
  pa_auditor.pa_auditor_id AS auditorid,
  pa_auditor.schedule_flag AS scheduleflag,
  pa_auditor.user_id AS userid,
  pa_auditor.vendor_num AS vendornumber,
  pa_auditor.reviewer_flag AS ReviewerFlag,
  pa_auditor.active_reviewer_flag as ActiveReviewerFlag
FROM
  pa_auditor
WHERE
  pa_auditor.pa_auditor_id = :AuditorID
  OR upper(pa_auditor.user_id)= upper(:UserID)

Operations and processes

Business rules

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

  • Business/SAIF.Business.Policy.Audit.Premium/clsAuditor.vb:831