1 Package Body hr_tmp_upd as
2 /* $Header: hrtmprhi.pkb 115.6 2002/12/03 11:31:46 raranjan noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' hr_tmp_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 -- 2) To set and unset the g_api_dml status as required (as we are about to
21 -- perform dml).
22 -- 3) To update the specified row in the schema using the primary key in
23 -- the predicates.
24 -- 4) To trap any constraint violations that may have occurred.
25 -- 5) To raise any other errors.
26 --
27 -- Prerequisites:
28 -- This is an internal private procedure which must be called from the upd
29 -- procedure.
30 --
31 -- In Parameters:
32 -- A Pl/Sql record structre.
33 --
34 -- Post Success:
35 -- The specified row will be updated in the schema.
36 --
37 -- Post Failure:
38 -- On the update dml failure it is important to note that we always reset the
39 -- g_api_dml status to false.
40 -- If a check, unique or parent integrity constraint violation is raised the
41 -- constraint_error procedure will be called.
42 -- If any other error is reported, the error will be raised after the
43 -- g_api_dml status is reset.
44 --
45 -- Developer Implementation Notes:
46 -- The update 'set' attribute list should be modified if any of your
47 -- attributes are not updateable.
48 --
49 -- Access Status:
50 -- Internal Row Handler Use Only.
51 --
52 -- {End Of Comments}
53 -- ----------------------------------------------------------------------------
54 Procedure update_dml
55 (p_rec in out nocopy hr_tmp_shd.g_rec_type
56 ) is
57 --
58 l_proc varchar2(72) := g_package||'update_dml';
59 --
60 Begin
61 hr_utility.set_location('Entering:'||l_proc, 5);
62 --
63 -- Increment the object version
64 p_rec.object_version_number := p_rec.object_version_number + 1;
65 --
66 --
67 --
68 -- Update the hr_form_templates_b Row
69 --
70 update hr_form_templates_b
71 set
72 form_template_id = p_rec.form_template_id
73 ,object_version_number = p_rec.object_version_number
74 ,application_id = p_rec.application_id
75 ,form_id = p_rec.form_id
76 ,template_name = p_rec.template_name
77 ,enabled_flag = p_rec.enabled_flag
78 ,legislation_code = p_rec.legislation_code
79 ,attribute_category = p_rec.attribute_category
80 ,attribute1 = p_rec.attribute1
81 ,attribute2 = p_rec.attribute2
82 ,attribute3 = p_rec.attribute3
83 ,attribute4 = p_rec.attribute4
84 ,attribute5 = p_rec.attribute5
85 ,attribute6 = p_rec.attribute6
86 ,attribute7 = p_rec.attribute7
87 ,attribute8 = p_rec.attribute8
88 ,attribute9 = p_rec.attribute9
89 ,attribute10 = p_rec.attribute10
90 ,attribute11 = p_rec.attribute11
91 ,attribute12 = p_rec.attribute12
92 ,attribute13 = p_rec.attribute13
93 ,attribute14 = p_rec.attribute14
94 ,attribute15 = p_rec.attribute15
95 ,attribute16 = p_rec.attribute16
96 ,attribute17 = p_rec.attribute17
97 ,attribute18 = p_rec.attribute18
98 ,attribute19 = p_rec.attribute19
99 ,attribute20 = p_rec.attribute20
100 ,attribute21 = p_rec.attribute21
101 ,attribute22 = p_rec.attribute22
102 ,attribute23 = p_rec.attribute23
103 ,attribute24 = p_rec.attribute24
104 ,attribute25 = p_rec.attribute25
105 ,attribute26 = p_rec.attribute26
106 ,attribute27 = p_rec.attribute27
107 ,attribute28 = p_rec.attribute28
108 ,attribute29 = p_rec.attribute29
109 ,attribute30 = p_rec.attribute30
110 where form_template_id = p_rec.form_template_id;
111 --
112 --
113 --
114 hr_utility.set_location(' Leaving:'||l_proc, 10);
115 --
116 Exception
117 When hr_api.check_integrity_violated Then
118 -- A check constraint has been violated
119 --
120 hr_tmp_shd.constraint_error
121 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
122 When hr_api.parent_integrity_violated Then
123 -- Parent integrity has been violated
124 --
125 hr_tmp_shd.constraint_error
126 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
127 When hr_api.unique_integrity_violated Then
128 -- Unique integrity has been violated
129 --
130 hr_tmp_shd.constraint_error
131 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
132 When Others Then
133 --
134 Raise;
135 End update_dml;
136 --
137 -- ----------------------------------------------------------------------------
138 -- |------------------------------< pre_update >------------------------------|
139 -- ----------------------------------------------------------------------------
140 -- {Start Of Comments}
141 --
142 -- Description:
143 -- This private procedure contains any processing which is required before
144 -- the update dml.
145 --
146 -- Prerequisites:
147 -- This is an internal procedure which is called from the upd procedure.
148 --
149 -- In Parameters:
150 -- A Pl/Sql record structure.
151 --
152 -- Post Success:
153 -- Processing continues.
154 --
155 -- Post Failure:
156 -- If an error has occurred, an error message and exception wil be raised
157 -- but not handled.
158 --
159 -- Developer Implementation Notes:
160 -- Any pre-processing required before the update dml is issued should be
161 -- coded within this procedure. It is important to note that any 3rd party
162 -- maintenance should be reviewed before placing in this procedure.
163 --
164 -- Access Status:
165 -- Internal Row Handler Use Only.
166 --
167 -- {End Of Comments}
168 -- ----------------------------------------------------------------------------
169 Procedure pre_update
170 (p_rec in hr_tmp_shd.g_rec_type
171 ) is
172 --
173 l_proc varchar2(72) := g_package||'pre_update';
174 --
175 Begin
176 hr_utility.set_location('Entering:'||l_proc, 5);
177 --
178 hr_utility.set_location(' Leaving:'||l_proc, 10);
179 End pre_update;
180 --
181 -- ----------------------------------------------------------------------------
182 -- |-----------------------------< post_update >------------------------------|
183 -- ----------------------------------------------------------------------------
184 -- {Start Of Comments}
185 --
186 -- Description:
187 -- This private procedure contains any processing which is required after the
188 -- update dml.
189 --
190 -- Prerequisites:
191 -- This is an internal procedure which is called from the upd procedure.
192 --
193 -- In Parameters:
194 -- A Pl/Sql record structure.
195 --
196 -- Post Success:
197 -- Processing continues.
198 --
199 -- Post Failure:
200 -- If an error has occurred, an error message and exception will be raised
201 -- but not handled.
202 --
203 -- Developer Implementation Notes:
204 -- Any post-processing required after the update dml is issued should be
205 -- coded within this procedure. It is important to note that any 3rd party
206 -- maintenance should be reviewed before placing in this procedure.
207 --
208 -- Access Status:
209 -- Internal Row Handler Use Only.
210 --
211 -- {End Of Comments}
212 -- ----------------------------------------------------------------------------
213 Procedure post_update
214 (p_effective_date in date
215 ,p_rec in hr_tmp_shd.g_rec_type
216 ) is
217 --
218 l_proc varchar2(72) := g_package||'post_update';
219 --
220 Begin
221 hr_utility.set_location('Entering:'||l_proc, 5);
222 begin
223 --
224 hr_tmp_rku.after_update
225 (p_effective_date => p_effective_date
226 ,p_form_template_id
227 => p_rec.form_template_id
228 ,p_object_version_number
229 => p_rec.object_version_number
230 ,p_application_id
231 => p_rec.application_id
232 ,p_form_id
233 => p_rec.form_id
234 ,p_template_name
235 => p_rec.template_name
236 ,p_enabled_flag
237 => p_rec.enabled_flag
238 ,p_legislation_code
239 => p_rec.legislation_code
240 ,p_attribute_category
241 => p_rec.attribute_category
242 ,p_attribute1
243 => p_rec.attribute1
244 ,p_attribute2
245 => p_rec.attribute2
246 ,p_attribute3
247 => p_rec.attribute3
248 ,p_attribute4
249 => p_rec.attribute4
250 ,p_attribute5
251 => p_rec.attribute5
252 ,p_attribute6
253 => p_rec.attribute6
254 ,p_attribute7
255 => p_rec.attribute7
256 ,p_attribute8
257 => p_rec.attribute8
258 ,p_attribute9
259 => p_rec.attribute9
260 ,p_attribute10
261 => p_rec.attribute10
262 ,p_attribute11
263 => p_rec.attribute11
264 ,p_attribute12
265 => p_rec.attribute12
266 ,p_attribute13
267 => p_rec.attribute13
268 ,p_attribute14
269 => p_rec.attribute14
270 ,p_attribute15
271 => p_rec.attribute15
272 ,p_attribute16
273 => p_rec.attribute16
274 ,p_attribute17
275 => p_rec.attribute17
276 ,p_attribute18
277 => p_rec.attribute18
278 ,p_attribute19
279 => p_rec.attribute19
280 ,p_attribute20
281 => p_rec.attribute20
282 ,p_attribute21
283 => p_rec.attribute21
284 ,p_attribute22
285 => p_rec.attribute22
286 ,p_attribute23
287 => p_rec.attribute23
288 ,p_attribute24
289 => p_rec.attribute24
290 ,p_attribute25
291 => p_rec.attribute25
292 ,p_attribute26
293 => p_rec.attribute26
294 ,p_attribute27
295 => p_rec.attribute27
296 ,p_attribute28
297 => p_rec.attribute28
298 ,p_attribute29
299 => p_rec.attribute29
300 ,p_attribute30
301 => p_rec.attribute30
302 ,p_object_version_number_o
303 => hr_tmp_shd.g_old_rec.object_version_number
304 ,p_application_id_o
305 => hr_tmp_shd.g_old_rec.application_id
306 ,p_form_id_o
307 => hr_tmp_shd.g_old_rec.form_id
308 ,p_template_name_o
309 => hr_tmp_shd.g_old_rec.template_name
310 ,p_enabled_flag_o
311 => hr_tmp_shd.g_old_rec.enabled_flag
312 ,p_legislation_code_o
313 => hr_tmp_shd.g_old_rec.legislation_code
314 ,p_attribute_category_o
315 => hr_tmp_shd.g_old_rec.attribute_category
316 ,p_attribute1_o
317 => hr_tmp_shd.g_old_rec.attribute1
318 ,p_attribute2_o
319 => hr_tmp_shd.g_old_rec.attribute2
320 ,p_attribute3_o
321 => hr_tmp_shd.g_old_rec.attribute3
322 ,p_attribute4_o
323 => hr_tmp_shd.g_old_rec.attribute4
324 ,p_attribute5_o
325 => hr_tmp_shd.g_old_rec.attribute5
326 ,p_attribute6_o
327 => hr_tmp_shd.g_old_rec.attribute6
328 ,p_attribute7_o
329 => hr_tmp_shd.g_old_rec.attribute7
330 ,p_attribute8_o
331 => hr_tmp_shd.g_old_rec.attribute8
332 ,p_attribute9_o
333 => hr_tmp_shd.g_old_rec.attribute9
334 ,p_attribute10_o
335 => hr_tmp_shd.g_old_rec.attribute10
336 ,p_attribute11_o
337 => hr_tmp_shd.g_old_rec.attribute11
338 ,p_attribute12_o
339 => hr_tmp_shd.g_old_rec.attribute12
340 ,p_attribute13_o
341 => hr_tmp_shd.g_old_rec.attribute13
342 ,p_attribute14_o
343 => hr_tmp_shd.g_old_rec.attribute14
344 ,p_attribute15_o
345 => hr_tmp_shd.g_old_rec.attribute15
346 ,p_attribute16_o
347 => hr_tmp_shd.g_old_rec.attribute16
348 ,p_attribute17_o
349 => hr_tmp_shd.g_old_rec.attribute17
350 ,p_attribute18_o
351 => hr_tmp_shd.g_old_rec.attribute18
352 ,p_attribute19_o
353 => hr_tmp_shd.g_old_rec.attribute19
354 ,p_attribute20_o
355 => hr_tmp_shd.g_old_rec.attribute20
356 ,p_attribute21_o
357 => hr_tmp_shd.g_old_rec.attribute21
358 ,p_attribute22_o
359 => hr_tmp_shd.g_old_rec.attribute22
360 ,p_attribute23_o
361 => hr_tmp_shd.g_old_rec.attribute23
362 ,p_attribute24_o
363 => hr_tmp_shd.g_old_rec.attribute24
364 ,p_attribute25_o
365 => hr_tmp_shd.g_old_rec.attribute25
366 ,p_attribute26_o
367 => hr_tmp_shd.g_old_rec.attribute26
368 ,p_attribute27_o
369 => hr_tmp_shd.g_old_rec.attribute27
370 ,p_attribute28_o
371 => hr_tmp_shd.g_old_rec.attribute28
372 ,p_attribute29_o
373 => hr_tmp_shd.g_old_rec.attribute29
374 ,p_attribute30_o
375 => hr_tmp_shd.g_old_rec.attribute30
376 );
377 --
378 exception
379 --
380 when hr_api.cannot_find_prog_unit then
381 --
382 hr_api.cannot_find_prog_unit_error
383 (p_module_name => 'HR_FORM_TEMPLATES_B'
384 ,p_hook_type => 'AU');
385 --
386 end;
387 --
388 hr_utility.set_location(' Leaving:'||l_proc, 10);
389 End post_update;
390 --
391 -- ----------------------------------------------------------------------------
392 -- |-----------------------------< convert_defs >-----------------------------|
393 -- ----------------------------------------------------------------------------
394 -- {Start Of Comments}
395 --
396 -- Description:
397 -- The Convert_Defs procedure has one very important function:
398 -- It must return the record structure for the row with all system defaulted
399 -- values converted into its corresponding parameter value for update. When
400 -- we attempt to update a row through the Upd process , certain
401 -- parameters can be defaulted which enables flexibility in the calling of
402 -- the upd process (e.g. only attributes which need to be updated need to be
403 -- specified). For the upd process to determine which attributes
404 -- have NOT been specified we need to check if the parameter has a reserved
405 -- system default value. Therefore, for all parameters which have a
406 -- corresponding reserved system default mechanism specified we need to
407 -- check if a system default is being used. If a system default is being
408 -- used then we convert the defaulted value into its corresponding attribute
409 -- value held in the g_old_rec data structure.
410 --
411 -- Prerequisites:
412 -- This private function can only be called from the upd process.
413 --
414 -- In Parameters:
415 -- A Pl/Sql record structure.
416 --
417 -- Post Success:
418 -- The record structure will be returned with all system defaulted parameter
419 -- values converted into its current row attribute value.
420 --
421 -- Post Failure:
422 -- No direct error handling is required within this function. Any possible
423 -- errors within this procedure will be a PL/SQL value error due to
424 -- conversion of datatypes or data lengths.
425 --
426 -- Developer Implementation Notes:
427 -- None.
428 --
429 -- Access Status:
430 -- Internal Row Handler Use Only.
431 --
432 -- {End Of Comments}
433 -- ----------------------------------------------------------------------------
434 Procedure convert_defs
435 (p_rec in out nocopy hr_tmp_shd.g_rec_type
436 ) is
437 --
438 Begin
439 --
440 -- We must now examine each argument value in the
441 -- p_rec plsql record structure
442 -- to see if a system default is being used. If a system default
443 -- is being used then we must set to the 'current' argument value.
444 --
445 If (p_rec.application_id = hr_api.g_number) then
446 p_rec.application_id :=
447 hr_tmp_shd.g_old_rec.application_id;
448 End If;
449 If (p_rec.form_id = hr_api.g_number) then
450 p_rec.form_id :=
451 hr_tmp_shd.g_old_rec.form_id;
452 End If;
453 If (p_rec.template_name = hr_api.g_varchar2) then
454 p_rec.template_name :=
455 hr_tmp_shd.g_old_rec.template_name;
456 End If;
457 If (p_rec.enabled_flag = hr_api.g_varchar2) then
458 p_rec.enabled_flag :=
459 hr_tmp_shd.g_old_rec.enabled_flag;
460 End If;
461 If (p_rec.legislation_code = hr_api.g_varchar2) then
462 p_rec.legislation_code :=
463 hr_tmp_shd.g_old_rec.legislation_code;
464 End If;
465 If (p_rec.attribute_category = hr_api.g_varchar2) then
466 p_rec.attribute_category :=
467 hr_tmp_shd.g_old_rec.attribute_category;
468 End If;
469 If (p_rec.attribute1 = hr_api.g_varchar2) then
470 p_rec.attribute1 :=
471 hr_tmp_shd.g_old_rec.attribute1;
472 End If;
473 If (p_rec.attribute2 = hr_api.g_varchar2) then
474 p_rec.attribute2 :=
475 hr_tmp_shd.g_old_rec.attribute2;
476 End If;
477 If (p_rec.attribute3 = hr_api.g_varchar2) then
478 p_rec.attribute3 :=
479 hr_tmp_shd.g_old_rec.attribute3;
480 End If;
481 If (p_rec.attribute4 = hr_api.g_varchar2) then
482 p_rec.attribute4 :=
483 hr_tmp_shd.g_old_rec.attribute4;
484 End If;
485 If (p_rec.attribute5 = hr_api.g_varchar2) then
486 p_rec.attribute5 :=
487 hr_tmp_shd.g_old_rec.attribute5;
488 End If;
489 If (p_rec.attribute6 = hr_api.g_varchar2) then
490 p_rec.attribute6 :=
491 hr_tmp_shd.g_old_rec.attribute6;
492 End If;
493 If (p_rec.attribute7 = hr_api.g_varchar2) then
494 p_rec.attribute7 :=
495 hr_tmp_shd.g_old_rec.attribute7;
496 End If;
497 If (p_rec.attribute8 = hr_api.g_varchar2) then
498 p_rec.attribute8 :=
499 hr_tmp_shd.g_old_rec.attribute8;
500 End If;
501 If (p_rec.attribute9 = hr_api.g_varchar2) then
502 p_rec.attribute9 :=
503 hr_tmp_shd.g_old_rec.attribute9;
504 End If;
505 If (p_rec.attribute10 = hr_api.g_varchar2) then
506 p_rec.attribute10 :=
507 hr_tmp_shd.g_old_rec.attribute10;
508 End If;
509 If (p_rec.attribute11 = hr_api.g_varchar2) then
510 p_rec.attribute11 :=
511 hr_tmp_shd.g_old_rec.attribute11;
512 End If;
513 If (p_rec.attribute12 = hr_api.g_varchar2) then
514 p_rec.attribute12 :=
515 hr_tmp_shd.g_old_rec.attribute12;
516 End If;
517 If (p_rec.attribute13 = hr_api.g_varchar2) then
518 p_rec.attribute13 :=
519 hr_tmp_shd.g_old_rec.attribute13;
520 End If;
521 If (p_rec.attribute14 = hr_api.g_varchar2) then
522 p_rec.attribute14 :=
523 hr_tmp_shd.g_old_rec.attribute14;
524 End If;
525 If (p_rec.attribute15 = hr_api.g_varchar2) then
526 p_rec.attribute15 :=
527 hr_tmp_shd.g_old_rec.attribute15;
528 End If;
529 If (p_rec.attribute16 = hr_api.g_varchar2) then
530 p_rec.attribute16 :=
531 hr_tmp_shd.g_old_rec.attribute16;
532 End If;
533 If (p_rec.attribute17 = hr_api.g_varchar2) then
534 p_rec.attribute17 :=
535 hr_tmp_shd.g_old_rec.attribute17;
536 End If;
537 If (p_rec.attribute18 = hr_api.g_varchar2) then
538 p_rec.attribute18 :=
539 hr_tmp_shd.g_old_rec.attribute18;
540 End If;
541 If (p_rec.attribute19 = hr_api.g_varchar2) then
542 p_rec.attribute19 :=
543 hr_tmp_shd.g_old_rec.attribute19;
544 End If;
545 If (p_rec.attribute20 = hr_api.g_varchar2) then
546 p_rec.attribute20 :=
547 hr_tmp_shd.g_old_rec.attribute20;
548 End If;
549 If (p_rec.attribute21 = hr_api.g_varchar2) then
550 p_rec.attribute21 :=
551 hr_tmp_shd.g_old_rec.attribute21;
552 End If;
553 If (p_rec.attribute22 = hr_api.g_varchar2) then
554 p_rec.attribute22 :=
555 hr_tmp_shd.g_old_rec.attribute22;
556 End If;
557 If (p_rec.attribute23 = hr_api.g_varchar2) then
558 p_rec.attribute23 :=
559 hr_tmp_shd.g_old_rec.attribute23;
560 End If;
561 If (p_rec.attribute24 = hr_api.g_varchar2) then
562 p_rec.attribute24 :=
563 hr_tmp_shd.g_old_rec.attribute24;
564 End If;
565 If (p_rec.attribute25 = hr_api.g_varchar2) then
566 p_rec.attribute25 :=
567 hr_tmp_shd.g_old_rec.attribute25;
568 End If;
569 If (p_rec.attribute26 = hr_api.g_varchar2) then
570 p_rec.attribute26 :=
571 hr_tmp_shd.g_old_rec.attribute26;
572 End If;
573 If (p_rec.attribute27 = hr_api.g_varchar2) then
574 p_rec.attribute27 :=
575 hr_tmp_shd.g_old_rec.attribute27;
576 End If;
577 If (p_rec.attribute28 = hr_api.g_varchar2) then
578 p_rec.attribute28 :=
579 hr_tmp_shd.g_old_rec.attribute28;
580 End If;
581 If (p_rec.attribute29 = hr_api.g_varchar2) then
582 p_rec.attribute29 :=
583 hr_tmp_shd.g_old_rec.attribute29;
584 End If;
585 If (p_rec.attribute30 = hr_api.g_varchar2) then
586 p_rec.attribute30 :=
587 hr_tmp_shd.g_old_rec.attribute30;
588 End If;
589 --
590 End convert_defs;
591 --
592 -- ----------------------------------------------------------------------------
593 -- |---------------------------------< upd >----------------------------------|
594 -- ----------------------------------------------------------------------------
595 Procedure upd
596 (p_effective_date in date
597 ,p_rec in out nocopy hr_tmp_shd.g_rec_type
598 ) is
599 --
600 l_proc varchar2(72) := g_package||'upd';
601 --
602 Begin
603 hr_utility.set_location('Entering:'||l_proc, 5);
604 --
605 -- We must lock the row which we need to update.
606 --
607 hr_tmp_shd.lck
608 (p_rec.form_template_id
609 ,p_rec.object_version_number
610 );
611 --
612 -- 1. During an update system defaults are used to determine if
613 -- arguments have been defaulted or not. We must therefore
614 -- derive the full record structure values to be updated.
615 --
616 -- 2. Call the supporting update validate operations.
617 --
618 convert_defs(p_rec);
619 hr_tmp_bus.update_validate
620 (p_effective_date
621 ,p_rec
622 );
623 --
624 -- Call the supporting pre-update operation
625 --
626 hr_tmp_upd.pre_update(p_rec);
627 --
628 -- Update the row.
629 --
630 hr_tmp_upd.update_dml(p_rec);
631 --
632 -- Call the supporting post-update operation
633 --
634 hr_tmp_upd.post_update
635 (p_effective_date
636 ,p_rec
637 );
638 End upd;
639 --
640 -- ----------------------------------------------------------------------------
641 -- |---------------------------------< upd >----------------------------------|
642 -- ----------------------------------------------------------------------------
643 Procedure upd
644 (p_effective_date in date
645 ,p_form_template_id in number
646 ,p_object_version_number in out nocopy number
647 ,p_application_id in number default hr_api.g_number
648 ,p_form_id in number default hr_api.g_number
649 ,p_template_name in varchar2 default hr_api.g_varchar2
650 ,p_enabled_flag in varchar2 default hr_api.g_varchar2
651 ,p_legislation_code in varchar2 default hr_api.g_varchar2
652 ,p_attribute_category in varchar2 default hr_api.g_varchar2
653 ,p_attribute1 in varchar2 default hr_api.g_varchar2
654 ,p_attribute2 in varchar2 default hr_api.g_varchar2
655 ,p_attribute3 in varchar2 default hr_api.g_varchar2
656 ,p_attribute4 in varchar2 default hr_api.g_varchar2
657 ,p_attribute5 in varchar2 default hr_api.g_varchar2
658 ,p_attribute6 in varchar2 default hr_api.g_varchar2
659 ,p_attribute7 in varchar2 default hr_api.g_varchar2
660 ,p_attribute8 in varchar2 default hr_api.g_varchar2
661 ,p_attribute9 in varchar2 default hr_api.g_varchar2
662 ,p_attribute10 in varchar2 default hr_api.g_varchar2
663 ,p_attribute11 in varchar2 default hr_api.g_varchar2
664 ,p_attribute12 in varchar2 default hr_api.g_varchar2
665 ,p_attribute13 in varchar2 default hr_api.g_varchar2
666 ,p_attribute14 in varchar2 default hr_api.g_varchar2
667 ,p_attribute15 in varchar2 default hr_api.g_varchar2
668 ,p_attribute16 in varchar2 default hr_api.g_varchar2
669 ,p_attribute17 in varchar2 default hr_api.g_varchar2
670 ,p_attribute18 in varchar2 default hr_api.g_varchar2
671 ,p_attribute19 in varchar2 default hr_api.g_varchar2
672 ,p_attribute20 in varchar2 default hr_api.g_varchar2
673 ,p_attribute21 in varchar2 default hr_api.g_varchar2
674 ,p_attribute22 in varchar2 default hr_api.g_varchar2
675 ,p_attribute23 in varchar2 default hr_api.g_varchar2
676 ,p_attribute24 in varchar2 default hr_api.g_varchar2
677 ,p_attribute25 in varchar2 default hr_api.g_varchar2
678 ,p_attribute26 in varchar2 default hr_api.g_varchar2
679 ,p_attribute27 in varchar2 default hr_api.g_varchar2
680 ,p_attribute28 in varchar2 default hr_api.g_varchar2
681 ,p_attribute29 in varchar2 default hr_api.g_varchar2
682 ,p_attribute30 in varchar2 default hr_api.g_varchar2
683 ) is
684 --
685 l_rec hr_tmp_shd.g_rec_type;
686 l_proc varchar2(72) := g_package||'upd';
687 --
688 Begin
689 hr_utility.set_location('Entering:'||l_proc, 5);
690 --
691 -- Call conversion function to turn arguments into the
692 -- l_rec structure.
693 --
694 l_rec :=
695 hr_tmp_shd.convert_args
696 (p_form_template_id
697 ,p_object_version_number
698 ,p_application_id
699 ,p_form_id
700 ,p_template_name
701 ,p_enabled_flag
702 ,p_legislation_code
703 ,p_attribute_category
704 ,p_attribute1
705 ,p_attribute2
706 ,p_attribute3
707 ,p_attribute4
708 ,p_attribute5
709 ,p_attribute6
710 ,p_attribute7
711 ,p_attribute8
712 ,p_attribute9
713 ,p_attribute10
714 ,p_attribute11
715 ,p_attribute12
716 ,p_attribute13
717 ,p_attribute14
718 ,p_attribute15
719 ,p_attribute16
720 ,p_attribute17
721 ,p_attribute18
722 ,p_attribute19
723 ,p_attribute20
724 ,p_attribute21
725 ,p_attribute22
726 ,p_attribute23
727 ,p_attribute24
728 ,p_attribute25
729 ,p_attribute26
730 ,p_attribute27
731 ,p_attribute28
732 ,p_attribute29
733 ,p_attribute30
734 );
735 --
736 -- Having converted the arguments into the
737 -- plsql record structure we call the corresponding record
738 -- business process.
739 --
740 hr_tmp_upd.upd
741 (p_effective_date
742 ,l_rec
743 );
744 p_object_version_number := l_rec.object_version_number;
745 --
746 hr_utility.set_location(' Leaving:'||l_proc, 10);
747 End upd;
748 --
749 end hr_tmp_upd;