1 Package per_abs_ins AUTHID CURRENT_USER as
2 /* $Header: peabsrhi.pkh 120.6 2011/11/15 11:39:54 sidsaxen ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< ins >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure is the record interface for the insert process
11 -- for the specified entity. The role of this process is to insert a fully
12 -- validated row, into the HR schema passing back to the calling process,
13 -- any system generated values (e.g. primary and object version number
14 -- attributes). This process is the main backbone of the ins
15 -- process. The processing of this procedure is as follows:
16 -- 1) The controlling validation process insert_validate is executed
17 -- which will execute all private and public validation business rule
18 -- processes.
19 -- 2) The pre_insert business process is then executed which enables any
20 -- logic to be processed before the insert dml process is executed.
21 -- 3) The insert_dml process will physical perform the insert dml into the
22 -- specified entity.
23 -- 4) The post_insert business process is then executed which enables any
24 -- logic to be processed after the insert dml process.
25 --
26 -- Prerequisites:
27 -- The main parameters to the this process have to be in the record
28 -- format.
29 --
30 -- In Parameters:
31 --
32 -- Out Parameters:
33 -- p_dur_dys_less_warning - true, when HR_EMP_ABS_SHORT_DURATION warning
34 -- is raised.
35 -- p_dur_hrs_less_warning - true, when HR_ABS_HOUR_LESS_DURATION warning
36 -- is raised.
37 -- p_exceeds_pto_entit_warning - true, when HR_EMP_NOT_ENTITLED warning
38 -- is raised.
39 -- p_exceeds_run_total_warning - true, when HR_ABS_DET_RUNNING_ZERO warning
40 -- is raised.
41 -- p_abs_overlap_warning - true, when HR_ABS_DET_OVERLAP warning is
42 -- raised.
43 -- p_abs_day_after_warning - true, when HR_ABS_DET_ABS_DAY_AFTER warning
44 -- is raised.
45 -- p_dur_overwritten_warning true, when the absence durations have been
46 -- overwritten by the Fast Formula values.
47 --
48 -- Post Success:
49 -- A fully validated row will be inserted into the specified entity
50 -- without being committed.
51 --
52 -- Post Failure:
53 -- If an error has occurred, an error message will be raised.
54 --
55 -- Developer Implementation Notes:
56 -- None.
57 --
58 -- Access Status:
59 -- Internal Development Use Only.
60 --
61 -- {End Of Comments}
62 -- ----------------------------------------------------------------------------
63 Procedure ins
64 (p_effective_date in date
65 ,p_rec in out nocopy per_abs_shd.g_rec_type
66 ,p_dur_dys_less_warning out nocopy boolean
67 ,p_dur_hrs_less_warning out nocopy boolean
68 ,p_exceeds_pto_entit_warning out nocopy boolean
69 ,p_exceeds_run_total_warning out nocopy boolean
70 ,p_abs_overlap_warning out nocopy boolean
71 ,p_abs_day_after_warning out nocopy boolean
72 ,p_dur_overwritten_warning out nocopy boolean
73 );
74 --
75 -- ----------------------------------------------------------------------------
76 -- |---------------------------------< ins >----------------------------------|
77 -- ----------------------------------------------------------------------------
78 -- {Start Of Comments}
79 --
80 -- Description:
81 -- This procedure is the attribute interface for the insert
82 -- process for the specified entity and is the outermost layer. The role
83 -- of this process is to insert a fully validated row into the HR schema
84 -- passing back to the calling process, any system generated values
85 -- (e.g. object version number attributes).The processing of this
86 -- procedure is as follows:
87 -- 1) The attributes are converted into a local record structure by
88 -- calling the convert_args function.
89 -- 2) After the conversion has taken place, the corresponding record ins
90 -- interface process is executed.
91 -- 3) OUT parameters are then set to their corresponding record attributes.
92 --
93 -- Prerequisites:
94 --
95 -- In Parameters:
96 --
97 -- Out Parameters:
98 -- p_dur_dys_less_warning - true, when HR_EMP_ABS_SHORT_DURATION warning
99 -- is raised.
100 -- p_dur_hrs_less_warning - true, when HR_ABS_HOUR_LESS_DURATION warning
101 -- is raised.
102 -- p_exceeds_pto_entit_warning - true, when HR_EMP_NOT_ENTITLED warning
103 -- is raised.
104 -- p_exceeds_run_total_warning - true, when HR_ABS_DET_RUNNING_ZERO warning
105 -- is raised.
106 -- p_abs_overlap_warning - true, when HR_ABS_DET_OVERLAP warning is
107 -- raised.
108 -- p_abs_day_after_warning - true, when HR_ABS_DET_ABS_DAY_AFTER warning
109 -- is raised.
110 -- p_dur_overwritten_warning true, when the absence durations have been
111 -- overwritten by the Fast Formula values.
112 --
113 -- Post Success:
114 -- A fully validated row will be inserted for the specified entity
115 -- without being committed.
116 --
117 -- Post Failure:
118 -- If an error has occurred, an error message will be raised.
119 --
120 -- Developer Implementation Notes:
121 -- None.
122 --
123 -- Access Status:
124 -- Internal Development Use Only.
125 --
126 -- {End Of Comments}
127 -- ----------------------------------------------------------------------------
128 Procedure ins
129 (p_effective_date in date
130 ,p_business_group_id in number
131 ,p_absence_attendance_type_id in number
132 ,p_person_id in number
133 ,p_abs_attendance_reason_id in number default null
134 ,p_authorising_person_id in number default null
135 ,p_replacement_person_id in number default null
136 ,p_period_of_incapacity_id in number default null
137 ,p_absence_days in out nocopy number
138 ,p_absence_hours in out nocopy number
139 --start changes for bug 5987410
140 --,p_comments in varchar2 default null
141 ,p_comments in clob default null -- Bug#13362792
142 --end changes for bug 5987410
143 ,p_date_end in date default null
144 ,p_date_notification in date default null
145 ,p_date_projected_end in date default null
146 ,p_date_projected_start in date default null
147 ,p_date_start in date default null
148 ,p_occurrence out nocopy number
149 ,p_ssp1_issued in varchar2 default null
150 ,p_time_end in varchar2 default null
151 ,p_time_projected_end in varchar2 default null
152 ,p_time_projected_start in varchar2 default null
153 ,p_time_start in varchar2 default null
154 ,p_request_id in number default null
155 ,p_program_application_id in number default null
156 ,p_program_id in number default null
157 ,p_program_update_date in date default null
158 ,p_attribute_category in varchar2 default null
159 ,p_attribute1 in varchar2 default null
160 ,p_attribute2 in varchar2 default null
161 ,p_attribute3 in varchar2 default null
162 ,p_attribute4 in varchar2 default null
163 ,p_attribute5 in varchar2 default null
164 ,p_attribute6 in varchar2 default null
165 ,p_attribute7 in varchar2 default null
166 ,p_attribute8 in varchar2 default null
167 ,p_attribute9 in varchar2 default null
168 ,p_attribute10 in varchar2 default null
169 ,p_attribute11 in varchar2 default null
170 ,p_attribute12 in varchar2 default null
171 ,p_attribute13 in varchar2 default null
172 ,p_attribute14 in varchar2 default null
173 ,p_attribute15 in varchar2 default null
174 ,p_attribute16 in varchar2 default null
175 ,p_attribute17 in varchar2 default null
176 ,p_attribute18 in varchar2 default null
177 ,p_attribute19 in varchar2 default null
178 ,p_attribute20 in varchar2 default null
179 ,p_maternity_id in number default null
180 ,p_sickness_start_date in date default null
181 ,p_sickness_end_date in date default null
182 ,p_pregnancy_related_illness in varchar2 default null
183 ,p_reason_for_notification_dela in varchar2 default null
184 ,p_accept_late_notification_fla in varchar2 default null
185 ,p_linked_absence_id in number default null
186 ,p_abs_information_category in varchar2 default null
187 ,p_abs_information1 in varchar2 default null
188 ,p_abs_information2 in varchar2 default null
189 ,p_abs_information3 in varchar2 default null
190 ,p_abs_information4 in varchar2 default null
191 ,p_abs_information5 in varchar2 default null
192 ,p_abs_information6 in varchar2 default null
193 ,p_abs_information7 in varchar2 default null
194 ,p_abs_information8 in varchar2 default null
195 ,p_abs_information9 in varchar2 default null
196 ,p_abs_information10 in varchar2 default null
197 ,p_abs_information11 in varchar2 default null
198 ,p_abs_information12 in varchar2 default null
199 ,p_abs_information13 in varchar2 default null
200 ,p_abs_information14 in varchar2 default null
201 ,p_abs_information15 in varchar2 default null
202 ,p_abs_information16 in varchar2 default null
203 ,p_abs_information17 in varchar2 default null
204 ,p_abs_information18 in varchar2 default null
205 ,p_abs_information19 in varchar2 default null
206 ,p_abs_information20 in varchar2 default null
207 ,p_abs_information21 in varchar2 default null
208 ,p_abs_information22 in varchar2 default null
209 ,p_abs_information23 in varchar2 default null
210 ,p_abs_information24 in varchar2 default null
211 ,p_abs_information25 in varchar2 default null
212 ,p_abs_information26 in varchar2 default null
213 ,p_abs_information27 in varchar2 default null
214 ,p_abs_information28 in varchar2 default null
215 ,p_abs_information29 in varchar2 default null
216 ,p_abs_information30 in varchar2 default null
217 ,p_batch_id in number default null
218 ,p_absence_case_id in number default null
219 ,p_absence_attendance_id out nocopy number
220 ,p_object_version_number out nocopy number
221 ,p_dur_dys_less_warning out nocopy boolean
222 ,p_dur_hrs_less_warning out nocopy boolean
223 ,p_exceeds_pto_entit_warning out nocopy boolean
224 ,p_exceeds_run_total_warning out nocopy boolean
225 ,p_abs_overlap_warning out nocopy boolean
226 ,p_abs_day_after_warning out nocopy boolean
227 ,p_dur_overwritten_warning out nocopy boolean
228 );
229
230 -- ----------------------------------------------------------------------------
231 -- |------------------------< set_base_key_value >----------------------------|
232 -- ----------------------------------------------------------------------------
233 -- {Start of Comments}
234 -- Description:
235 -- This procedure is called to register the next ID value from the database
236 -- sequence.
237 --
238 -- Prerequisites:
239 --
240 -- In Parameters:
241 -- Primary Key
242 --
243 -- Post Success:
244 --
245 -- Post Failure:
246 --
247 -- Developer Implementation Notes:
248 -- None.
249 --
250 -- Access Status:
251 -- Internal Development Use Only.
252 --
253 -- {End of Comments}
254 -- ----------------------------------------------------------------------------
258 --
255 procedure set_base_key_value
256 (p_absence_attendance_id in number);
257
259 end per_abs_ins;