#+ DB schema - Events Management (mydatabase) -------------------------------------------------------------------------------- --This code is generated with the template dbapp5.0 IMPORT FGL libdbappEvents IMPORT FGL mydatabase_common IMPORT FGL mydatabase -------------------------------------------------------------------------------- --Database schema SCHEMA mydatabase -- DATABASE EVENT FUNCTION TYPES - TABLE LEVEL PUBLIC TYPE T_DbxDataEvent_transportistas_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE transportistas.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_transacciones_master_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE transacciones_master.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_transacciones_master_BeforeInsertRowByKey FUNCTION(p_data RECORD LIKE transacciones_master.*) RETURNS (INTEGER, STRING, RECORD LIKE transacciones_master.*) PUBLIC TYPE T_DbxDataEvent_transacciones_master_AfterInsertRowByKey FUNCTION(p_data RECORD LIKE transacciones_master.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_transacciones_master_BeforeDeleteRowByKey FUNCTION(p_key transacciones_master_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_transacciones_master_AfterDeleteRowByKey FUNCTION(p_key transacciones_master_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_transacciones_master_BeforeUpdateRowByKey FUNCTION(p_data RECORD LIKE transacciones_master.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_transacciones_master_AfterUpdateRowByKey FUNCTION(p_data RECORD LIKE transacciones_master.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_transacciones_master_SetDefaultValues FUNCTION(p_data RECORD LIKE transacciones_master.*) RETURNS (RECORD LIKE transacciones_master.*) PUBLIC TYPE T_DbxDataEvent_tramo_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE tramo.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seqreg_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE seqreg.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seqreg_BeforeInsertRowByKey FUNCTION(p_data RECORD LIKE seqreg.*) RETURNS (INTEGER, STRING, RECORD LIKE seqreg.*) PUBLIC TYPE T_DbxDataEvent_seqreg_AfterInsertRowByKey FUNCTION(p_data RECORD LIKE seqreg.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seqreg_BeforeDeleteRowByKey FUNCTION(p_key seqreg_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_seqreg_AfterDeleteRowByKey FUNCTION(p_key seqreg_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_seqreg_BeforeUpdateRowByKey FUNCTION(p_data RECORD LIKE seqreg.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seqreg_AfterUpdateRowByKey FUNCTION(p_data RECORD LIKE seqreg.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seqreg_SetDefaultValues FUNCTION(p_data RECORD LIKE seqreg.*) RETURNS (RECORD LIKE seqreg.*) PUBLIC TYPE T_DbxDataEvent_seg000_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE seg000.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seg000_BeforeInsertRowByKey FUNCTION(p_data RECORD LIKE seg000.*) RETURNS (INTEGER, STRING, RECORD LIKE seg000.*) PUBLIC TYPE T_DbxDataEvent_seg000_AfterInsertRowByKey FUNCTION(p_data RECORD LIKE seg000.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seg000_BeforeDeleteRowByKey FUNCTION(p_key seg000_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_seg000_AfterDeleteRowByKey FUNCTION(p_key seg000_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_seg000_BeforeUpdateRowByKey FUNCTION(p_data RECORD LIKE seg000.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seg000_AfterUpdateRowByKey FUNCTION(p_data RECORD LIKE seg000.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_seg000_SetDefaultValues FUNCTION(p_data RECORD LIKE seg000.*) RETURNS (RECORD LIKE seg000.*) PUBLIC TYPE T_DbxDataEvent_seccion_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE seccion.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_productos_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_productos_BeforeInsertRowByKey FUNCTION(p_data RECORD LIKE productos.*) RETURNS (INTEGER, STRING, RECORD LIKE productos.*) PUBLIC TYPE T_DbxDataEvent_productos_AfterInsertRowByKey FUNCTION(p_data RECORD LIKE productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_productos_BeforeDeleteRowByKey FUNCTION(p_key productos_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_productos_AfterDeleteRowByKey FUNCTION(p_key productos_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_productos_BeforeUpdateRowByKey FUNCTION(p_data RECORD LIKE productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_productos_AfterUpdateRowByKey FUNCTION(p_data RECORD LIKE productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_productos_SetDefaultValues FUNCTION(p_data RECORD LIKE productos.*) RETURNS (RECORD LIKE productos.*) PUBLIC TYPE T_DbxDataEvent_irtb00012_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE irtb00012.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_iptb00012_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE iptb00012.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_iptb00011_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE iptb00011.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_intb00012_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE intb00012.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_grupo_producto_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE grupo_producto.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_grupo_producto_BeforeInsertRowByKey FUNCTION(p_data RECORD LIKE grupo_producto.*) RETURNS (INTEGER, STRING, RECORD LIKE grupo_producto.*) PUBLIC TYPE T_DbxDataEvent_grupo_producto_AfterInsertRowByKey FUNCTION(p_data RECORD LIKE grupo_producto.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_grupo_producto_BeforeDeleteRowByKey FUNCTION(p_key grupo_producto_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_grupo_producto_AfterDeleteRowByKey FUNCTION(p_key grupo_producto_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_grupo_producto_BeforeUpdateRowByKey FUNCTION(p_data RECORD LIKE grupo_producto.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_grupo_producto_AfterUpdateRowByKey FUNCTION(p_data RECORD LIKE grupo_producto.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_grupo_producto_SetDefaultValues FUNCTION(p_data RECORD LIKE grupo_producto.*) RETURNS (RECORD LIKE grupo_producto.*) PUBLIC TYPE T_DbxDataEvent_companias_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE companias.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_companias_BeforeInsertRowByKey FUNCTION(p_data RECORD LIKE companias.*) RETURNS (INTEGER, STRING, RECORD LIKE companias.*) PUBLIC TYPE T_DbxDataEvent_companias_AfterInsertRowByKey FUNCTION(p_data RECORD LIKE companias.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_companias_BeforeDeleteRowByKey FUNCTION(p_key companias_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_companias_AfterDeleteRowByKey FUNCTION(p_key companias_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_companias_BeforeUpdateRowByKey FUNCTION(p_data RECORD LIKE companias.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_companias_AfterUpdateRowByKey FUNCTION(p_data RECORD LIKE companias.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_companias_SetDefaultValues FUNCTION(p_data RECORD LIKE companias.*) RETURNS (RECORD LIKE companias.*) PUBLIC TYPE T_DbxDataEvent_clase_productos_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE clase_productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_clase_productos_BeforeInsertRowByKey FUNCTION(p_data RECORD LIKE clase_productos.*) RETURNS (INTEGER, STRING, RECORD LIKE clase_productos.*) PUBLIC TYPE T_DbxDataEvent_clase_productos_AfterInsertRowByKey FUNCTION(p_data RECORD LIKE clase_productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_clase_productos_BeforeDeleteRowByKey FUNCTION(p_key clase_productos_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_clase_productos_AfterDeleteRowByKey FUNCTION(p_key clase_productos_pk) RETURNS (INTEGER) PUBLIC TYPE T_DbxDataEvent_clase_productos_BeforeUpdateRowByKey FUNCTION(p_data RECORD LIKE clase_productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_clase_productos_AfterUpdateRowByKey FUNCTION(p_data RECORD LIKE clase_productos.*) RETURNS (INTEGER, STRING) PUBLIC TYPE T_DbxDataEvent_clase_productos_SetDefaultValues FUNCTION(p_data RECORD LIKE clase_productos.*) RETURNS (RECORD LIKE clase_productos.*) PUBLIC TYPE T_DbxDataEvent_bodegas_CheckTableConstraints FUNCTION(p_forUpdate BOOLEAN, p_data RECORD LIKE bodegas.*) RETURNS (INTEGER, STRING) -- DATABASE EVENT FUNCTION VARIABLES - TABLE LEVEL PUBLIC DEFINE m_DbxDataEvent_transportistas_CheckTableConstraints T_DbxDataEvent_transportistas_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_transacciones_master_CheckTableConstraints T_DbxDataEvent_transacciones_master_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_transacciones_master_BeforeInsertRowByKey T_DbxDataEvent_transacciones_master_BeforeInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_transacciones_master_AfterInsertRowByKey T_DbxDataEvent_transacciones_master_AfterInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_transacciones_master_BeforeDeleteRowByKey T_DbxDataEvent_transacciones_master_BeforeDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_transacciones_master_AfterDeleteRowByKey T_DbxDataEvent_transacciones_master_AfterDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_transacciones_master_BeforeUpdateRowByKey T_DbxDataEvent_transacciones_master_BeforeUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_transacciones_master_AfterUpdateRowByKey T_DbxDataEvent_transacciones_master_AfterUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_transacciones_master_SetDefaultValues T_DbxDataEvent_transacciones_master_SetDefaultValues PUBLIC DEFINE m_DbxDataEvent_tramo_CheckTableConstraints T_DbxDataEvent_tramo_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_seqreg_CheckTableConstraints T_DbxDataEvent_seqreg_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_seqreg_BeforeInsertRowByKey T_DbxDataEvent_seqreg_BeforeInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_seqreg_AfterInsertRowByKey T_DbxDataEvent_seqreg_AfterInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_seqreg_BeforeDeleteRowByKey T_DbxDataEvent_seqreg_BeforeDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_seqreg_AfterDeleteRowByKey T_DbxDataEvent_seqreg_AfterDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_seqreg_BeforeUpdateRowByKey T_DbxDataEvent_seqreg_BeforeUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_seqreg_AfterUpdateRowByKey T_DbxDataEvent_seqreg_AfterUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_seqreg_SetDefaultValues T_DbxDataEvent_seqreg_SetDefaultValues PUBLIC DEFINE m_DbxDataEvent_seg000_CheckTableConstraints T_DbxDataEvent_seg000_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_seg000_BeforeInsertRowByKey T_DbxDataEvent_seg000_BeforeInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_seg000_AfterInsertRowByKey T_DbxDataEvent_seg000_AfterInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_seg000_BeforeDeleteRowByKey T_DbxDataEvent_seg000_BeforeDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_seg000_AfterDeleteRowByKey T_DbxDataEvent_seg000_AfterDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_seg000_BeforeUpdateRowByKey T_DbxDataEvent_seg000_BeforeUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_seg000_AfterUpdateRowByKey T_DbxDataEvent_seg000_AfterUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_seg000_SetDefaultValues T_DbxDataEvent_seg000_SetDefaultValues PUBLIC DEFINE m_DbxDataEvent_seccion_CheckTableConstraints T_DbxDataEvent_seccion_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_productos_CheckTableConstraints T_DbxDataEvent_productos_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_productos_BeforeInsertRowByKey T_DbxDataEvent_productos_BeforeInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_productos_AfterInsertRowByKey T_DbxDataEvent_productos_AfterInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_productos_BeforeDeleteRowByKey T_DbxDataEvent_productos_BeforeDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_productos_AfterDeleteRowByKey T_DbxDataEvent_productos_AfterDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_productos_BeforeUpdateRowByKey T_DbxDataEvent_productos_BeforeUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_productos_AfterUpdateRowByKey T_DbxDataEvent_productos_AfterUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_productos_SetDefaultValues T_DbxDataEvent_productos_SetDefaultValues PUBLIC DEFINE m_DbxDataEvent_irtb00012_CheckTableConstraints T_DbxDataEvent_irtb00012_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_iptb00012_CheckTableConstraints T_DbxDataEvent_iptb00012_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_iptb00011_CheckTableConstraints T_DbxDataEvent_iptb00011_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_intb00012_CheckTableConstraints T_DbxDataEvent_intb00012_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_grupo_producto_CheckTableConstraints T_DbxDataEvent_grupo_producto_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_grupo_producto_BeforeInsertRowByKey T_DbxDataEvent_grupo_producto_BeforeInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_grupo_producto_AfterInsertRowByKey T_DbxDataEvent_grupo_producto_AfterInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_grupo_producto_BeforeDeleteRowByKey T_DbxDataEvent_grupo_producto_BeforeDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_grupo_producto_AfterDeleteRowByKey T_DbxDataEvent_grupo_producto_AfterDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_grupo_producto_BeforeUpdateRowByKey T_DbxDataEvent_grupo_producto_BeforeUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_grupo_producto_AfterUpdateRowByKey T_DbxDataEvent_grupo_producto_AfterUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_grupo_producto_SetDefaultValues T_DbxDataEvent_grupo_producto_SetDefaultValues PUBLIC DEFINE m_DbxDataEvent_companias_CheckTableConstraints T_DbxDataEvent_companias_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_companias_BeforeInsertRowByKey T_DbxDataEvent_companias_BeforeInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_companias_AfterInsertRowByKey T_DbxDataEvent_companias_AfterInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_companias_BeforeDeleteRowByKey T_DbxDataEvent_companias_BeforeDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_companias_AfterDeleteRowByKey T_DbxDataEvent_companias_AfterDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_companias_BeforeUpdateRowByKey T_DbxDataEvent_companias_BeforeUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_companias_AfterUpdateRowByKey T_DbxDataEvent_companias_AfterUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_companias_SetDefaultValues T_DbxDataEvent_companias_SetDefaultValues PUBLIC DEFINE m_DbxDataEvent_clase_productos_CheckTableConstraints T_DbxDataEvent_clase_productos_CheckTableConstraints PUBLIC DEFINE m_DbxDataEvent_clase_productos_BeforeInsertRowByKey T_DbxDataEvent_clase_productos_BeforeInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_clase_productos_AfterInsertRowByKey T_DbxDataEvent_clase_productos_AfterInsertRowByKey PUBLIC DEFINE m_DbxDataEvent_clase_productos_BeforeDeleteRowByKey T_DbxDataEvent_clase_productos_BeforeDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_clase_productos_AfterDeleteRowByKey T_DbxDataEvent_clase_productos_AfterDeleteRowByKey PUBLIC DEFINE m_DbxDataEvent_clase_productos_BeforeUpdateRowByKey T_DbxDataEvent_clase_productos_BeforeUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_clase_productos_AfterUpdateRowByKey T_DbxDataEvent_clase_productos_AfterUpdateRowByKey PUBLIC DEFINE m_DbxDataEvent_clase_productos_SetDefaultValues T_DbxDataEvent_clase_productos_SetDefaultValues PUBLIC DEFINE m_DbxDataEvent_bodegas_CheckTableConstraints T_DbxDataEvent_bodegas_CheckTableConstraints -- REGISTER EVENT FUNCTIONS PUBLIC FUNCTION registerDbxEvents() -- REGISTER DATABASE EVENT FUNCTIONS - TABLE LEVEL END FUNCTION