1 Package Body pqh_plg_upd as
2 /* $Header: pqplgrhi.pkb 115.5 2002/12/12 23:13:49 sgoyal ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' pqh_plg_upd.'; -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |------------------------------< update_dml >------------------------------|
12 -- ----------------------------------------------------------------------------
13 -- {Start Of Comments}
14 --
15 -- Description:
16 -- This procedure controls the actual dml update logic. The processing of
17 -- this procedure is:
18 -- 1) Increment the object_version_number by 1 if the object_version_number
19 -- is defined as an attribute for this entity.
20 -- perform dml).
21 -- 3) To update the specified row in the schema using the primary key in
22 -- the predicates.
23 -- 4) To trap any constraint violations that may have occurred.
24 -- 5) To raise any other errors.
25 --
26 -- Prerequisites:
27 -- This is an internal private procedure which must be called from the upd
28 -- procedure.
29 --
30 -- In Parameters:
31 -- A Pl/Sql record structre.
32 --
33 -- Post Success:
34 -- The specified row will be updated in the schema.
35 --
36 -- Post Failure:
37 -- On the update dml failure it is important to note that we always reset the
38 -- If a check, unique or parent integrity constraint violation is raised the
39 -- constraint_error procedure will be called.
40 -- If any other error is reported, the error will be raised after the
41 --
42 -- Developer Implementation Notes:
43 -- The update 'set' attribute list should be modified if any of your
44 -- attributes are not updateable.
45 --
46 -- Access Status:
47 -- Internal Row Handler Use Only.
48 --
49 -- {End Of Comments}
50 -- ----------------------------------------------------------------------------
51 Procedure update_dml(p_rec in out nocopy pqh_plg_shd.g_rec_type) is
52 --
53 l_proc varchar2(72) := g_package||'update_dml';
54 --
55 Begin
56 hr_utility.set_location('Entering:'||l_proc, 5);
57 --
58 -- Increment the object version
59 --
60 p_rec.object_version_number := p_rec.object_version_number + 1;
61 --
62 --
63 -- Update the pqh_process_log Row
64 --
65 update pqh_process_log
66 set
67 process_log_id = p_rec.process_log_id,
68 module_cd = p_rec.module_cd,
69 txn_id = p_rec.txn_id,
70 master_process_log_id = p_rec.master_process_log_id,
71 message_text = p_rec.message_text,
72 message_type_cd = p_rec.message_type_cd,
73 batch_status = p_rec.batch_status,
74 batch_start_date = p_rec.batch_start_date,
75 batch_end_date = p_rec.batch_end_date,
76 txn_table_route_id = p_rec.txn_table_route_id,
77 log_context = p_rec.log_context,
78 information_category = p_rec.information_category,
79 information1 = p_rec.information1,
80 information2 = p_rec.information2,
81 information3 = p_rec.information3,
82 information4 = p_rec.information4,
83 information5 = p_rec.information5,
84 information6 = p_rec.information6,
85 information7 = p_rec.information7,
86 information8 = p_rec.information8,
87 information9 = p_rec.information9,
88 information10 = p_rec.information10,
89 information11 = p_rec.information11,
90 information12 = p_rec.information12,
91 information13 = p_rec.information13,
92 information14 = p_rec.information14,
93 information15 = p_rec.information15,
94 information16 = p_rec.information16,
95 information17 = p_rec.information17,
96 information18 = p_rec.information18,
97 information19 = p_rec.information19,
98 information20 = p_rec.information20,
99 information21 = p_rec.information21,
100 information22 = p_rec.information22,
101 information23 = p_rec.information23,
102 information24 = p_rec.information24,
103 information25 = p_rec.information25,
104 information26 = p_rec.information26,
105 information27 = p_rec.information27,
106 information28 = p_rec.information28,
107 information29 = p_rec.information29,
108 information30 = p_rec.information30,
109 object_version_number = p_rec.object_version_number
110 where process_log_id = p_rec.process_log_id;
111 --
112 --
113 hr_utility.set_location(' Leaving:'||l_proc, 10);
114 --
115 Exception
116 When hr_api.check_integrity_violated Then
117 -- A check constraint has been violated
118 pqh_plg_shd.constraint_error
119 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
120 When hr_api.parent_integrity_violated Then
121 -- Parent integrity has been violated
122 pqh_plg_shd.constraint_error
123 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
124 When hr_api.unique_integrity_violated Then
125 -- Unique integrity has been violated
126 pqh_plg_shd.constraint_error
127 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
128 When Others Then
129 Raise;
130 End update_dml;
131 --
132 -- ----------------------------------------------------------------------------
133 -- |------------------------------< pre_update >------------------------------|
134 -- ----------------------------------------------------------------------------
135 -- {Start Of Comments}
136 --
137 -- Description:
138 -- This private procedure contains any processing which is required before
139 -- the update dml.
140 --
141 -- Prerequisites:
142 -- This is an internal procedure which is called from the upd procedure.
143 --
144 -- In Parameters:
145 -- A Pl/Sql record structre.
146 --
147 -- Post Success:
148 -- Processing continues.
149 --
150 -- Post Failure:
151 -- If an error has occurred, an error message and exception will be raised
152 -- but not handled.
153 --
154 -- Developer Implementation Notes:
155 -- Any pre-processing required before the update dml is issued should be
156 -- coded within this procedure. It is important to note that any 3rd party
157 -- maintenance should be reviewed before placing in this procedure.
158 --
159 -- Access Status:
160 -- Internal Row Handler Use Only.
161 --
162 -- {End Of Comments}
163 -- ----------------------------------------------------------------------------
164 Procedure pre_update(p_rec in pqh_plg_shd.g_rec_type) is
165 --
166 l_proc varchar2(72) := g_package||'pre_update';
167 --
168 Begin
169 hr_utility.set_location('Entering:'||l_proc, 5);
170 --
171 hr_utility.set_location(' Leaving:'||l_proc, 10);
172 End pre_update;
173 --
174 -- ----------------------------------------------------------------------------
175 -- |-----------------------------< post_update >------------------------------|
176 -- ----------------------------------------------------------------------------
177 -- {Start Of Comments}
178 --
179 -- Description:
180 -- This private procedure contains any processing which is required after the
181 -- update dml.
182 --
183 -- Prerequisites:
184 -- This is an internal procedure which is called from the upd procedure.
185 --
186 -- In Parameters:
187 -- A Pl/Sql record structre.
188 --
189 -- Post Success:
190 -- Processing continues.
191 --
192 -- Post Failure:
193 -- If an error has occurred, an error message and exception will be raised
194 -- but not handled.
195 --
196 -- Developer Implementation Notes:
197 -- Any post-processing required after the update dml is issued should be
198 -- coded within this procedure. It is important to note that any 3rd party
199 -- maintenance should be reviewed before placing in this procedure.
200 --
201 -- Access Status:
202 -- Internal Row Handler Use Only.
203 --
204 -- {End Of Comments}
205 -- ----------------------------------------------------------------------------
206 Procedure post_update(
207 p_effective_date in date,p_rec in pqh_plg_shd.g_rec_type) is
208 --
209 l_proc varchar2(72) := g_package||'post_update';
210 --
211 Begin
212 hr_utility.set_location('Entering:'||l_proc, 5);
213 --
214 --
215 -- Start of API User Hook for post_update.
216 --
217 begin
218 --
219 pqh_plg_rku.after_update
220 (
221 p_process_log_id =>p_rec.process_log_id
222 ,p_module_cd =>p_rec.module_cd
223 ,p_txn_id =>p_rec.txn_id
224 ,p_master_process_log_id =>p_rec.master_process_log_id
225 ,p_message_text =>p_rec.message_text
226 ,p_message_type_cd =>p_rec.message_type_cd
227 ,p_batch_status =>p_rec.batch_status
228 ,p_batch_start_date =>p_rec.batch_start_date
229 ,p_batch_end_date =>p_rec.batch_end_date
230 ,p_txn_table_route_id =>p_rec.txn_table_route_id
231 ,p_log_context =>p_rec.log_context
232 ,p_information_category =>p_rec.information_category
233 ,p_information1 =>p_rec.information1
234 ,p_information2 =>p_rec.information2
235 ,p_information3 =>p_rec.information3
236 ,p_information4 =>p_rec.information4
237 ,p_information5 =>p_rec.information5
238 ,p_information6 =>p_rec.information6
239 ,p_information7 =>p_rec.information7
240 ,p_information8 =>p_rec.information8
241 ,p_information9 =>p_rec.information9
242 ,p_information10 =>p_rec.information10
243 ,p_information11 =>p_rec.information11
244 ,p_information12 =>p_rec.information12
245 ,p_information13 =>p_rec.information13
246 ,p_information14 =>p_rec.information14
247 ,p_information15 =>p_rec.information15
248 ,p_information16 =>p_rec.information16
249 ,p_information17 =>p_rec.information17
250 ,p_information18 =>p_rec.information18
251 ,p_information19 =>p_rec.information19
252 ,p_information20 =>p_rec.information20
253 ,p_information21 =>p_rec.information21
254 ,p_information22 =>p_rec.information22
255 ,p_information23 =>p_rec.information23
256 ,p_information24 =>p_rec.information24
257 ,p_information25 =>p_rec.information25
258 ,p_information26 =>p_rec.information26
259 ,p_information27 =>p_rec.information27
260 ,p_information28 =>p_rec.information28
261 ,p_information29 =>p_rec.information29
262 ,p_information30 =>p_rec.information30
263 ,p_object_version_number =>p_rec.object_version_number
264 ,p_effective_date =>p_effective_date
265 ,p_module_cd_o =>pqh_plg_shd.g_old_rec.module_cd
266 ,p_txn_id_o =>pqh_plg_shd.g_old_rec.txn_id
267 ,p_master_process_log_id_o =>pqh_plg_shd.g_old_rec.master_process_log_id
268 ,p_message_text_o =>pqh_plg_shd.g_old_rec.message_text
269 ,p_message_type_cd_o =>pqh_plg_shd.g_old_rec.message_type_cd
270 ,p_batch_status_o =>pqh_plg_shd.g_old_rec.batch_status
271 ,p_batch_start_date_o =>pqh_plg_shd.g_old_rec.batch_start_date
272 ,p_batch_end_date_o =>pqh_plg_shd.g_old_rec.batch_end_date
273 ,p_txn_table_route_id_o =>pqh_plg_shd.g_old_rec.txn_table_route_id
274 ,p_log_context_o =>pqh_plg_shd.g_old_rec.log_context
275 ,p_information_category_o =>pqh_plg_shd.g_old_rec.information_category
276 ,p_information1_o =>pqh_plg_shd.g_old_rec.information1
277 ,p_information2_o =>pqh_plg_shd.g_old_rec.information2
278 ,p_information3_o =>pqh_plg_shd.g_old_rec.information3
279 ,p_information4_o =>pqh_plg_shd.g_old_rec.information4
280 ,p_information5_o =>pqh_plg_shd.g_old_rec.information5
281 ,p_information6_o =>pqh_plg_shd.g_old_rec.information6
282 ,p_information7_o =>pqh_plg_shd.g_old_rec.information7
283 ,p_information8_o =>pqh_plg_shd.g_old_rec.information8
284 ,p_information9_o =>pqh_plg_shd.g_old_rec.information9
285 ,p_information10_o =>pqh_plg_shd.g_old_rec.information10
286 ,p_information11_o =>pqh_plg_shd.g_old_rec.information11
287 ,p_information12_o =>pqh_plg_shd.g_old_rec.information12
288 ,p_information13_o =>pqh_plg_shd.g_old_rec.information13
289 ,p_information14_o =>pqh_plg_shd.g_old_rec.information14
290 ,p_information15_o =>pqh_plg_shd.g_old_rec.information15
291 ,p_information16_o =>pqh_plg_shd.g_old_rec.information16
292 ,p_information17_o =>pqh_plg_shd.g_old_rec.information17
293 ,p_information18_o =>pqh_plg_shd.g_old_rec.information18
294 ,p_information19_o =>pqh_plg_shd.g_old_rec.information19
295 ,p_information20_o =>pqh_plg_shd.g_old_rec.information20
296 ,p_information21_o =>pqh_plg_shd.g_old_rec.information21
297 ,p_information22_o =>pqh_plg_shd.g_old_rec.information22
298 ,p_information23_o =>pqh_plg_shd.g_old_rec.information23
299 ,p_information24_o =>pqh_plg_shd.g_old_rec.information24
300 ,p_information25_o =>pqh_plg_shd.g_old_rec.information25
301 ,p_information26_o =>pqh_plg_shd.g_old_rec.information26
302 ,p_information27_o =>pqh_plg_shd.g_old_rec.information27
303 ,p_information28_o =>pqh_plg_shd.g_old_rec.information28
304 ,p_information29_o =>pqh_plg_shd.g_old_rec.information29
305 ,p_information30_o =>pqh_plg_shd.g_old_rec.information30
306 ,p_object_version_number_o =>pqh_plg_shd.g_old_rec.object_version_number
307 );
308 --
309 exception
310 --
311 when hr_api.cannot_find_prog_unit then
312 --
313 hr_api.cannot_find_prog_unit_error
314 (p_module_name => 'pqh_process_log'
315 ,p_hook_type => 'AU');
316 --
317 end;
318 --
319 -- End of API User Hook for post_update.
320 --
321 --
322 hr_utility.set_location(' Leaving:'||l_proc, 10);
323 End post_update;
324 --
325 -- ----------------------------------------------------------------------------
326 -- |-----------------------------< convert_defs >-----------------------------|
327 -- ----------------------------------------------------------------------------
328 -- {Start Of Comments}
329 --
330 -- Description:
331 -- The Convert_Defs procedure has one very important function:
332 -- It must return the record structure for the row with all system defaulted
333 -- values converted into its corresponding parameter value for update. When
334 -- we attempt to update a row through the Upd process , certain
335 -- parameters can be defaulted which enables flexibility in the calling of
336 -- the upd process (e.g. only attributes which need to be updated need to be
337 -- specified). For the upd process to determine which attributes
338 -- have NOT been specified we need to check if the parameter has a reserved
339 -- system default value. Therefore, for all parameters which have a
340 -- corresponding reserved system default mechanism specified we need to
341 -- check if a system default is being used. If a system default is being
342 -- used then we convert the defaulted value into its corresponding attribute
343 -- value held in the g_old_rec data structure.
344 --
345 -- Prerequisites:
346 -- This private function can only be called from the upd process.
347 --
348 -- In Parameters:
349 -- A Pl/Sql record structre.
350 --
351 -- Post Success:
352 -- The record structure will be returned with all system defaulted parameter
353 -- values converted into its current row attribute value.
354 --
355 -- Post Failure:
356 -- No direct error handling is required within this function. Any possible
357 -- errors within this procedure will be a PL/SQL value error due to conversion
358 -- of datatypes or data lengths.
359 --
360 -- Developer Implementation Notes:
361 -- None.
362 --
363 -- Access Status:
364 -- Internal Row Handler Use Only.
365 --
366 -- {End Of Comments}
367 -- ----------------------------------------------------------------------------
368 Procedure convert_defs(p_rec in out nocopy pqh_plg_shd.g_rec_type) is
369 --
370 l_proc varchar2(72) := g_package||'convert_defs';
371 --
372 Begin
373 --
374 hr_utility.set_location('Entering:'||l_proc, 5);
375 --
376 -- We must now examine each argument value in the
377 -- p_rec plsql record structure
378 -- to see if a system default is being used. If a system default
379 -- is being used then we must set to the 'current' argument value.
380 --
381 If (p_rec.module_cd = hr_api.g_varchar2) then
382 p_rec.module_cd :=
383 pqh_plg_shd.g_old_rec.module_cd;
384 End If;
385 If (p_rec.txn_id = hr_api.g_number) then
386 p_rec.txn_id :=
387 pqh_plg_shd.g_old_rec.txn_id;
388 End If;
389 If (p_rec.master_process_log_id = hr_api.g_number) then
390 p_rec.master_process_log_id :=
391 pqh_plg_shd.g_old_rec.master_process_log_id;
392 End If;
393 If (p_rec.message_text = hr_api.g_varchar2) then
394 p_rec.message_text :=
395 pqh_plg_shd.g_old_rec.message_text;
396 End If;
397 If (p_rec.message_type_cd = hr_api.g_varchar2) then
398 p_rec.message_type_cd :=
399 pqh_plg_shd.g_old_rec.message_type_cd;
400 End If;
401 If (p_rec.batch_status = hr_api.g_varchar2) then
402 p_rec.batch_status :=
403 pqh_plg_shd.g_old_rec.batch_status;
404 End If;
405 If (p_rec.batch_start_date = hr_api.g_date) then
406 p_rec.batch_start_date :=
407 pqh_plg_shd.g_old_rec.batch_start_date;
408 End If;
409 If (p_rec.batch_end_date = hr_api.g_date) then
410 p_rec.batch_end_date :=
411 pqh_plg_shd.g_old_rec.batch_end_date;
412 End If;
413 If (p_rec.txn_table_route_id = hr_api.g_number) then
414 p_rec.txn_table_route_id :=
415 pqh_plg_shd.g_old_rec.txn_table_route_id;
416 End If;
417 If (p_rec.log_context = hr_api.g_varchar2) then
418 p_rec.log_context :=
419 pqh_plg_shd.g_old_rec.log_context;
420 End If;
421 If (p_rec.information_category = hr_api.g_varchar2) then
422 p_rec.information_category :=
423 pqh_plg_shd.g_old_rec.information_category;
424 End If;
425 If (p_rec.information1 = hr_api.g_varchar2) then
426 p_rec.information1 :=
427 pqh_plg_shd.g_old_rec.information1;
428 End If;
429 If (p_rec.information2 = hr_api.g_varchar2) then
430 p_rec.information2 :=
431 pqh_plg_shd.g_old_rec.information2;
432 End If;
433 If (p_rec.information3 = hr_api.g_varchar2) then
434 p_rec.information3 :=
435 pqh_plg_shd.g_old_rec.information3;
436 End If;
437 If (p_rec.information4 = hr_api.g_varchar2) then
438 p_rec.information4 :=
439 pqh_plg_shd.g_old_rec.information4;
440 End If;
441 If (p_rec.information5 = hr_api.g_varchar2) then
442 p_rec.information5 :=
443 pqh_plg_shd.g_old_rec.information5;
444 End If;
445 If (p_rec.information6 = hr_api.g_varchar2) then
446 p_rec.information6 :=
447 pqh_plg_shd.g_old_rec.information6;
448 End If;
449 If (p_rec.information7 = hr_api.g_varchar2) then
450 p_rec.information7 :=
451 pqh_plg_shd.g_old_rec.information7;
452 End If;
453 If (p_rec.information8 = hr_api.g_varchar2) then
454 p_rec.information8 :=
455 pqh_plg_shd.g_old_rec.information8;
456 End If;
457 If (p_rec.information9 = hr_api.g_varchar2) then
458 p_rec.information9 :=
459 pqh_plg_shd.g_old_rec.information9;
460 End If;
461 If (p_rec.information10 = hr_api.g_varchar2) then
462 p_rec.information10 :=
463 pqh_plg_shd.g_old_rec.information10;
464 End If;
465 If (p_rec.information11 = hr_api.g_varchar2) then
466 p_rec.information11 :=
467 pqh_plg_shd.g_old_rec.information11;
468 End If;
469 If (p_rec.information12 = hr_api.g_varchar2) then
470 p_rec.information12 :=
471 pqh_plg_shd.g_old_rec.information12;
472 End If;
473 If (p_rec.information13 = hr_api.g_varchar2) then
474 p_rec.information13 :=
475 pqh_plg_shd.g_old_rec.information13;
476 End If;
477 If (p_rec.information14 = hr_api.g_varchar2) then
478 p_rec.information14 :=
479 pqh_plg_shd.g_old_rec.information14;
480 End If;
481 If (p_rec.information15 = hr_api.g_varchar2) then
482 p_rec.information15 :=
483 pqh_plg_shd.g_old_rec.information15;
484 End If;
485 If (p_rec.information16 = hr_api.g_varchar2) then
486 p_rec.information16 :=
487 pqh_plg_shd.g_old_rec.information16;
488 End If;
489 If (p_rec.information17 = hr_api.g_varchar2) then
490 p_rec.information17 :=
491 pqh_plg_shd.g_old_rec.information17;
492 End If;
493 If (p_rec.information18 = hr_api.g_varchar2) then
494 p_rec.information18 :=
495 pqh_plg_shd.g_old_rec.information18;
496 End If;
497 If (p_rec.information19 = hr_api.g_varchar2) then
498 p_rec.information19 :=
499 pqh_plg_shd.g_old_rec.information19;
500 End If;
501 If (p_rec.information20 = hr_api.g_varchar2) then
502 p_rec.information20 :=
503 pqh_plg_shd.g_old_rec.information20;
504 End If;
505 If (p_rec.information21 = hr_api.g_varchar2) then
506 p_rec.information21 :=
507 pqh_plg_shd.g_old_rec.information21;
508 End If;
509 If (p_rec.information22 = hr_api.g_varchar2) then
510 p_rec.information22 :=
511 pqh_plg_shd.g_old_rec.information22;
512 End If;
513 If (p_rec.information23 = hr_api.g_varchar2) then
514 p_rec.information23 :=
515 pqh_plg_shd.g_old_rec.information23;
516 End If;
517 If (p_rec.information24 = hr_api.g_varchar2) then
518 p_rec.information24 :=
519 pqh_plg_shd.g_old_rec.information24;
520 End If;
521 If (p_rec.information25 = hr_api.g_varchar2) then
522 p_rec.information25 :=
523 pqh_plg_shd.g_old_rec.information25;
524 End If;
525 If (p_rec.information26 = hr_api.g_varchar2) then
526 p_rec.information26 :=
527 pqh_plg_shd.g_old_rec.information26;
528 End If;
529 If (p_rec.information27 = hr_api.g_varchar2) then
530 p_rec.information27 :=
531 pqh_plg_shd.g_old_rec.information27;
532 End If;
533 If (p_rec.information28 = hr_api.g_varchar2) then
534 p_rec.information28 :=
535 pqh_plg_shd.g_old_rec.information28;
536 End If;
537 If (p_rec.information29 = hr_api.g_varchar2) then
538 p_rec.information29 :=
539 pqh_plg_shd.g_old_rec.information29;
540 End If;
541 If (p_rec.information30 = hr_api.g_varchar2) then
542 p_rec.information30 :=
543 pqh_plg_shd.g_old_rec.information30;
544 End If;
545
546 --
547 hr_utility.set_location(' Leaving:'||l_proc, 10);
548 --
549 End convert_defs;
550 --
551 -- ----------------------------------------------------------------------------
552 -- |---------------------------------< upd >----------------------------------|
553 -- ----------------------------------------------------------------------------
554 Procedure upd
555 (
556 p_effective_date in date,
557 p_rec in out nocopy pqh_plg_shd.g_rec_type
558 ) is
559 --
560 l_proc varchar2(72) := g_package||'upd';
561 --
562 Begin
563 hr_utility.set_location('Entering:'||l_proc, 5);
564 --
565 -- We must lock the row which we need to update.
566 --
567 pqh_plg_shd.lck
568 (
569 p_rec.process_log_id,
570 p_rec.object_version_number
571 );
572 --
573 -- 1. During an update system defaults are used to determine if
574 -- arguments have been defaulted or not. We must therefore
575 -- derive the full record structure values to be updated.
576 --
577 -- 2. Call the supporting update validate operations.
578 --
579 convert_defs(p_rec);
580 pqh_plg_bus.update_validate(p_rec
581 ,p_effective_date);
582 --
583 -- Call the supporting pre-update operation
584 --
585 pre_update(p_rec);
586 --
587 -- Update the row.
588 --
589 update_dml(p_rec);
590 --
591 -- Call the supporting post-update operation
592 --
593 post_update(
594 p_effective_date,p_rec);
595 End upd;
596 --
597 -- ----------------------------------------------------------------------------
598 -- |---------------------------------< upd >----------------------------------|
599 -- ----------------------------------------------------------------------------
600 Procedure upd
601 (
602 p_effective_date in date,
603 p_process_log_id in number,
604 p_module_cd in varchar2 default hr_api.g_varchar2,
605 p_txn_id in number default hr_api.g_number,
606 p_master_process_log_id in number default hr_api.g_number,
607 p_message_text in varchar2 default hr_api.g_varchar2,
608 p_message_type_cd in varchar2 default hr_api.g_varchar2,
609 p_batch_status in varchar2 default hr_api.g_varchar2,
610 p_batch_start_date in date default hr_api.g_date,
611 p_batch_end_date in date default hr_api.g_date,
612 p_txn_table_route_id in number default hr_api.g_number,
613 p_log_context in varchar2 default hr_api.g_varchar2,
614 p_information_category in varchar2 default hr_api.g_varchar2,
615 p_information1 in varchar2 default hr_api.g_varchar2,
616 p_information2 in varchar2 default hr_api.g_varchar2,
617 p_information3 in varchar2 default hr_api.g_varchar2,
618 p_information4 in varchar2 default hr_api.g_varchar2,
619 p_information5 in varchar2 default hr_api.g_varchar2,
620 p_information6 in varchar2 default hr_api.g_varchar2,
621 p_information7 in varchar2 default hr_api.g_varchar2,
622 p_information8 in varchar2 default hr_api.g_varchar2,
623 p_information9 in varchar2 default hr_api.g_varchar2,
624 p_information10 in varchar2 default hr_api.g_varchar2,
625 p_information11 in varchar2 default hr_api.g_varchar2,
626 p_information12 in varchar2 default hr_api.g_varchar2,
627 p_information13 in varchar2 default hr_api.g_varchar2,
628 p_information14 in varchar2 default hr_api.g_varchar2,
629 p_information15 in varchar2 default hr_api.g_varchar2,
630 p_information16 in varchar2 default hr_api.g_varchar2,
631 p_information17 in varchar2 default hr_api.g_varchar2,
632 p_information18 in varchar2 default hr_api.g_varchar2,
633 p_information19 in varchar2 default hr_api.g_varchar2,
634 p_information20 in varchar2 default hr_api.g_varchar2,
635 p_information21 in varchar2 default hr_api.g_varchar2,
636 p_information22 in varchar2 default hr_api.g_varchar2,
637 p_information23 in varchar2 default hr_api.g_varchar2,
638 p_information24 in varchar2 default hr_api.g_varchar2,
639 p_information25 in varchar2 default hr_api.g_varchar2,
640 p_information26 in varchar2 default hr_api.g_varchar2,
641 p_information27 in varchar2 default hr_api.g_varchar2,
642 p_information28 in varchar2 default hr_api.g_varchar2,
643 p_information29 in varchar2 default hr_api.g_varchar2,
644 p_information30 in varchar2 default hr_api.g_varchar2,
645 p_object_version_number in out nocopy number
646 ) is
647 --
648 l_rec pqh_plg_shd.g_rec_type;
649 l_proc varchar2(72) := g_package||'upd';
650 --
651 Begin
652 hr_utility.set_location('Entering:'||l_proc, 5);
653 --
654 -- Call conversion function to turn arguments into the
655 -- l_rec structure.
656 --
657 l_rec :=
658 pqh_plg_shd.convert_args
659 (
660 p_process_log_id,
661 p_module_cd,
662 p_txn_id,
663 p_master_process_log_id,
664 p_message_text,
665 p_message_type_cd,
666 p_batch_status,
667 p_batch_start_date,
668 p_batch_end_date,
669 p_txn_table_route_id,
670 p_log_context,
671 p_information_category,
672 p_information1,
673 p_information2,
674 p_information3,
675 p_information4,
676 p_information5,
677 p_information6,
678 p_information7,
679 p_information8,
680 p_information9,
681 p_information10,
682 p_information11,
683 p_information12,
684 p_information13,
685 p_information14,
686 p_information15,
687 p_information16,
688 p_information17,
689 p_information18,
690 p_information19,
691 p_information20,
692 p_information21,
693 p_information22,
694 p_information23,
695 p_information24,
696 p_information25,
697 p_information26,
698 p_information27,
699 p_information28,
700 p_information29,
701 p_information30,
702 p_object_version_number
703 );
704 --
705 -- Having converted the arguments into the
706 -- plsql record structure we call the corresponding record
707 -- business process.
708 --
709 upd(
710 p_effective_date,l_rec);
711 p_object_version_number := l_rec.object_version_number;
712 --
713 hr_utility.set_location(' Leaving:'||l_proc, 10);
714 End upd;
715 --
716 end pqh_plg_upd;