DBA Data[Home] [Help]

PACKAGE BODY: APPS.PER_CHK_UPD

Source


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