DBA Data[Home] [Help]

PACKAGE BODY: APPS.PQH_CEA_UPD

Source


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