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