DBA Data[Home] [Help]

PACKAGE BODY: APPS.HR_LOCATION_BK3

Source


1 package body HR_LOCATION_BK3 as
2 /* $Header: hrlocapi.pkb 120.4 2010/10/19 11:52:44 generated ship $ */
3 -- Code generated by the Oracle HRMS API Hook Pre-processor
4 -- Created on 2012/11/27 04:05:05 (YYYY/MM/DD HH24:MI:SS)
5 procedure DELETE_LOCATION_A
6 (P_LOCATION_ID in NUMBER
7 ,P_OBJECT_VERSION_NUMBER in NUMBER
8 )is
9 l_commit_unit_number number;
10 l_legislation_code   varchar2(30);
11 begin
12 hr_utility.set_location('Entering: HR_LOCATION_BK3.DELETE_LOCATION_A', 10);
13 l_commit_unit_number := hr_api.return_commit_unit;
14 if hr_api.call_app_hooks then
15 WSH_MAP_LOCATION_REGION_PKG.Location_User_Hook_API
16 (P_LOCATION_ID => P_LOCATION_ID
17 );
18 hr_location_be3.DELETE_LOCATION_A
19 (P_LOCATION_ID => P_LOCATION_ID
20 ,P_OBJECT_VERSION_NUMBER => P_OBJECT_VERSION_NUMBER
21 );
22 end if;
23 hr_multi_message.end_validation_set;
24 hr_api.validate_commit_unit(l_commit_unit_number, 'DELETE_LOCATION', 'AP');
25 hr_utility.set_location(' Leaving: HR_LOCATION_BK3.DELETE_LOCATION_A', 20);
26 end DELETE_LOCATION_A;
27 procedure DELETE_LOCATION_B
28 (P_LOCATION_ID in NUMBER
29 ,P_OBJECT_VERSION_NUMBER in NUMBER
30 )is
31 l_commit_unit_number number;
32 l_legislation_code   varchar2(30);
33 begin
34 hr_utility.set_location('Entering: HR_LOCATION_BK3.DELETE_LOCATION_B', 10);
35 l_commit_unit_number := hr_api.return_commit_unit;
36 if hr_api.call_app_hooks then
37 WSH_MAP_LOCATION_REGION_PKG.PREDEL_LOC_VALIDATION
38 (P_LOCATION_ID => P_LOCATION_ID
39 );
40 end if;
41 hr_api.validate_commit_unit(l_commit_unit_number, 'DELETE_LOCATION', 'BP');
42 hr_utility.set_location(' Leaving: HR_LOCATION_BK3.DELETE_LOCATION_B', 20);
43 end DELETE_LOCATION_B;
44 end HR_LOCATION_BK3;