Skip to content

SQL-033: clsMenuFavorite

Updates an existing menu favorite record in MENU_FAVORITE, including the deactivation date field.

Classification

Field Value
SQL ID SQL-033
Operation type Update
Execution method Inline SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsMenuFavorite
Criteria property UpdateSQL
Lifecycle method BeforeUpdate / AfterUpdate

Parameters

Parameter Direction Type Max length Description
:MenuFavoriteSeqNum Input Decimal** N/A New/current seq num bound from MenuFavoriteSeqNum.
:UserID Input String** 30 User login bound from UserID.
:MenuItemSeqNum Input Decimal** N/A Menu item FK bound from MenuItemSeqNum.
:MenuOrder Input Decimal** N/A Display order bound from MenuOrder.
:UserEmplID Input String** 11 Employee ID bound from m_UserEmplID.
:ItemInactiveDate Input Date** N/A Deactivation date bound from m_ItemInactiveDate.
:MenuFavoriteSeqNum (WHERE) Input Decimal** N/A WHERE key bound from MyCriteria.MenuFavoriteSeqNum.

Tables

Table Access Columns used
MENU_FAVORITE UPDATE MENU_FAVORITE_SEQ_NUM, MENU_USER, MENU_USER_EMPLID, MENU_ITEM_SEQ_NUM, MENU_ORDER_NUM, ITEM_INACTIVE_DATE (WHERE MENU_FAVORITE_SEQ_NUM)

Sample SQL

Update MENU_FAVORITE
Set MENU_FAVORITE_SEQ_NUM = :MenuFavoriteSeqNum,
    MENU_USER = :UserID,
    MENU_USER_EMPLID = :UserEmplID,
    MENU_ITEM_SEQ_NUM = :MenuItemSeqNum,
    MENU_ORDER_NUM = :MenuOrder,
    ITEM_INACTIVE_DATE = :ItemInactiveDate
Where MENU_FAVORITE.MENU_FAVORITE_SEQ_NUM = :MenuFavoriteSeqNum

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.Menu\clsMenuFavorite.vb