rem rem $Header: L:\\\\model\\repman40\\api\\RCS\\ciosp.hpb 1.2 1998/10/09 12:33:45 jkchow Exp $ rem Rem Copyright (c) 1994 by Oracle Corporation Rem NAME Rem ciosp.hpb - Rem DESCRIPTION Rem Rem RETURNS Rem Rem NOTES Rem Rem MODIFIED (MM/DD/YY) Rem aheath 07/08/94 - Creation REM *************************************************************************** REM Hand-carved package body for Storage Definition created on 08-JUN-94 REM *************************************************************************** CREATE OR REPLACE PACKAGE BODY cihosp IS -- Type-specific pre-process routines -- Type-specific post-process routines PROCEDURE check_delete(id rm.reference); pac_type constant varchar2(6) := 'OSP'; --======================== PRE-PROCESS (INS,UPD) ============================-- PROCEDURE pre_process(operation varchar2,id rm.reference, pl in out NOCOPY ciostorage_definition.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); -- 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; -- Initialize unassigned properties with default values on INSERT if operation = 'INS' then -- Assign insert defaults pl.v.element_type_name := pac_type; pl.i.element_type_name := 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); -- if operation is 'DELETE', make sure no non-cascading references exist if operation = 'DEL' then check_delete(id); end if; END; --===================== POST-PROCESS (INS,UPD,SEL) ==========================-- PROCEDURE post_process(operation varchar2,id rm.reference, pl ciostorage_definition.data) IS BEGIN -- B533161 - Change in model; if unlimited flag is set max extents must be null if (operation in ('INS','UPD') and (pl.i.unlimited_flag or pl.i.maximum_extents)) then if pl.v.unlimited_flag = 'Y' and pl.v.maximum_extents is not null then ciierr.fatal(1196,ciiutl.identify(id, pl.v.types)); end if; end if; if operation = 'INS' then ciiutl.create_appxxx(pac_type,pl.v.id,pl.v.name); elsif operation = 'UPD' and pl.i.name then cioapp_con_interface.traverse('CIHAPPCONU1',id,'APPOSP'); end if; END; --========================= POST PROCESS (DEL) ==============================-- PROCEDURE post_process(operation varchar2,id rm.reference) IS BEGIN if operation = 'DEL' then -- Delete the Storage Definition and all it's related sub-bits ciiutl.delete_element(id,pac_type); end if; END; --============================= CHECK DELETE ================================-- PROCEDURE check_delete(id rm.reference) IS dummy number; BEGIN null; -- 4.0.12 Removed all simple delete checking -- Check if this storage definition is connected to other application systems -- Check if any indexes are connected to me -- Check if any tablespaces are connected to me -- Check if any rollback segments are connected to me -- Check if any clusters are connected to me END; --================================== END ====================================-- -- -- Package instantiation block -- BEGIN is_installed := true; END; /