1 Package pay_etp_del as
2 /* $Header: pyetprhi.pkh 120.2.12010000.2 2008/08/06 07:14:25 ubhat ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |------------------------------< delete_dml >------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure calls the dt_delete_dml control logic which handles
11 -- the actual datetrack dml.
12 --
13 -- Prerequisites:
14 -- This is an internal private procedure which must be called from the del
15 -- procedure.
16 --
17 -- In Parameters:
18 -- A Pl/Sql record structure.
19 --
20 -- Post Success:
21 -- Processing contines.
22 --
23 -- Post Failure:
24 -- No specific error handling is required within this procedure.
25 --
26 -- Developer Implementation Notes:
27 -- None.
28 --
29 -- Access Status:
30 -- Internal Row Handler Use Only.
31 --
32 -- {End Of Comments}
33 -- ----------------------------------------------------------------------------
34 Procedure delete_dml
35 (p_rec in out nocopy pay_etp_shd.g_rec_type
36 ,p_effective_date in date
37 ,p_datetrack_mode in varchar2
38 ,p_validation_start_date in date
39 ,p_validation_end_date in date
40 );
41 --
42 -- ----------------------------------------------------------------------------
43 -- |---------------------------------< del >----------------------------------|
44 -- ----------------------------------------------------------------------------
45 -- {Start Of Comments}
46 --
47 -- Description:
48 -- This procedure is the record interface for the datetrack delete
49 -- process for the specified entity. The role of this
50 -- process is to delete the dateracked row from the HR schema.
51 -- This process is the main backbone of the del business process. The
52 -- processing of this procedure is as follows:
53 -- 1) Ensure that the datetrack delete mode is valid.
54 -- 2) The controlling validation process delete_validate is then executed
55 -- which will execute all private and public validation business rule
56 -- processes.
57 -- 3) The pre_delete process is then executed which enables any
58 -- logic to be processed before the delete dml process is executed.
59 -- 4) The delete_dml process will physical perform the delete dml for the
60 -- specified row.
61 -- 5) The post_delete process is then executed which enables any
62 -- logic to be processed after the delete dml process.
63 --
64 -- Prerequisites:
65 -- The main parameters to the business process have to be in the record
66 -- format.
67 --
68 -- In Parameters:
69 -- p_effective_date
70 -- Specifies the date of the datetrack update operation.
71 -- p_datetrack_mode
72 -- Determines the datetrack update mode.
73 --
74 -- Post Success:
75 -- The specified row will be fully validated and deleted for the specified
76 -- entity without being committed.
77 --
78 -- Post Failure:
79 -- If an error has occurred, an error message will be raised.
80 --
81 -- Developer Implementation Notes:
82 -- None.
83 --
84 -- Access Status:
85 -- Internal Development Use Only.
86 --
87 -- {End Of Comments}
88 -- ----------------------------------------------------------------------------
89 Procedure del
90 (p_effective_date in date
91 ,p_datetrack_mode in varchar2
92 ,p_rec in out nocopy pay_etp_shd.g_rec_type
93 ,p_balance_feeds_warning out nocopy boolean
94 ,p_processing_rules_warning out nocopy boolean
95 );
96 --
97 -- ----------------------------------------------------------------------------
98 -- |-------------------------------< del >------------------------------------|
99 -- ----------------------------------------------------------------------------
100 -- {Start Of Comments}
101 --
102 -- Description:
103 -- This procedure is the attribute interface for the delete
104 -- process for the specified entity and is the outermost layer. The role
105 -- of this process is to validate and delete the specified row from the
106 -- HR schema. The processing of this procedure is as follows:
107 -- 1) The attributes are converted into a local record structure by
108 -- explicitly coding the attribute parameters into the g_rec_type
109 -- datatype.
110 -- 2) After the conversion has taken place, the corresponding record del
111 -- interface business process is executed.
112 --
113 -- Prerequisites:
114 --
115 -- In Parameters:
116 -- p_effective_date
117 -- Specifies the date of the datetrack update operation.
118 -- p_datetrack_mode
119 -- Determines the datetrack update mode.
120 --
121 -- Post Success:
122 -- The specified row will be fully validated and deleted for the specified
123 -- entity without being committed.
124 --
125 -- Post Failure:
126 -- If an error has occurred, an error message will be raised.
127 --
128 -- Developer Implementation Notes:
129 -- The attrbute in parameters should be modified as to the business process
130 -- requirements.
131 --
132 -- Access Status:
133 -- Internal Development Use Only.
134 --
135 -- {End Of Comments}
136 -- ----------------------------------------------------------------------------
137 Procedure del
138 (p_effective_date in date
139 ,p_datetrack_mode in varchar2
140 ,p_element_type_id in number
141 ,p_object_version_number in out nocopy number
142 ,p_effective_start_date out nocopy date
143 ,p_effective_end_date out nocopy date
144 ,p_balance_feeds_warning out nocopy boolean
145 ,p_processing_rules_warning out nocopy boolean
146 );
147 --
148 end pay_etp_del;