rem rem $Header: L:\\\\model\\repman40\\api\\RCS\\cidit.hpb 1.2 1998/10/09 11:26:18 jkchow Exp $ rem Rem Copyright (c) 1994 by Oracle Corporation Rem NAME Rem cidit.hpb - Rem DESCRIPTION Rem Rem RETURNS Rem Rem NOTES Rem Rem MODIFIED (MM/DD/YY) Rem aheath 07/08/94 - Creation CREATE OR REPLACE PACKAGE BODY cihdit IS -- Generic pre-process routines PROCEDURE assign_insert_defaults(pl in out NOCOPY ciodata_item.data); -- Type-specific pre-process routines -- Type-specific post-process routines pac_type constant varchar2(3) := 'DIT'; --======================== PRE-PROCESS (INS,UPD) ============================-- PROCEDURE pre_process(operation varchar2,id rm.reference, pl in out NOCOPY ciodata_item.data) IS BEGIN -- Access control checks -- Access rights checking performed by triggers in config 4.0.9 -- ciiacc.check_pac(pl.v.id,pac_type,operation); -- Initialize unassigned properties with default values on INSERT if operation = 'INS' then assign_insert_defaults(pl); end if; -- Validate user-defined properties if cieval.is_extended then cieval.check_element(id,pl.v.types,(operation='UPD') ,pl.v.user_defined_property_0,pl.i.user_defined_property_0 ,pl.v.user_defined_property_1,pl.i.user_defined_property_1 ,pl.v.user_defined_property_2,pl.i.user_defined_property_2 ,pl.v.user_defined_property_3,pl.i.user_defined_property_3 ,pl.v.user_defined_property_4,pl.i.user_defined_property_4 ,pl.v.user_defined_property_5,pl.i.user_defined_property_5 ,pl.v.user_defined_property_6,pl.i.user_defined_property_6 ,pl.v.user_defined_property_7,pl.i.user_defined_property_7 ,pl.v.user_defined_property_8,pl.i.user_defined_property_8 ,pl.v.user_defined_property_9,pl.i.user_defined_property_9 ,pl.v.user_defined_property_10,pl.i.user_defined_property_10 ,pl.v.user_defined_property_11,pl.i.user_defined_property_11 ,pl.v.user_defined_property_12,pl.i.user_defined_property_12 ,pl.v.user_defined_property_13,pl.i.user_defined_property_13 ,pl.v.user_defined_property_14,pl.i.user_defined_property_14 ,pl.v.user_defined_property_15,pl.i.user_defined_property_15 ,pl.v.user_defined_property_16,pl.i.user_defined_property_16 ,pl.v.user_defined_property_17,pl.i.user_defined_property_17 ,pl.v.user_defined_property_18,pl.i.user_defined_property_18 ,pl.v.user_defined_property_19,pl.i.user_defined_property_19 ); end if; -- Assign denormalized and derived property values if pl.i.format or pl.i.maximum_length or pl.i.decimal_places or pl.i.average_length then ciiutl.adjust_datatype_sizes(pl.v.id,'DIT',pl.v.format,pl.v.maximum_length, pl.v.decimal_places,'DATA_FORMAT',pl.v.average_length); pl.i.maximum_length := true; pl.i.decimal_places := true; end if; END; --======================== PRE-PROCESS (DEL,SEL) ============================-- PROCEDURE pre_process(operation varchar2,id rm.reference) IS BEGIN -- access control checks -- Access rights checking performed by triggers in config 4.0.9 -- ciiacc.check_pac(id,pac_type,operation); null; END; --===================== POST-PROCESS (INS,UPD,SEL) ==========================-- PROCEDURE post_process(operation varchar2,id rm.reference,pl ciodata_item.data) IS BEGIN if operation = 'INS' then ciiutl.create_appxxx(pac_type,pl.v.id,pl.v.name); end if; if operation = 'UPD' and pl.i.name then cioapp_con_interface.traverse('CIHAPPCONU1',pl.v.id,'APPDIT'); end if; END; --========================= POST PROCESS (DEL) ==============================-- PROCEDURE post_process(operation varchar2,id rm.reference) IS BEGIN if operation = 'DEL' then -- Delete the entity and all it's related sub-bits ciiutl.delete_element(id,pac_type); end if; END; --========================= ASSIGN INSERT DEFAULTS ==========================-- PROCEDURE assign_insert_defaults(pl in out NOCOPY ciodata_item.data) IS BEGIN -- Default the element_type_name, etc. pl.v.element_type_name := pac_type; pl.i.element_type_name := true; END; --================================== END ====================================-- -- -- Package instantiation block -- BEGIN is_installed := true; END; /