SQL-033: Read Pa Auditor Data
This statement supports the premium-audit library by read Pa Auditor Data.
Classification
Field
Value
SQL ID
SQL-033
Operation type
Read
Execution method
IDataRequest.SQLStatement (CommandType.Text)
Database
Oracle
Schema
[unqualified]**
Command type
Text
Business object
clsAuditorCollection
Criteria property
RetrieveSQL
Lifecycle method
BeforeRetrieve / AfterRetrieve
Parameters
Parameter
Direction
Type
Max length
Description
:VendorNumber
Input
bound from MyCriteria.VendorNumber
9
Bound in clsAuditorCollection.BeforeRetrieve (line 208)
:AssignFlag
Input
bound from IIf(MyCriteria.IsAssignable
—
Bound in clsAuditorCollection.BeforeRetrieve (line 209)
:FilterFlag
Input
bound from IIf(MyCriteria.IsFilterable
—
Bound in clsAuditorCollection.BeforeRetrieve (line 210)
:ScheduleFlag
Input
bound from IIf(MyCriteria.IsSchedulable
—
Bound in clsAuditorCollection.BeforeRetrieve (line 211)
:ReviewerFlag
Input
bound from IIf(MyCriteria.IsReviewer
—
Bound in clsAuditorCollection.BeforeRetrieve (line 212)
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
(: VendorNumber = VENDOR_NUM or : VendorNumber is NULL )
AND (
(: AssignFlag = ASSIGN_FLAG
or : FilterFlag = FILTER_LIST_FLAG
or : ScheduleFlag = SCHEDULE_FLAG
or : ReviewerFlag = REVIEWER_FLAG )
or
(: AssignFlag = 'x'
and : FilterFlag = 'x'
and : ScheduleFlag = 'x'
and : ReviewerFlag = 'x' ))
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/clsAuditorCollection.vb:500