git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493

This commit is contained in:
andrew.gilmore
2012-03-19 11:57:19 +00:00
parent 2a0f4900c3
commit 0e9ca75d77
1587 changed files with 500863 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
CREATE OR REPLACE TRIGGER EFT_NOM.cg$AIS_USER_CONTACT_DETAILS
AFTER INSERT ON USER_CONTACT_DETAILS
DECLARE
idx BINARY_INTEGER := cg$USER_CONTACT_DETAILS.cg$table.FIRST;
cg$rec cg$USER_CONTACT_DETAILS.cg$row_type;
cg$old_rec cg$USER_CONTACT_DETAILS.cg$row_type;
fk_check INTEGER;
BEGIN
-- Application_logic Pre-After-Insert-statement <<Start>>
-- Application_logic Pre-After-Insert-statement << End >>
IF NOT (cg$USER_CONTACT_DETAILS.called_from_package) THEN
WHILE idx IS NOT NULL LOOP
cg$rec.USCD_ID := cg$USER_CONTACT_DETAILS.cg$table(idx).USCD_ID;
cg$rec.SYUS_ID := cg$USER_CONTACT_DETAILS.cg$table(idx).SYUS_ID;
cg$rec.EMAIL_ADDRESS := cg$USER_CONTACT_DETAILS.cg$table(idx).EMAIL_ADDRESS;
cg$rec.DEFAULT_ADDRESS := cg$USER_CONTACT_DETAILS.cg$table(idx).DEFAULT_ADDRESS;
cg$rec.SMS_NUMBER := cg$USER_CONTACT_DETAILS.cg$table(idx).SMS_NUMBER;
cg$USER_CONTACT_DETAILS.validate_foreign_keys_ins(cg$rec);
cg$USER_CONTACT_DETAILS.upd_oper_denorm2( cg$rec,
cg$old_rec,
cg$USER_CONTACT_DETAILS.cg$tableind(idx),
'INS'
);
idx := cg$USER_CONTACT_DETAILS.cg$table.NEXT(idx);
END LOOP;
END IF;
-- Application_logic Post-After-Insert-statement <<Start>>
-- Application_logic Post-After-Insert-statement << End >>
END;
/