[Home] [Help]
PACKAGE BODY: APPS.IRC_IPC_UPD
Source
1 Package Body irc_ipc_upd as
2 /* $Header: iripcrhi.pkb 120.0 2005/07/26 15:08:54 mbocutt noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' irc_ipc_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 irc_ipc_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 irc_ipc_shd.g_api_dml := true; -- Set the api dml status
67 --
68 -- Update the irc_posting_contents Row
69 --
70 update irc_posting_contents
71 set
72 posting_content_id = p_rec.posting_content_id
73 ,display_manager_info = p_rec.display_manager_info
74 ,display_recruiter_info = p_rec.display_recruiter_info
75 ,attribute_category = p_rec.attribute_category
76 ,attribute1 = p_rec.attribute1
77 ,attribute2 = p_rec.attribute2
78 ,attribute3 = p_rec.attribute3
79 ,attribute4 = p_rec.attribute4
80 ,attribute5 = p_rec.attribute5
81 ,attribute6 = p_rec.attribute6
82 ,attribute7 = p_rec.attribute7
83 ,attribute8 = p_rec.attribute8
84 ,attribute9 = p_rec.attribute9
85 ,attribute10 = p_rec.attribute10
86 ,attribute11 = p_rec.attribute11
87 ,attribute12 = p_rec.attribute12
88 ,attribute13 = p_rec.attribute13
89 ,attribute14 = p_rec.attribute14
90 ,attribute15 = p_rec.attribute15
91 ,attribute16 = p_rec.attribute16
92 ,attribute17 = p_rec.attribute17
93 ,attribute18 = p_rec.attribute18
94 ,attribute19 = p_rec.attribute19
95 ,attribute20 = p_rec.attribute20
96 ,attribute21 = p_rec.attribute21
97 ,attribute22 = p_rec.attribute22
98 ,attribute23 = p_rec.attribute23
99 ,attribute24 = p_rec.attribute24
100 ,attribute25 = p_rec.attribute25
101 ,attribute26 = p_rec.attribute26
102 ,attribute27 = p_rec.attribute27
103 ,attribute28 = p_rec.attribute28
104 ,attribute29 = p_rec.attribute29
105 ,attribute30 = p_rec.attribute30
106 ,ipc_information_category = p_rec.ipc_information_category
107 ,ipc_information1 = p_rec.ipc_information1
108 ,ipc_information2 = p_rec.ipc_information2
109 ,ipc_information3 = p_rec.ipc_information3
110 ,ipc_information4 = p_rec.ipc_information4
111 ,ipc_information5 = p_rec.ipc_information5
112 ,ipc_information6 = p_rec.ipc_information6
113 ,ipc_information7 = p_rec.ipc_information7
114 ,ipc_information8 = p_rec.ipc_information8
115 ,ipc_information9 = p_rec.ipc_information9
116 ,ipc_information10 = p_rec.ipc_information10
117 ,ipc_information11 = p_rec.ipc_information11
118 ,ipc_information12 = p_rec.ipc_information12
119 ,ipc_information13 = p_rec.ipc_information13
120 ,ipc_information14 = p_rec.ipc_information14
121 ,ipc_information15 = p_rec.ipc_information15
122 ,ipc_information16 = p_rec.ipc_information16
123 ,ipc_information17 = p_rec.ipc_information17
124 ,ipc_information18 = p_rec.ipc_information18
125 ,ipc_information19 = p_rec.ipc_information19
126 ,ipc_information20 = p_rec.ipc_information20
127 ,ipc_information21 = p_rec.ipc_information21
128 ,ipc_information22 = p_rec.ipc_information22
129 ,ipc_information23 = p_rec.ipc_information23
130 ,ipc_information24 = p_rec.ipc_information24
131 ,ipc_information25 = p_rec.ipc_information25
132 ,ipc_information26 = p_rec.ipc_information26
133 ,ipc_information27 = p_rec.ipc_information27
134 ,ipc_information28 = p_rec.ipc_information28
135 ,ipc_information29 = p_rec.ipc_information29
136 ,ipc_information30 = p_rec.ipc_information30
137 ,object_version_number = p_rec.object_version_number
138 ,date_approved = p_rec.date_approved
139 ,recruiter_full_name = p_rec.recruiter_full_name
140 ,recruiter_email = p_rec.recruiter_email
141 ,recruiter_work_telephone = p_rec.recruiter_work_telephone
142 ,manager_full_name = p_rec.manager_full_name
143 ,manager_email = p_rec.manager_email
144 ,manager_work_telephone = p_rec.manager_work_telephone
145 where posting_content_id = p_rec.posting_content_id;
146 --
147 irc_ipc_shd.g_api_dml := false; -- Unset the api dml status
148 --
149 hr_utility.set_location(' Leaving:'||l_proc, 10);
150 --
151 Exception
152 When hr_api.check_integrity_violated Then
153 -- A check constraint has been violated
154 irc_ipc_shd.g_api_dml := false; -- Unset the api dml status
155 --
156 irc_ipc_shd.constraint_error
157 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
158 When hr_api.parent_integrity_violated Then
159 -- Parent integrity has been violated
160 irc_ipc_shd.g_api_dml := false; -- Unset the api dml status
161 --
162 irc_ipc_shd.constraint_error
163 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
164 When hr_api.unique_integrity_violated Then
165 -- Unique integrity has been violated
166 irc_ipc_shd.g_api_dml := false; -- Unset the api dml status
167 --
168 irc_ipc_shd.constraint_error
169 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
170 When Others Then
171 irc_ipc_shd.g_api_dml := false; -- Unset the api dml status
172 --
173 Raise;
174 End update_dml;
175 --
176 -- ----------------------------------------------------------------------------
177 -- |------------------------------< pre_update >------------------------------|
178 -- ----------------------------------------------------------------------------
179 -- {Start Of Comments}
180 --
181 -- Description:
182 -- This private procedure contains any processing which is required before
183 -- the update dml.
184 --
185 -- Prerequisites:
186 -- This is an internal procedure which is called from the upd procedure.
187 --
188 -- In Parameters:
189 -- A Pl/Sql record structure.
190 --
191 -- Post Success:
192 -- Processing continues.
193 --
194 -- Post Failure:
195 -- If an error has occurred, an error message and exception wil be raised
196 -- but not handled.
197 --
198 -- Developer Implementation Notes:
199 -- Any pre-processing required before the update dml is issued should be
200 -- coded within this procedure. It is important to note that any 3rd party
201 -- maintenance should be reviewed before placing in this procedure.
202 --
203 -- Access Status:
204 -- Internal Row Handler Use Only.
205 --
206 -- {End Of Comments}
207 -- ----------------------------------------------------------------------------
208 Procedure pre_update
209 (p_rec in irc_ipc_shd.g_rec_type
210 ) is
211 --
212 l_proc varchar2(72) := g_package||'pre_update';
213 --
214 Begin
215 hr_utility.set_location('Entering:'||l_proc, 5);
216 --
217 hr_utility.set_location(' Leaving:'||l_proc, 10);
218 End pre_update;
219 --
220 -- ----------------------------------------------------------------------------
221 -- |-----------------------------< post_update >------------------------------|
222 -- ----------------------------------------------------------------------------
223 -- {Start Of Comments}
224 --
225 -- Description:
226 -- This private procedure contains any processing which is required after
227 -- the update dml.
228 --
229 -- Prerequisites:
230 -- This is an internal procedure which is called from the upd procedure.
231 --
232 -- In Parameters:
233 -- A Pl/Sql record structure.
234 --
235 -- Post Success:
236 -- Processing continues.
237 --
238 -- Post Failure:
239 -- If an error has occurred, an error message and exception will be raised
240 -- but not handled.
241 --
242 -- Developer Implementation Notes:
243 -- Any post-processing required after the update dml is issued should be
244 -- coded within this procedure. It is important to note that any 3rd party
245 -- maintenance should be reviewed before placing in this procedure.
246 --
247 -- Access Status:
248 -- Internal Row Handler Use Only.
249 --
250 -- {End Of Comments}
251 -- ----------------------------------------------------------------------------
252 Procedure post_update
253 (p_rec in irc_ipc_shd.g_rec_type
254 ) is
255 --
256 l_proc varchar2(72) := g_package||'post_update';
257 --
258 Begin
259 hr_utility.set_location('Entering:'||l_proc, 5);
260 begin
261 --
262 irc_ipc_rku.after_update
263 (p_posting_content_id
264 => p_rec.posting_content_id
265 ,p_display_manager_info
266 => p_rec.display_manager_info
267 ,p_display_recruiter_info
268 => p_rec.display_recruiter_info
269 ,p_attribute_category
270 => p_rec.attribute_category
271 ,p_attribute1
272 => p_rec.attribute1
273 ,p_attribute2
274 => p_rec.attribute2
275 ,p_attribute3
276 => p_rec.attribute3
277 ,p_attribute4
278 => p_rec.attribute4
279 ,p_attribute5
280 => p_rec.attribute5
281 ,p_attribute6
282 => p_rec.attribute6
283 ,p_attribute7
284 => p_rec.attribute7
285 ,p_attribute8
286 => p_rec.attribute8
287 ,p_attribute9
288 => p_rec.attribute9
289 ,p_attribute10
290 => p_rec.attribute10
291 ,p_attribute11
292 => p_rec.attribute11
293 ,p_attribute12
294 => p_rec.attribute12
295 ,p_attribute13
296 => p_rec.attribute13
297 ,p_attribute14
298 => p_rec.attribute14
299 ,p_attribute15
300 => p_rec.attribute15
301 ,p_attribute16
302 => p_rec.attribute16
303 ,p_attribute17
304 => p_rec.attribute17
305 ,p_attribute18
306 => p_rec.attribute18
307 ,p_attribute19
308 => p_rec.attribute19
309 ,p_attribute20
310 => p_rec.attribute20
311 ,p_attribute21
312 => p_rec.attribute21
313 ,p_attribute22
314 => p_rec.attribute22
315 ,p_attribute23
316 => p_rec.attribute23
317 ,p_attribute24
318 => p_rec.attribute24
319 ,p_attribute25
320 => p_rec.attribute25
321 ,p_attribute26
322 => p_rec.attribute26
323 ,p_attribute27
324 => p_rec.attribute27
325 ,p_attribute28
326 => p_rec.attribute28
327 ,p_attribute29
328 => p_rec.attribute29
329 ,p_attribute30
330 => p_rec.attribute30
331 ,p_ipc_information_category
332 => p_rec.ipc_information_category
333 ,p_ipc_information1
334 => p_rec.ipc_information1
335 ,p_ipc_information2
336 => p_rec.ipc_information2
337 ,p_ipc_information3
338 => p_rec.ipc_information3
339 ,p_ipc_information4
340 => p_rec.ipc_information4
341 ,p_ipc_information5
342 => p_rec.ipc_information5
343 ,p_ipc_information6
344 => p_rec.ipc_information6
345 ,p_ipc_information7
346 => p_rec.ipc_information7
347 ,p_ipc_information8
348 => p_rec.ipc_information8
349 ,p_ipc_information9
350 => p_rec.ipc_information9
351 ,p_ipc_information10
352 => p_rec.ipc_information10
353 ,p_ipc_information11
354 => p_rec.ipc_information11
355 ,p_ipc_information12
356 => p_rec.ipc_information12
357 ,p_ipc_information13
358 => p_rec.ipc_information13
359 ,p_ipc_information14
360 => p_rec.ipc_information14
361 ,p_ipc_information15
362 => p_rec.ipc_information15
363 ,p_ipc_information16
364 => p_rec.ipc_information16
365 ,p_ipc_information17
366 => p_rec.ipc_information17
367 ,p_ipc_information18
368 => p_rec.ipc_information18
369 ,p_ipc_information19
370 => p_rec.ipc_information19
371 ,p_ipc_information20
372 => p_rec.ipc_information20
373 ,p_ipc_information21
374 => p_rec.ipc_information21
375 ,p_ipc_information22
376 => p_rec.ipc_information22
377 ,p_ipc_information23
378 => p_rec.ipc_information23
379 ,p_ipc_information24
380 => p_rec.ipc_information24
381 ,p_ipc_information25
382 => p_rec.ipc_information25
383 ,p_ipc_information26
384 => p_rec.ipc_information26
385 ,p_ipc_information27
386 => p_rec.ipc_information27
387 ,p_ipc_information28
388 => p_rec.ipc_information28
389 ,p_ipc_information29
390 => p_rec.ipc_information29
391 ,p_ipc_information30
392 => p_rec.ipc_information30
393 ,p_object_version_number
394 => p_rec.object_version_number
395 ,p_date_approved
396 => p_rec.date_approved
397 ,p_recruiter_full_name
398 => p_rec.recruiter_full_name
399 ,p_recruiter_email
400 => p_rec.recruiter_email
401 ,p_recruiter_work_telephone
402 => p_rec.recruiter_work_telephone
403 ,p_manager_full_name
404 => p_rec.manager_full_name
405 ,p_manager_email
406 => p_rec.manager_email
407 ,p_manager_work_telephone
408 => p_rec.manager_work_telephone
409 ,p_display_manager_info_o
410 => irc_ipc_shd.g_old_rec.display_manager_info
411 ,p_display_recruiter_info_o
412 => irc_ipc_shd.g_old_rec.display_recruiter_info
413 ,p_attribute_category_o
414 => irc_ipc_shd.g_old_rec.attribute_category
415 ,p_attribute1_o
416 => irc_ipc_shd.g_old_rec.attribute1
417 ,p_attribute2_o
418 => irc_ipc_shd.g_old_rec.attribute2
419 ,p_attribute3_o
420 => irc_ipc_shd.g_old_rec.attribute3
421 ,p_attribute4_o
422 => irc_ipc_shd.g_old_rec.attribute4
423 ,p_attribute5_o
424 => irc_ipc_shd.g_old_rec.attribute5
425 ,p_attribute6_o
426 => irc_ipc_shd.g_old_rec.attribute6
427 ,p_attribute7_o
428 => irc_ipc_shd.g_old_rec.attribute7
429 ,p_attribute8_o
430 => irc_ipc_shd.g_old_rec.attribute8
431 ,p_attribute9_o
432 => irc_ipc_shd.g_old_rec.attribute9
433 ,p_attribute10_o
434 => irc_ipc_shd.g_old_rec.attribute10
435 ,p_attribute11_o
436 => irc_ipc_shd.g_old_rec.attribute11
437 ,p_attribute12_o
438 => irc_ipc_shd.g_old_rec.attribute12
439 ,p_attribute13_o
440 => irc_ipc_shd.g_old_rec.attribute13
441 ,p_attribute14_o
442 => irc_ipc_shd.g_old_rec.attribute14
443 ,p_attribute15_o
444 => irc_ipc_shd.g_old_rec.attribute15
445 ,p_attribute16_o
446 => irc_ipc_shd.g_old_rec.attribute16
447 ,p_attribute17_o
448 => irc_ipc_shd.g_old_rec.attribute17
449 ,p_attribute18_o
450 => irc_ipc_shd.g_old_rec.attribute18
451 ,p_attribute19_o
452 => irc_ipc_shd.g_old_rec.attribute19
453 ,p_attribute20_o
454 => irc_ipc_shd.g_old_rec.attribute20
455 ,p_attribute21_o
456 => irc_ipc_shd.g_old_rec.attribute21
457 ,p_attribute22_o
458 => irc_ipc_shd.g_old_rec.attribute22
459 ,p_attribute23_o
460 => irc_ipc_shd.g_old_rec.attribute23
461 ,p_attribute24_o
462 => irc_ipc_shd.g_old_rec.attribute24
463 ,p_attribute25_o
464 => irc_ipc_shd.g_old_rec.attribute25
465 ,p_attribute26_o
466 => irc_ipc_shd.g_old_rec.attribute26
467 ,p_attribute27_o
468 => irc_ipc_shd.g_old_rec.attribute27
469 ,p_attribute28_o
470 => irc_ipc_shd.g_old_rec.attribute28
471 ,p_attribute29_o
472 => irc_ipc_shd.g_old_rec.attribute29
473 ,p_attribute30_o
474 => irc_ipc_shd.g_old_rec.attribute30
475 ,p_ipc_information_category_o
476 => irc_ipc_shd.g_old_rec.ipc_information_category
477 ,p_ipc_information1_o
478 => irc_ipc_shd.g_old_rec.ipc_information1
479 ,p_ipc_information2_o
480 => irc_ipc_shd.g_old_rec.ipc_information2
481 ,p_ipc_information3_o
482 => irc_ipc_shd.g_old_rec.ipc_information3
483 ,p_ipc_information4_o
484 => irc_ipc_shd.g_old_rec.ipc_information4
485 ,p_ipc_information5_o
486 => irc_ipc_shd.g_old_rec.ipc_information5
487 ,p_ipc_information6_o
488 => irc_ipc_shd.g_old_rec.ipc_information6
489 ,p_ipc_information7_o
490 => irc_ipc_shd.g_old_rec.ipc_information7
491 ,p_ipc_information8_o
492 => irc_ipc_shd.g_old_rec.ipc_information8
493 ,p_ipc_information9_o
494 => irc_ipc_shd.g_old_rec.ipc_information9
495 ,p_ipc_information10_o
496 => irc_ipc_shd.g_old_rec.ipc_information10
497 ,p_ipc_information11_o
498 => irc_ipc_shd.g_old_rec.ipc_information11
499 ,p_ipc_information12_o
500 => irc_ipc_shd.g_old_rec.ipc_information12
501 ,p_ipc_information13_o
502 => irc_ipc_shd.g_old_rec.ipc_information13
503 ,p_ipc_information14_o
504 => irc_ipc_shd.g_old_rec.ipc_information14
505 ,p_ipc_information15_o
506 => irc_ipc_shd.g_old_rec.ipc_information15
507 ,p_ipc_information16_o
508 => irc_ipc_shd.g_old_rec.ipc_information16
509 ,p_ipc_information17_o
510 => irc_ipc_shd.g_old_rec.ipc_information17
511 ,p_ipc_information18_o
512 => irc_ipc_shd.g_old_rec.ipc_information18
513 ,p_ipc_information19_o
514 => irc_ipc_shd.g_old_rec.ipc_information19
515 ,p_ipc_information20_o
516 => irc_ipc_shd.g_old_rec.ipc_information20
517 ,p_ipc_information21_o
518 => irc_ipc_shd.g_old_rec.ipc_information21
519 ,p_ipc_information22_o
520 => irc_ipc_shd.g_old_rec.ipc_information22
521 ,p_ipc_information23_o
522 => irc_ipc_shd.g_old_rec.ipc_information23
523 ,p_ipc_information24_o
524 => irc_ipc_shd.g_old_rec.ipc_information24
525 ,p_ipc_information25_o
526 => irc_ipc_shd.g_old_rec.ipc_information25
527 ,p_ipc_information26_o
528 => irc_ipc_shd.g_old_rec.ipc_information26
529 ,p_ipc_information27_o
530 => irc_ipc_shd.g_old_rec.ipc_information27
531 ,p_ipc_information28_o
532 => irc_ipc_shd.g_old_rec.ipc_information28
533 ,p_ipc_information29_o
534 => irc_ipc_shd.g_old_rec.ipc_information29
535 ,p_ipc_information30_o
536 => irc_ipc_shd.g_old_rec.ipc_information30
537 ,p_object_version_number_o
538 => irc_ipc_shd.g_old_rec.object_version_number
539 ,p_date_approved_o
540 => irc_ipc_shd.g_old_rec.date_approved
541 ,p_recruiter_full_name_o
542 => p_rec.recruiter_full_name
543 ,p_recruiter_email_o
544 => p_rec.recruiter_email
545 ,p_recruiter_work_telephone_o
546 => p_rec.recruiter_work_telephone
547 ,p_manager_full_name_o
548 => p_rec.manager_full_name
549 ,p_manager_email_o
550 => p_rec.manager_email
551 ,p_manager_work_telephone_o
552 => p_rec.manager_work_telephone
553 );
554 --
555 exception
556 --
557 when hr_api.cannot_find_prog_unit then
558 --
559 hr_api.cannot_find_prog_unit_error
560 (p_module_name => 'IRC_POSTING_CONTENTS'
561 ,p_hook_type => 'AU');
562 --
563 end;
564 --
565 hr_utility.set_location(' Leaving:'||l_proc, 10);
566 End post_update;
567 --
568 -- ----------------------------------------------------------------------------
569 -- |-----------------------------< convert_defs >-----------------------------|
570 -- ----------------------------------------------------------------------------
571 -- {Start Of Comments}
572 --
573 -- Description:
574 -- The Convert_Defs procedure has one very important function:
575 -- It must return the record structure for the row with all system defaulted
576 -- values converted into its corresponding parameter value for update. When
577 -- we attempt to update a row through the Upd process , certain
578 -- parameters can be defaulted which enables flexibility in the calling of
579 -- the upd process (e.g. only attributes which need to be updated need to be
580 -- specified). For the upd process to determine which attributes
581 -- have NOT been specified we need to check if the parameter has a reserved
582 -- system default value. Therefore, for all parameters which have a
583 -- corresponding reserved system default mechanism specified we need to
584 -- check if a system default is being used. If a system default is being
585 -- used then we convert the defaulted value into its corresponding attribute
586 -- value held in the g_old_rec data structure.
587 --
588 -- Prerequisites:
589 -- This private function can only be called from the upd process.
590 --
591 -- In Parameters:
592 -- A Pl/Sql record structure.
593 --
594 -- Post Success:
595 -- The record structure will be returned with all system defaulted parameter
596 -- values converted into its current row attribute value.
597 --
598 -- Post Failure:
599 -- No direct error handling is required within this function. Any possible
600 -- errors within this procedure will be a PL/SQL value error due to
601 -- conversion of datatypes or data lengths.
602 --
603 -- Developer Implementation Notes:
604 -- None.
605 --
606 -- Access Status:
607 -- Internal Row Handler Use Only.
608 --
609 -- {End Of Comments}
610 -- ----------------------------------------------------------------------------
611 Procedure convert_defs
612 (p_rec in out nocopy irc_ipc_shd.g_rec_type
613 ) is
614 --
615 Begin
616 --
617 -- We must now examine each argument value in the
618 -- p_rec plsql record structure
619 -- to see if a system default is being used. If a system default
620 -- is being used then we must set to the 'current' argument value.
621 --
622 If (p_rec.display_manager_info = hr_api.g_varchar2) then
623 p_rec.display_manager_info :=
624 irc_ipc_shd.g_old_rec.display_manager_info;
625 End If;
626 If (p_rec.display_recruiter_info = hr_api.g_varchar2) then
627 p_rec.display_recruiter_info :=
628 irc_ipc_shd.g_old_rec.display_recruiter_info;
629 End If;
630 If (p_rec.attribute_category = hr_api.g_varchar2) then
631 p_rec.attribute_category :=
632 irc_ipc_shd.g_old_rec.attribute_category;
633 End If;
634 If (p_rec.attribute1 = hr_api.g_varchar2) then
635 p_rec.attribute1 :=
636 irc_ipc_shd.g_old_rec.attribute1;
637 End If;
638 If (p_rec.attribute2 = hr_api.g_varchar2) then
639 p_rec.attribute2 :=
640 irc_ipc_shd.g_old_rec.attribute2;
641 End If;
642 If (p_rec.attribute3 = hr_api.g_varchar2) then
643 p_rec.attribute3 :=
644 irc_ipc_shd.g_old_rec.attribute3;
645 End If;
646 If (p_rec.attribute4 = hr_api.g_varchar2) then
647 p_rec.attribute4 :=
648 irc_ipc_shd.g_old_rec.attribute4;
649 End If;
650 If (p_rec.attribute5 = hr_api.g_varchar2) then
651 p_rec.attribute5 :=
652 irc_ipc_shd.g_old_rec.attribute5;
653 End If;
654 If (p_rec.attribute6 = hr_api.g_varchar2) then
655 p_rec.attribute6 :=
656 irc_ipc_shd.g_old_rec.attribute6;
657 End If;
658 If (p_rec.attribute7 = hr_api.g_varchar2) then
659 p_rec.attribute7 :=
660 irc_ipc_shd.g_old_rec.attribute7;
661 End If;
662 If (p_rec.attribute8 = hr_api.g_varchar2) then
663 p_rec.attribute8 :=
664 irc_ipc_shd.g_old_rec.attribute8;
665 End If;
666 If (p_rec.attribute9 = hr_api.g_varchar2) then
667 p_rec.attribute9 :=
668 irc_ipc_shd.g_old_rec.attribute9;
669 End If;
670 If (p_rec.attribute10 = hr_api.g_varchar2) then
671 p_rec.attribute10 :=
672 irc_ipc_shd.g_old_rec.attribute10;
673 End If;
674 If (p_rec.attribute11 = hr_api.g_varchar2) then
675 p_rec.attribute11 :=
676 irc_ipc_shd.g_old_rec.attribute11;
677 End If;
678 If (p_rec.attribute12 = hr_api.g_varchar2) then
679 p_rec.attribute12 :=
680 irc_ipc_shd.g_old_rec.attribute12;
681 End If;
682 If (p_rec.attribute13 = hr_api.g_varchar2) then
683 p_rec.attribute13 :=
684 irc_ipc_shd.g_old_rec.attribute13;
685 End If;
686 If (p_rec.attribute14 = hr_api.g_varchar2) then
687 p_rec.attribute14 :=
688 irc_ipc_shd.g_old_rec.attribute14;
689 End If;
690 If (p_rec.attribute15 = hr_api.g_varchar2) then
691 p_rec.attribute15 :=
692 irc_ipc_shd.g_old_rec.attribute15;
693 End If;
694 If (p_rec.attribute16 = hr_api.g_varchar2) then
695 p_rec.attribute16 :=
696 irc_ipc_shd.g_old_rec.attribute16;
697 End If;
698 If (p_rec.attribute17 = hr_api.g_varchar2) then
699 p_rec.attribute17 :=
700 irc_ipc_shd.g_old_rec.attribute17;
701 End If;
702 If (p_rec.attribute18 = hr_api.g_varchar2) then
703 p_rec.attribute18 :=
704 irc_ipc_shd.g_old_rec.attribute18;
705 End If;
706 If (p_rec.attribute19 = hr_api.g_varchar2) then
707 p_rec.attribute19 :=
708 irc_ipc_shd.g_old_rec.attribute19;
709 End If;
710 If (p_rec.attribute20 = hr_api.g_varchar2) then
711 p_rec.attribute20 :=
712 irc_ipc_shd.g_old_rec.attribute20;
713 End If;
714 If (p_rec.attribute21 = hr_api.g_varchar2) then
715 p_rec.attribute21 :=
716 irc_ipc_shd.g_old_rec.attribute21;
717 End If;
718 If (p_rec.attribute22 = hr_api.g_varchar2) then
719 p_rec.attribute22 :=
720 irc_ipc_shd.g_old_rec.attribute22;
721 End If;
722 If (p_rec.attribute23 = hr_api.g_varchar2) then
723 p_rec.attribute23 :=
724 irc_ipc_shd.g_old_rec.attribute23;
725 End If;
726 If (p_rec.attribute24 = hr_api.g_varchar2) then
727 p_rec.attribute24 :=
728 irc_ipc_shd.g_old_rec.attribute24;
729 End If;
730 If (p_rec.attribute25 = hr_api.g_varchar2) then
731 p_rec.attribute25 :=
732 irc_ipc_shd.g_old_rec.attribute25;
733 End If;
734 If (p_rec.attribute26 = hr_api.g_varchar2) then
735 p_rec.attribute26 :=
736 irc_ipc_shd.g_old_rec.attribute26;
737 End If;
738 If (p_rec.attribute27 = hr_api.g_varchar2) then
739 p_rec.attribute27 :=
740 irc_ipc_shd.g_old_rec.attribute27;
741 End If;
742 If (p_rec.attribute28 = hr_api.g_varchar2) then
743 p_rec.attribute28 :=
744 irc_ipc_shd.g_old_rec.attribute28;
745 End If;
746 If (p_rec.attribute29 = hr_api.g_varchar2) then
747 p_rec.attribute29 :=
748 irc_ipc_shd.g_old_rec.attribute29;
749 End If;
750 If (p_rec.attribute30 = hr_api.g_varchar2) then
751 p_rec.attribute30 :=
752 irc_ipc_shd.g_old_rec.attribute30;
753 End If;
754 If (p_rec.ipc_information_category = hr_api.g_varchar2) then
755 p_rec.ipc_information_category :=
756 irc_ipc_shd.g_old_rec.ipc_information_category;
757 End If;
758 If (p_rec.ipc_information1 = hr_api.g_varchar2) then
759 p_rec.ipc_information1 :=
760 irc_ipc_shd.g_old_rec.ipc_information1;
761 End If;
762 If (p_rec.ipc_information2 = hr_api.g_varchar2) then
763 p_rec.ipc_information2 :=
764 irc_ipc_shd.g_old_rec.ipc_information2;
765 End If;
766 If (p_rec.ipc_information3 = hr_api.g_varchar2) then
767 p_rec.ipc_information3 :=
768 irc_ipc_shd.g_old_rec.ipc_information3;
769 End If;
770 If (p_rec.ipc_information4 = hr_api.g_varchar2) then
771 p_rec.ipc_information4 :=
772 irc_ipc_shd.g_old_rec.ipc_information4;
773 End If;
774 If (p_rec.ipc_information5 = hr_api.g_varchar2) then
775 p_rec.ipc_information5 :=
776 irc_ipc_shd.g_old_rec.ipc_information5;
777 End If;
778 If (p_rec.ipc_information6 = hr_api.g_varchar2) then
779 p_rec.ipc_information6 :=
780 irc_ipc_shd.g_old_rec.ipc_information6;
781 End If;
782 If (p_rec.ipc_information7 = hr_api.g_varchar2) then
783 p_rec.ipc_information7 :=
784 irc_ipc_shd.g_old_rec.ipc_information7;
785 End If;
786 If (p_rec.ipc_information8 = hr_api.g_varchar2) then
787 p_rec.ipc_information8 :=
788 irc_ipc_shd.g_old_rec.ipc_information8;
789 End If;
790 If (p_rec.ipc_information9 = hr_api.g_varchar2) then
791 p_rec.ipc_information9 :=
792 irc_ipc_shd.g_old_rec.ipc_information9;
793 End If;
794 If (p_rec.ipc_information10 = hr_api.g_varchar2) then
795 p_rec.ipc_information10 :=
796 irc_ipc_shd.g_old_rec.ipc_information10;
797 End If;
798 If (p_rec.ipc_information11 = hr_api.g_varchar2) then
799 p_rec.ipc_information11 :=
800 irc_ipc_shd.g_old_rec.ipc_information11;
801 End If;
802 If (p_rec.ipc_information12 = hr_api.g_varchar2) then
803 p_rec.ipc_information12 :=
804 irc_ipc_shd.g_old_rec.ipc_information12;
805 End If;
806 If (p_rec.ipc_information13 = hr_api.g_varchar2) then
807 p_rec.ipc_information13 :=
808 irc_ipc_shd.g_old_rec.ipc_information13;
809 End If;
810 If (p_rec.ipc_information14 = hr_api.g_varchar2) then
811 p_rec.ipc_information14 :=
812 irc_ipc_shd.g_old_rec.ipc_information14;
813 End If;
814 If (p_rec.ipc_information15 = hr_api.g_varchar2) then
815 p_rec.ipc_information15 :=
816 irc_ipc_shd.g_old_rec.ipc_information15;
817 End If;
818 If (p_rec.ipc_information16 = hr_api.g_varchar2) then
819 p_rec.ipc_information16 :=
820 irc_ipc_shd.g_old_rec.ipc_information16;
821 End If;
822 If (p_rec.ipc_information17 = hr_api.g_varchar2) then
823 p_rec.ipc_information17 :=
824 irc_ipc_shd.g_old_rec.ipc_information17;
825 End If;
826 If (p_rec.ipc_information18 = hr_api.g_varchar2) then
827 p_rec.ipc_information18 :=
828 irc_ipc_shd.g_old_rec.ipc_information18;
829 End If;
830 If (p_rec.ipc_information19 = hr_api.g_varchar2) then
831 p_rec.ipc_information19 :=
832 irc_ipc_shd.g_old_rec.ipc_information19;
833 End If;
834 If (p_rec.ipc_information20 = hr_api.g_varchar2) then
835 p_rec.ipc_information20 :=
836 irc_ipc_shd.g_old_rec.ipc_information20;
837 End If;
838 If (p_rec.ipc_information21 = hr_api.g_varchar2) then
839 p_rec.ipc_information21 :=
840 irc_ipc_shd.g_old_rec.ipc_information21;
841 End If;
842 If (p_rec.ipc_information22 = hr_api.g_varchar2) then
843 p_rec.ipc_information22 :=
844 irc_ipc_shd.g_old_rec.ipc_information22;
845 End If;
846 If (p_rec.ipc_information23 = hr_api.g_varchar2) then
847 p_rec.ipc_information23 :=
848 irc_ipc_shd.g_old_rec.ipc_information23;
849 End If;
850 If (p_rec.ipc_information24 = hr_api.g_varchar2) then
851 p_rec.ipc_information24 :=
852 irc_ipc_shd.g_old_rec.ipc_information24;
853 End If;
854 If (p_rec.ipc_information25 = hr_api.g_varchar2) then
855 p_rec.ipc_information25 :=
856 irc_ipc_shd.g_old_rec.ipc_information25;
857 End If;
858 If (p_rec.ipc_information26 = hr_api.g_varchar2) then
859 p_rec.ipc_information26 :=
860 irc_ipc_shd.g_old_rec.ipc_information26;
861 End If;
862 If (p_rec.ipc_information27 = hr_api.g_varchar2) then
863 p_rec.ipc_information27 :=
864 irc_ipc_shd.g_old_rec.ipc_information27;
865 End If;
866 If (p_rec.ipc_information28 = hr_api.g_varchar2) then
867 p_rec.ipc_information28 :=
868 irc_ipc_shd.g_old_rec.ipc_information28;
869 End If;
870 If (p_rec.ipc_information29 = hr_api.g_varchar2) then
871 p_rec.ipc_information29 :=
872 irc_ipc_shd.g_old_rec.ipc_information29;
873 End If;
874 If (p_rec.ipc_information30 = hr_api.g_varchar2) then
875 p_rec.ipc_information30 :=
876 irc_ipc_shd.g_old_rec.ipc_information30;
877 End If;
878 If (p_rec.date_approved = hr_api.g_date) then
879 p_rec.date_approved :=
880 irc_ipc_shd.g_old_rec.date_approved;
881 End If;
882 If (p_rec.recruiter_full_name = hr_api.g_varchar2) then
883 p_rec.recruiter_full_name :=
884 irc_ipc_shd.g_old_rec.recruiter_full_name;
885 End If;
886 If (p_rec.recruiter_email = hr_api.g_varchar2) then
887 p_rec.recruiter_email :=
888 irc_ipc_shd.g_old_rec.recruiter_email;
889 End If;
890 If (p_rec.recruiter_work_telephone = hr_api.g_varchar2) then
891 p_rec.recruiter_work_telephone :=
892 irc_ipc_shd.g_old_rec.recruiter_work_telephone;
893 End If;
894 If (p_rec.manager_full_name = hr_api.g_varchar2) then
895 p_rec.manager_full_name :=
896 irc_ipc_shd.g_old_rec.manager_full_name;
897 End If;
898 If (p_rec.manager_email = hr_api.g_varchar2) then
899 p_rec.manager_email :=
900 irc_ipc_shd.g_old_rec.manager_email;
901 End If;
902 If (p_rec.manager_work_telephone = hr_api.g_varchar2) then
903 p_rec.manager_work_telephone :=
904 irc_ipc_shd.g_old_rec.manager_work_telephone;
905 End If;
906 --
907 End convert_defs;
908 --
909 -- ----------------------------------------------------------------------------
910 -- |---------------------------------< upd >----------------------------------|
911 -- ----------------------------------------------------------------------------
912 Procedure upd
913 (p_rec in out nocopy irc_ipc_shd.g_rec_type
914 ) is
915 --
916 l_proc varchar2(72) := g_package||'upd';
917 --
918 Begin
919 hr_utility.set_location('Entering:'||l_proc, 5);
920 --
921 -- We must lock the row which we need to update.
922 --
923 irc_ipc_shd.lck
924 (p_rec.posting_content_id
925 ,p_rec.object_version_number
926 );
927 --
928 -- 1. During an update system defaults are used to determine if
929 -- arguments have been defaulted or not. We must therefore
930 -- derive the full record structure values to be updated.
931 --
932 -- 2. Call the supporting update validate operations.
933 --
934 convert_defs(p_rec);
935 irc_ipc_bus.update_validate
936 (p_rec
937 );
938 --
939 -- Call the supporting pre-update operation
940 --
941 irc_ipc_upd.pre_update(p_rec);
942 --
943 -- Update the row.
944 --
945 irc_ipc_upd.update_dml(p_rec);
946 --
947 -- Call the supporting post-update operation
948 --
949 irc_ipc_upd.post_update
950 (p_rec
951 );
952 End upd;
953 --
954 -- ----------------------------------------------------------------------------
955 -- |---------------------------------< upd >----------------------------------|
956 -- ----------------------------------------------------------------------------
957 Procedure upd
958 (p_posting_content_id in number
959 ,p_object_version_number in out nocopy number
960 ,p_display_manager_info in varchar2 default hr_api.g_varchar2
961 ,p_display_recruiter_info in varchar2 default hr_api.g_varchar2
962 ,p_attribute_category in varchar2 default hr_api.g_varchar2
963 ,p_attribute1 in varchar2 default hr_api.g_varchar2
964 ,p_attribute2 in varchar2 default hr_api.g_varchar2
965 ,p_attribute3 in varchar2 default hr_api.g_varchar2
966 ,p_attribute4 in varchar2 default hr_api.g_varchar2
967 ,p_attribute5 in varchar2 default hr_api.g_varchar2
968 ,p_attribute6 in varchar2 default hr_api.g_varchar2
969 ,p_attribute7 in varchar2 default hr_api.g_varchar2
970 ,p_attribute8 in varchar2 default hr_api.g_varchar2
971 ,p_attribute9 in varchar2 default hr_api.g_varchar2
972 ,p_attribute10 in varchar2 default hr_api.g_varchar2
973 ,p_attribute11 in varchar2 default hr_api.g_varchar2
974 ,p_attribute12 in varchar2 default hr_api.g_varchar2
975 ,p_attribute13 in varchar2 default hr_api.g_varchar2
976 ,p_attribute14 in varchar2 default hr_api.g_varchar2
977 ,p_attribute15 in varchar2 default hr_api.g_varchar2
978 ,p_attribute16 in varchar2 default hr_api.g_varchar2
979 ,p_attribute17 in varchar2 default hr_api.g_varchar2
980 ,p_attribute18 in varchar2 default hr_api.g_varchar2
981 ,p_attribute19 in varchar2 default hr_api.g_varchar2
982 ,p_attribute20 in varchar2 default hr_api.g_varchar2
983 ,p_attribute21 in varchar2 default hr_api.g_varchar2
984 ,p_attribute22 in varchar2 default hr_api.g_varchar2
985 ,p_attribute23 in varchar2 default hr_api.g_varchar2
986 ,p_attribute24 in varchar2 default hr_api.g_varchar2
987 ,p_attribute25 in varchar2 default hr_api.g_varchar2
988 ,p_attribute26 in varchar2 default hr_api.g_varchar2
989 ,p_attribute27 in varchar2 default hr_api.g_varchar2
990 ,p_attribute28 in varchar2 default hr_api.g_varchar2
991 ,p_attribute29 in varchar2 default hr_api.g_varchar2
992 ,p_attribute30 in varchar2 default hr_api.g_varchar2
993 ,p_ipc_information_category in varchar2 default hr_api.g_varchar2
994 ,p_ipc_information1 in varchar2 default hr_api.g_varchar2
995 ,p_ipc_information2 in varchar2 default hr_api.g_varchar2
996 ,p_ipc_information3 in varchar2 default hr_api.g_varchar2
997 ,p_ipc_information4 in varchar2 default hr_api.g_varchar2
998 ,p_ipc_information5 in varchar2 default hr_api.g_varchar2
999 ,p_ipc_information6 in varchar2 default hr_api.g_varchar2
1000 ,p_ipc_information7 in varchar2 default hr_api.g_varchar2
1001 ,p_ipc_information8 in varchar2 default hr_api.g_varchar2
1002 ,p_ipc_information9 in varchar2 default hr_api.g_varchar2
1003 ,p_ipc_information10 in varchar2 default hr_api.g_varchar2
1004 ,p_ipc_information11 in varchar2 default hr_api.g_varchar2
1005 ,p_ipc_information12 in varchar2 default hr_api.g_varchar2
1006 ,p_ipc_information13 in varchar2 default hr_api.g_varchar2
1007 ,p_ipc_information14 in varchar2 default hr_api.g_varchar2
1008 ,p_ipc_information15 in varchar2 default hr_api.g_varchar2
1009 ,p_ipc_information16 in varchar2 default hr_api.g_varchar2
1010 ,p_ipc_information17 in varchar2 default hr_api.g_varchar2
1011 ,p_ipc_information18 in varchar2 default hr_api.g_varchar2
1012 ,p_ipc_information19 in varchar2 default hr_api.g_varchar2
1013 ,p_ipc_information20 in varchar2 default hr_api.g_varchar2
1014 ,p_ipc_information21 in varchar2 default hr_api.g_varchar2
1015 ,p_ipc_information22 in varchar2 default hr_api.g_varchar2
1016 ,p_ipc_information23 in varchar2 default hr_api.g_varchar2
1017 ,p_ipc_information24 in varchar2 default hr_api.g_varchar2
1018 ,p_ipc_information25 in varchar2 default hr_api.g_varchar2
1019 ,p_ipc_information26 in varchar2 default hr_api.g_varchar2
1020 ,p_ipc_information27 in varchar2 default hr_api.g_varchar2
1021 ,p_ipc_information28 in varchar2 default hr_api.g_varchar2
1022 ,p_ipc_information29 in varchar2 default hr_api.g_varchar2
1023 ,p_ipc_information30 in varchar2 default hr_api.g_varchar2
1024 ,p_date_approved in date default hr_api.g_date
1025 ,p_recruiter_full_name in varchar2 default hr_api.g_varchar2
1026 ,p_recruiter_email in varchar2 default hr_api.g_varchar2
1027 ,p_recruiter_work_telephone in varchar2 default hr_api.g_varchar2
1028 ,p_manager_full_name in varchar2 default hr_api.g_varchar2
1029 ,p_manager_email in varchar2 default hr_api.g_varchar2
1030 ,p_manager_work_telephone in varchar2 default hr_api.g_varchar2
1031 ) is
1032 --
1033 l_rec irc_ipc_shd.g_rec_type;
1034 l_proc varchar2(72) := g_package||'upd';
1035 --
1036 Begin
1037 hr_utility.set_location('Entering:'||l_proc, 5);
1038 --
1039 -- Call conversion function to turn arguments into the
1040 -- l_rec structure.
1041 --
1042 l_rec :=
1043 irc_ipc_shd.convert_args
1044 (p_posting_content_id
1045 ,p_display_manager_info
1046 ,p_display_recruiter_info
1047 ,p_attribute_category
1048 ,p_attribute1
1049 ,p_attribute2
1050 ,p_attribute3
1051 ,p_attribute4
1052 ,p_attribute5
1053 ,p_attribute6
1054 ,p_attribute7
1055 ,p_attribute8
1056 ,p_attribute9
1057 ,p_attribute10
1058 ,p_attribute11
1059 ,p_attribute12
1060 ,p_attribute13
1061 ,p_attribute14
1062 ,p_attribute15
1063 ,p_attribute16
1064 ,p_attribute17
1065 ,p_attribute18
1066 ,p_attribute19
1067 ,p_attribute20
1068 ,p_attribute21
1069 ,p_attribute22
1070 ,p_attribute23
1071 ,p_attribute24
1072 ,p_attribute25
1073 ,p_attribute26
1074 ,p_attribute27
1075 ,p_attribute28
1076 ,p_attribute29
1077 ,p_attribute30
1078 ,p_ipc_information_category
1079 ,p_ipc_information1
1080 ,p_ipc_information2
1081 ,p_ipc_information3
1082 ,p_ipc_information4
1083 ,p_ipc_information5
1084 ,p_ipc_information6
1085 ,p_ipc_information7
1086 ,p_ipc_information8
1087 ,p_ipc_information9
1088 ,p_ipc_information10
1089 ,p_ipc_information11
1090 ,p_ipc_information12
1091 ,p_ipc_information13
1092 ,p_ipc_information14
1093 ,p_ipc_information15
1094 ,p_ipc_information16
1095 ,p_ipc_information17
1096 ,p_ipc_information18
1097 ,p_ipc_information19
1098 ,p_ipc_information20
1099 ,p_ipc_information21
1100 ,p_ipc_information22
1101 ,p_ipc_information23
1102 ,p_ipc_information24
1103 ,p_ipc_information25
1104 ,p_ipc_information26
1105 ,p_ipc_information27
1106 ,p_ipc_information28
1107 ,p_ipc_information29
1108 ,p_ipc_information30
1109 ,p_object_version_number
1110 ,p_date_approved
1111 ,p_recruiter_full_name
1112 ,p_recruiter_email
1113 ,p_recruiter_work_telephone
1114 ,p_manager_full_name
1115 ,p_manager_email
1116 ,p_manager_work_telephone
1117 );
1118 --
1119 -- Having converted the arguments into the
1120 -- plsql record structure we call the corresponding record
1121 -- business process.
1122 --
1123 irc_ipc_upd.upd
1124 (l_rec
1125 );
1126 p_object_version_number := l_rec.object_version_number;
1127 --
1128 hr_utility.set_location(' Leaving:'||l_proc, 10);
1129 End upd;
1130 --
1131 end irc_ipc_upd;