Skip to content

SQL-007: Insert Pa Event Data

This statement supports the premium-audit library by insert Pa Event Data.

Classification

Field Value
SQL ID SQL-007
Operation type Insert
Execution method IDataRequest.SQLStatement (CommandType.Text)
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsAuditEventCollection
Criteria property InsertSQL
Lifecycle method BeforeInsert / AfterInsert

Parameters

Parameter Direction Type Max length Description
:EventDate Input bound from EventDate — Bound in clsAuditEventCollection.BeforeInsert (line 264)
:EventText Input bound from m_EventText 100 Bound in clsAuditEventCollection.BeforeInsert (line 268)
:EventUserID Input bound from EventUserID 30 Bound in clsAuditEventCollection.BeforeInsert (line 265)
:AuditSeqNum Input bound from MyCriteria.AuditSeqNum — Bound in clsAuditEventCollection.BeforeRetrieve (line 179)
:EventCode Input bound from EventCode 5 Bound in clsAuditEventCollection.BeforeInsert (line 267)
:EventSeqNum Input bound from EventSeqNum — Bound in clsAuditEventCollection.BeforeInsert (line 271)

Tables

Table Access Columns used
PA_EVENT INSERT See sample SQL.

Sample SQL

INSERT INTO
  PA_EVENT
  (
    EVENT_DATE,
    EVENT_TEXT,
    EVENT_USER_ID,
    PA_AUDIT_SEQ_NUM,
    PA_EVENT_CODE,
    PA_EVENT_SEQ_NUM
  )
VALUES
  (
    :EventDate,
    :EventText,
    :EventUserID,
    :AuditSeqNum,
    :EventCode,
    :EventSeqNum
  )

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/clsAuditEventCollection.vb:380