Database data functions

The BAM generates functions for working with database data code events.

Table 1. Database data events
Function Name Description
PUBLIC FUNCTION dbxDataEvent_tableName_SetDefaultValues(
   p_data record-type)
   RETURNS (record-type)
Function called to initialize the record with default values.
PUBLIC FUNCTION dbxDataEvent_tableName_CheckTableConstraints(
   p_forUpdate BOOLEAN,
   p_data record-type )
   RETURNS (INTEGER, STRING)
Function called to check the table constraints.
PUBLIC FUNCTION dbxDataEvent_tableName_BeforeInsertRowByKey(
   p_data record-type)
   RETURNS (INTEGER, STRING, record-type)
Function called before inserting a row in the table.
PUBLIC FUNCTION dbxDataEvent_tableName_AfterInsertRowByKey(
   p_data record-type)
   RETURNS (INTEGER, STRING)
Function called after inserting a row in the table.
PUBLIC FUNCTION dbxDataEvent_tableName_BeforeUpdateRowByKey(
   p_data record-type)
   RETURNS (INTEGER, STRING)
Function called before updating a row in the table.
PUBLIC FUNCTION dbxDataEvent_tableName_AfterUpdateRowByKey(
   p_data record-type)
   RETURNS (INTEGER, STRING)
Function called after updating a row in the table.
PUBLIC FUNCTION dbxDataEvent_tableName_BeforeDeleteRowByKey(
   p_key record-type)
   RETURNS (INTEGER)
Function called before deleting a row in the table.
PUBLIC FUNCTION dbxDataEvent_tableName_AfterDeleteRowByKey(
   p_key record-type)
   RETURNS (INTEGER)
Function called after deleting a row in the table.