1 Package per_ose_del AUTHID CURRENT_USER as
2 /* $Header: peoserhi.pkh 120.0.12000000.1 2007/01/22 00:38:58 appldev ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< del >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure is the record interface for the delete process
11 -- for the specified entity. The role of this process is to delete the
12 -- row from the HR schema. This process is the main backbone of the del
13 -- business process. The processing of this procedure is as follows:
14 -- 1) The controlling validation process delete_validate is then executed
15 -- which will execute all private and public validation business rule
16 -- processes.
17 -- 2) The pre_delete process is then executed which enables any
18 -- logic to be processed before the delete dml process is executed.
19 -- 3) The delete_dml process will physical perform the delete dml for the
20 -- specified row.
21 -- 4) The post_delete process is then executed which enables any
22 -- logic to be processed after the delete dml process.
23 --
24 -- Prerequisites:
25 -- The main parameters to the business process have to be in the record
26 -- format.
27 --
28 -- In Parameters:
29 -- The parameter p_exists_in_hierarchy has been removed (bug fix 3205553)
30 --
31 -- Post Success:
32 -- The specified row will be fully validated and deleted for the specified
33 -- entity without being committed.
34 --
35 -- Post Failure:
36 -- If an error has occurred, an error message will be raised.
37 --
38 -- Developer Implementation Notes:
39 -- None.
40 --
41 -- Access Status:
42 -- Internal Development Use Only.
43 --
44 -- {End Of Comments}
45 -- ----------------------------------------------------------------------------
46 Procedure del
47 (p_rec in per_ose_shd.g_rec_type
48 ,p_hr_installed in VARCHAR2
49 ,p_pa_installed in VARCHAR2
50 ,p_chk_children_exist in VARCHAR2
51 --,p_exists_in_hierarchy in out nocopy VARCHAR2 --bug 3205553
52 );
53 --
54 -- ----------------------------------------------------------------------------
55 -- |---------------------------------< del >----------------------------------|
56 -- ----------------------------------------------------------------------------
57 -- {Start Of Comments}
58 --
59 -- Description:
60 -- This procedure is the attribute interface for the delete
61 -- process for the specified entity and is the outermost layer. The role
62 -- of this process is to validate and delete the specified row from the
63 -- HR schema. The processing of this procedure is as follows:
64 -- 1) The attributes are converted into a local record structure by
65 -- explicitly coding the attribute parameters into the g_rec_type
66 -- datatype.
67 -- 2) After the conversion has taken place, the corresponding record del
68 -- interface process is executed.
69 --
70 -- Prerequisites:
71 --
72 -- In Parameters:
73 -- The parameter p_exists_in_hierarchy has been removed (bug fix 3205553)
74 --
75 -- Post Success:
76 -- The specified row will be fully validated and deleted for the specified
77 -- entity without being committed.
78 --
79 -- Post Failure:
80 -- If an error has occurred, an error message will be raised.
81 --
82 -- Developer Implementation Notes:
83 -- The attrbute in parameters should be modified as to the business process
84 -- requirements.
85 --
86 -- Access Status:
87 -- Internal Development Use Only.
88 --
89 -- {End Of Comments}
90 -- ----------------------------------------------------------------------------
91 Procedure del
92 (p_org_structure_element_id in number
93 ,p_object_version_number in number
94 ,p_hr_installed in VARCHAR2
95 ,p_pa_installed in VARCHAR2
96 ,p_chk_children_exist in VARCHAR2
97 --,p_exists_in_hierarchy in out nocopy VARCHAR2 --bug 3205553
98 );
99 --
100 Procedure chk_org_in_hierarchy
101 (p_org_structure_version_id
102 in per_org_structure_elements.org_structure_version_id%TYPE
103 ,p_organization_id
104 in per_org_structure_elements.organization_id_child%TYPE
105 ,p_exists_in_hierarchy in out nocopy VARCHAR2
106 );
107
108 end per_ose_del;