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