Skip to content

SQL-011: Insert a new group membership

This statement is the InsertSQL implementation of clsMenuSecurityUser.Criteria, executed from BeforeInsert against MENU_SECURITY_USER. Insert a new group membership.

Classification

Field Value
SQL ID SQL-011
Operation type Create
Execution method Inline SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsMenuSecurityUser
Criteria property InsertSQL
Lifecycle method BeforeInsert

Parameters

Parameter Direction Type Max length Description
:SecurityGroupTxt Input String 255 Security-group name the user is joining
:MenuUser Input String 30 Menu user account name
:MenuUserID Input String 11 Employee ID stored alongside the membership

Tables

Table Access Columns used
MENU_SECURITY_USER INSERT MENU_SECURITY_USER_SEQ_NUM (inline NEXTVAL), SECURITY_GROUP_TXT, MENU_USER, MENU_USER_EMPLID

Sample SQL

-- Insert a new group membership
Insert into
  MENU_SECURITY_USER
  (
  MENU_SECURITY_USER_SEQ_NUM,
  SECURITY_GROUP_TXT,
  MENU_USER,
  MENU_USER_EMPLID
  )
Values
  (
  MENU_SECURITY_USER_SEQ.NEXTVAL,
  :SecurityGroupTxt,
  :MenuUser,
  :MenuUserID
  )

Operations and processes

Business rules

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • SAIF.Business.Menu/clsMenuSecurityUser.vb