1 Package ghr_prh_del as
2 /* $Header: ghprhrhi.pkh 120.1.12000000.1 2007/01/18 14:09:34 appldev noship $ */
3
4 --
5 -- ----------------------------------------------------------------------------
6 -- |---------------------------------< del >----------------------------------|
7 -- ----------------------------------------------------------------------------
8 -- {Start Of Comments}
9 --
10 -- Description:
11 -- This procedure is the record interface for the delete process
12 -- for the specified entity. The role of this process is to delete the
13 -- row from the HR schema. This process is the main backbone of the del
14 -- business process. The processing of this procedure is as follows:
15 -- 1) If the p_validate parameter has been set to true then a savepoint is
16 -- issued.
17 -- 2) The controlling validation process delete_validate is then executed
18 -- which will execute all private and public validation business rule
19 -- processes.
20 -- 3) The pre_delete process is then executed which enables any
21 -- logic to be processed before the delete dml process is executed.
22 -- 4) The delete_dml process will physical perform the delete dml for the
23 -- specified row.
24 -- 5) The post_delete process is then executed which enables any
25 -- logic to be processed after the delete dml process.
26 -- 6) If the p_validate parameter has been set to true an exception is raised
27 -- which is handled and processed by performing a rollback to the
28 -- savepoint which was issued at the beginning of the del process.
29 --
30 -- Pre Conditions:
31 -- The main parameters to the business process have to be in the record
32 -- format.
33 --
34 -- In Parameters:
35 -- p_validate
36 -- Determines if the process is to be validated. Setting this
37 -- boolean value to true will invoke the process to be validated. The
38 -- default is false. The validation is controlled by a savepoint and
39 -- rollback mechanism. The savepoint is issued at the beginning of the
40 -- process and is rollbacked at the end of the process
41 -- when all the processing has been completed. The rollback is controlled
42 -- by raising and handling the exception hr_api.validate_enabled. We use
43 -- the exception because, by raising the exception with the business
44 -- process, we can exit successfully without having any of the 'OUT'
45 -- parameters being set.
46 --
47 -- Post Success:
48 -- The specified row will be fully validated and deleted for the specified
49 -- entity without being committed. If the p_validate parameter has been set
50 -- to true then all the work will be rolled back.
51 --
52 -- Post Failure:
53 -- If an error has occurred, an error message will be supplied with the work
54 -- rolled back.
55 --
56 -- Developer Implementation Notes:
57 -- None.
58 --
59 -- Access Status:
60 -- Internal Development Use Only.
61 --
62 -- {End Of Comments}
63 -- ----------------------------------------------------------------------------
64 Procedure del
65 (
66 p_rec in ghr_prh_shd.g_rec_type,
67 p_validate in boolean default false
68 );
69 --
70 -- ----------------------------------------------------------------------------
71 -- |---------------------------------< del >----------------------------------|
72 -- ----------------------------------------------------------------------------
73 -- {Start Of Comments}
74 --
75 -- Description:
76 -- This procedure is the attribute interface for the delete
77 -- process for the specified entity and is the outermost layer. The role
78 -- of this process is to validate and delete the specified row from the
79 -- HR schema. The processing of this procedure is as follows:
80 -- 1) The attributes are converted into a local record structure by
81 -- explicitly coding the attribute parameters into the g_rec_type
82 -- datatype.
83 -- 2) After the conversion has taken place, the corresponding record del
84 -- interface process is executed.
85 --
86 -- Pre Conditions:
87 --
88 -- In Parameters:
89 -- p_validate
90 -- Determines if the process is to be validated. Setting this
91 -- Boolean value to true will invoke the process to be validated.
92 -- The default is false.
93 --
94 -- Post Success:
95 -- The specified row will be fully validated and deleted for the specified
96 -- entity without being committed (or rollbacked depending on the
97 -- p_validate status).
98 --
99 -- Post Failure:
100 -- If an error has occurred, an error message will be supplied with the work
101 -- rolled back.
102 --
103 -- Developer Implementation Notes:
104 -- The attrbute in parameters should be modified as to the business process
105 -- requirements.
106 --
107 -- Access Status:
108 -- Internal Development Use Only.
109 --
110 -- {End Of Comments}
111 -- ----------------------------------------------------------------------------
112 Procedure del
113 (
114 p_pa_routing_history_id in number,
115 p_object_version_number in number,
116 p_validate in boolean default false
117 );
118 --
119 end ghr_prh_del;