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