DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_CMBN_AGE_LOS_FCTR_API

Source


1 Package Body ben_cmbn_age_los_fctr_api as
2 /* $Header: beclaapi.pkb 120.0 2005/05/28 01:03:00 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package  varchar2(33) := '  ben_cmbn_age_los_fctr_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_cmbn_age_los_fctr >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_cmbn_age_los_fctr
13   (p_validate                       in  boolean   default false
14   ,p_cmbn_age_los_fctr_id           out nocopy number
15   ,p_name                           in  varchar2  default null
16   ,p_los_fctr_id                    in  number    default null
17   ,p_age_fctr_id                    in  number    default null
18   ,p_cmbnd_min_val                  in  number    default null
19   ,p_cmbnd_max_val                  in  number    default null
20   ,p_ordr_num                       in  number    default null
21   ,p_business_group_id              in  number    default null
22   ,p_cla_attribute_category         in  varchar2  default null
23   ,p_cla_attribute1                 in  varchar2  default null
24   ,p_cla_attribute2                 in  varchar2  default null
25   ,p_cla_attribute3                 in  varchar2  default null
26   ,p_cla_attribute4                 in  varchar2  default null
27   ,p_cla_attribute5                 in  varchar2  default null
28   ,p_cla_attribute6                 in  varchar2  default null
29   ,p_cla_attribute7                 in  varchar2  default null
30   ,p_cla_attribute8                 in  varchar2  default null
31   ,p_cla_attribute9                 in  varchar2  default null
32   ,p_cla_attribute10                in  varchar2  default null
33   ,p_cla_attribute11                in  varchar2  default null
34   ,p_cla_attribute12                in  varchar2  default null
35   ,p_cla_attribute13                in  varchar2  default null
36   ,p_cla_attribute14                in  varchar2  default null
37   ,p_cla_attribute15                in  varchar2  default null
38   ,p_cla_attribute16                in  varchar2  default null
39   ,p_cla_attribute17                in  varchar2  default null
40   ,p_cla_attribute18                in  varchar2  default null
41   ,p_cla_attribute19                in  varchar2  default null
42   ,p_cla_attribute20                in  varchar2  default null
43   ,p_cla_attribute21                in  varchar2  default null
44   ,p_cla_attribute22                in  varchar2  default null
45   ,p_cla_attribute23                in  varchar2  default null
46   ,p_cla_attribute24                in  varchar2  default null
47   ,p_cla_attribute25                in  varchar2  default null
48   ,p_cla_attribute26                in  varchar2  default null
49   ,p_cla_attribute27                in  varchar2  default null
50   ,p_cla_attribute28                in  varchar2  default null
51   ,p_cla_attribute29                in  varchar2  default null
52   ,p_cla_attribute30                in  varchar2  default null
53   ,p_object_version_number          out nocopy number
54   ) is
55   --
56   -- Declare cursors and local variables
57   --
58   l_cmbn_age_los_fctr_id ben_cmbn_age_los_fctr.cmbn_age_los_fctr_id%TYPE;
59   l_proc varchar2(72) := g_package||'create_cmbn_age_los_fctr';
60   l_object_version_number ben_cmbn_age_los_fctr.object_version_number%TYPE;
61   --
62 begin
63   --
64   hr_utility.set_location('Entering:'|| l_proc, 10);
65   --
66   -- Issue a savepoint if operating in validation only mode
67   --
68   savepoint create_cmbn_age_los_fctr;
69   --
70   hr_utility.set_location(l_proc, 20);
71   --
72   -- Process Logic
73   --
74   begin
75     --
76     -- Start of API User Hook for the before hook of create_cmbn_age_los_fctr
77     --
78     ben_cmbn_age_los_fctr_bk1.create_cmbn_age_los_fctr_b
79       (
80        p_name                           =>  p_name
81       ,p_los_fctr_id                    =>  p_los_fctr_id
82       ,p_age_fctr_id                    =>  p_age_fctr_id
83       ,p_cmbnd_min_val                  =>  p_cmbnd_min_val
84       ,p_cmbnd_max_val                  =>  p_cmbnd_max_val
85       ,p_ordr_num                       =>  p_ordr_num
86       ,p_business_group_id              =>  p_business_group_id
87       ,p_cla_attribute_category         =>  p_cla_attribute_category
88       ,p_cla_attribute1                 =>  p_cla_attribute1
89       ,p_cla_attribute2                 =>  p_cla_attribute2
90       ,p_cla_attribute3                 =>  p_cla_attribute3
91       ,p_cla_attribute4                 =>  p_cla_attribute4
92       ,p_cla_attribute5                 =>  p_cla_attribute5
93       ,p_cla_attribute6                 =>  p_cla_attribute6
94       ,p_cla_attribute7                 =>  p_cla_attribute7
95       ,p_cla_attribute8                 =>  p_cla_attribute8
96       ,p_cla_attribute9                 =>  p_cla_attribute9
97       ,p_cla_attribute10                =>  p_cla_attribute10
98       ,p_cla_attribute11                =>  p_cla_attribute11
99       ,p_cla_attribute12                =>  p_cla_attribute12
100       ,p_cla_attribute13                =>  p_cla_attribute13
101       ,p_cla_attribute14                =>  p_cla_attribute14
102       ,p_cla_attribute15                =>  p_cla_attribute15
103       ,p_cla_attribute16                =>  p_cla_attribute16
104       ,p_cla_attribute17                =>  p_cla_attribute17
105       ,p_cla_attribute18                =>  p_cla_attribute18
106       ,p_cla_attribute19                =>  p_cla_attribute19
107       ,p_cla_attribute20                =>  p_cla_attribute20
108       ,p_cla_attribute21                =>  p_cla_attribute21
109       ,p_cla_attribute22                =>  p_cla_attribute22
110       ,p_cla_attribute23                =>  p_cla_attribute23
111       ,p_cla_attribute24                =>  p_cla_attribute24
112       ,p_cla_attribute25                =>  p_cla_attribute25
113       ,p_cla_attribute26                =>  p_cla_attribute26
114       ,p_cla_attribute27                =>  p_cla_attribute27
115       ,p_cla_attribute28                =>  p_cla_attribute28
116       ,p_cla_attribute29                =>  p_cla_attribute29
117       ,p_cla_attribute30                =>  p_cla_attribute30
118       );
119   exception
120     when hr_api.cannot_find_prog_unit then
121       hr_api.cannot_find_prog_unit_error
122         (
123          p_module_name => 'CREATE_cmbn_age_los_fctr'
124         ,p_hook_type   => 'BP'
125         );
126     --
127     -- End of API User Hook for the before hook of create_cmbn_age_los_fctr
128     --
129   end;
130   --
131   ben_cla_ins.ins
132     (
133      p_cmbn_age_los_fctr_id          => l_cmbn_age_los_fctr_id
134     ,p_name                          => p_name
135     ,p_los_fctr_id                   => p_los_fctr_id
136     ,p_age_fctr_id                   => p_age_fctr_id
137     ,p_cmbnd_min_val                 => p_cmbnd_min_val
138     ,p_cmbnd_max_val                 => p_cmbnd_max_val
139     ,p_ordr_num                      => p_ordr_num
140     ,p_business_group_id             => p_business_group_id
141     ,p_cla_attribute_category        => p_cla_attribute_category
142     ,p_cla_attribute1                => p_cla_attribute1
143     ,p_cla_attribute2                => p_cla_attribute2
144     ,p_cla_attribute3                => p_cla_attribute3
145     ,p_cla_attribute4                => p_cla_attribute4
146     ,p_cla_attribute5                => p_cla_attribute5
147     ,p_cla_attribute6                => p_cla_attribute6
148     ,p_cla_attribute7                => p_cla_attribute7
149     ,p_cla_attribute8                => p_cla_attribute8
150     ,p_cla_attribute9                => p_cla_attribute9
151     ,p_cla_attribute10               => p_cla_attribute10
152     ,p_cla_attribute11               => p_cla_attribute11
153     ,p_cla_attribute12               => p_cla_attribute12
154     ,p_cla_attribute13               => p_cla_attribute13
155     ,p_cla_attribute14               => p_cla_attribute14
156     ,p_cla_attribute15               => p_cla_attribute15
157     ,p_cla_attribute16               => p_cla_attribute16
158     ,p_cla_attribute17               => p_cla_attribute17
159     ,p_cla_attribute18               => p_cla_attribute18
160     ,p_cla_attribute19               => p_cla_attribute19
161     ,p_cla_attribute20               => p_cla_attribute20
162     ,p_cla_attribute21               => p_cla_attribute21
163     ,p_cla_attribute22               => p_cla_attribute22
164     ,p_cla_attribute23               => p_cla_attribute23
165     ,p_cla_attribute24               => p_cla_attribute24
166     ,p_cla_attribute25               => p_cla_attribute25
167     ,p_cla_attribute26               => p_cla_attribute26
168     ,p_cla_attribute27               => p_cla_attribute27
169     ,p_cla_attribute28               => p_cla_attribute28
170     ,p_cla_attribute29               => p_cla_attribute29
171     ,p_cla_attribute30               => p_cla_attribute30
172     ,p_object_version_number         => l_object_version_number
173     );
174   --
175   begin
176     --
177     -- Start of API User Hook for the after hook of create_cmbn_age_los_fctr
178     --
179     ben_cmbn_age_los_fctr_bk1.create_cmbn_age_los_fctr_a
180       (
181        p_cmbn_age_los_fctr_id           =>  l_cmbn_age_los_fctr_id
182       ,p_name                           =>  p_name
183       ,p_los_fctr_id                    =>  p_los_fctr_id
184       ,p_age_fctr_id                    =>  p_age_fctr_id
185       ,p_cmbnd_min_val                  =>  p_cmbnd_min_val
186       ,p_cmbnd_max_val                  =>  p_cmbnd_max_val
187       ,p_ordr_num                       =>  p_ordr_num
188       ,p_business_group_id              =>  p_business_group_id
189       ,p_cla_attribute_category         =>  p_cla_attribute_category
190       ,p_cla_attribute1                 =>  p_cla_attribute1
191       ,p_cla_attribute2                 =>  p_cla_attribute2
192       ,p_cla_attribute3                 =>  p_cla_attribute3
193       ,p_cla_attribute4                 =>  p_cla_attribute4
194       ,p_cla_attribute5                 =>  p_cla_attribute5
195       ,p_cla_attribute6                 =>  p_cla_attribute6
196       ,p_cla_attribute7                 =>  p_cla_attribute7
197       ,p_cla_attribute8                 =>  p_cla_attribute8
198       ,p_cla_attribute9                 =>  p_cla_attribute9
199       ,p_cla_attribute10                =>  p_cla_attribute10
200       ,p_cla_attribute11                =>  p_cla_attribute11
201       ,p_cla_attribute12                =>  p_cla_attribute12
202       ,p_cla_attribute13                =>  p_cla_attribute13
203       ,p_cla_attribute14                =>  p_cla_attribute14
204       ,p_cla_attribute15                =>  p_cla_attribute15
205       ,p_cla_attribute16                =>  p_cla_attribute16
206       ,p_cla_attribute17                =>  p_cla_attribute17
207       ,p_cla_attribute18                =>  p_cla_attribute18
208       ,p_cla_attribute19                =>  p_cla_attribute19
209       ,p_cla_attribute20                =>  p_cla_attribute20
210       ,p_cla_attribute21                =>  p_cla_attribute21
211       ,p_cla_attribute22                =>  p_cla_attribute22
212       ,p_cla_attribute23                =>  p_cla_attribute23
213       ,p_cla_attribute24                =>  p_cla_attribute24
214       ,p_cla_attribute25                =>  p_cla_attribute25
215       ,p_cla_attribute26                =>  p_cla_attribute26
216       ,p_cla_attribute27                =>  p_cla_attribute27
217       ,p_cla_attribute28                =>  p_cla_attribute28
218       ,p_cla_attribute29                =>  p_cla_attribute29
219       ,p_cla_attribute30                =>  p_cla_attribute30
220       ,p_object_version_number          =>  l_object_version_number
221       );
222   exception
223     when hr_api.cannot_find_prog_unit then
224       hr_api.cannot_find_prog_unit_error
225         (p_module_name => 'CREATE_cmbn_age_los_fctr'
226         ,p_hook_type   => 'AP'
227         );
228     --
229     -- End of API User Hook for the after hook of create_cmbn_age_los_fctr
230     --
231   end;
232   --
233   hr_utility.set_location(l_proc, 60);
234   --
235   -- When in validation only mode raise the Validate_Enabled exception
236   --
237   if p_validate then
238     raise hr_api.validate_enabled;
239   end if;
240   --
241   -- Set all output arguments
242   --
243   p_cmbn_age_los_fctr_id := l_cmbn_age_los_fctr_id;
244   p_object_version_number := l_object_version_number;
245   --
246   hr_utility.set_location(' Leaving:'||l_proc, 70);
247   --
248 exception
249   --
250   when hr_api.validate_enabled then
251     --
252     -- As the Validate_Enabled exception has been raised
253     -- we must rollback to the savepoint
254     --
255     ROLLBACK TO create_cmbn_age_los_fctr;
256     --
257     -- Only set output warning arguments
258     -- (Any key or derived arguments must be set to null
259     -- when validation only mode is being used.)
260     --
261     p_cmbn_age_los_fctr_id := null;
262     p_object_version_number  := null;
263     hr_utility.set_location(' Leaving:'||l_proc, 80);
264     --
265   when others then
266     --
267     -- A validation or unexpected error has occured
268     --
269     ROLLBACK TO create_cmbn_age_los_fctr;
270 
271     p_cmbn_age_los_fctr_id := null;
272     p_object_version_number  := null;
273     raise;
274     --
275 end create_cmbn_age_los_fctr;
276 -- ----------------------------------------------------------------------------
277 -- |------------------------< update_cmbn_age_los_fctr >--- ------------------|
278 -- ----------------------------------------------------------------------------
279 --
280 procedure update_cmbn_age_los_fctr
281   (p_validate                       in  boolean   default false
282   ,p_cmbn_age_los_fctr_id           in  number
283   ,p_name                           in  varchar2  default hr_api.g_varchar2
284   ,p_los_fctr_id                    in  number    default hr_api.g_number
285   ,p_age_fctr_id                    in  number    default hr_api.g_number
286   ,p_cmbnd_min_val                  in  number    default hr_api.g_number
287   ,p_cmbnd_max_val                  in  number    default hr_api.g_number
288   ,p_ordr_num                       in  number    default hr_api.g_number
289   ,p_business_group_id              in  number    default hr_api.g_number
290   ,p_cla_attribute_category         in  varchar2  default hr_api.g_varchar2
291   ,p_cla_attribute1                 in  varchar2  default hr_api.g_varchar2
292   ,p_cla_attribute2                 in  varchar2  default hr_api.g_varchar2
293   ,p_cla_attribute3                 in  varchar2  default hr_api.g_varchar2
294   ,p_cla_attribute4                 in  varchar2  default hr_api.g_varchar2
295   ,p_cla_attribute5                 in  varchar2  default hr_api.g_varchar2
296   ,p_cla_attribute6                 in  varchar2  default hr_api.g_varchar2
297   ,p_cla_attribute7                 in  varchar2  default hr_api.g_varchar2
298   ,p_cla_attribute8                 in  varchar2  default hr_api.g_varchar2
299   ,p_cla_attribute9                 in  varchar2  default hr_api.g_varchar2
300   ,p_cla_attribute10                in  varchar2  default hr_api.g_varchar2
301   ,p_cla_attribute11                in  varchar2  default hr_api.g_varchar2
302   ,p_cla_attribute12                in  varchar2  default hr_api.g_varchar2
303   ,p_cla_attribute13                in  varchar2  default hr_api.g_varchar2
304   ,p_cla_attribute14                in  varchar2  default hr_api.g_varchar2
305   ,p_cla_attribute15                in  varchar2  default hr_api.g_varchar2
306   ,p_cla_attribute16                in  varchar2  default hr_api.g_varchar2
307   ,p_cla_attribute17                in  varchar2  default hr_api.g_varchar2
308   ,p_cla_attribute18                in  varchar2  default hr_api.g_varchar2
309   ,p_cla_attribute19                in  varchar2  default hr_api.g_varchar2
310   ,p_cla_attribute20                in  varchar2  default hr_api.g_varchar2
311   ,p_cla_attribute21                in  varchar2  default hr_api.g_varchar2
312   ,p_cla_attribute22                in  varchar2  default hr_api.g_varchar2
313   ,p_cla_attribute23                in  varchar2  default hr_api.g_varchar2
314   ,p_cla_attribute24                in  varchar2  default hr_api.g_varchar2
315   ,p_cla_attribute25                in  varchar2  default hr_api.g_varchar2
316   ,p_cla_attribute26                in  varchar2  default hr_api.g_varchar2
317   ,p_cla_attribute27                in  varchar2  default hr_api.g_varchar2
318   ,p_cla_attribute28                in  varchar2  default hr_api.g_varchar2
319   ,p_cla_attribute29                in  varchar2  default hr_api.g_varchar2
320   ,p_cla_attribute30                in  varchar2  default hr_api.g_varchar2
321   ,p_object_version_number          in out nocopy number
322   ) is
323   --
324   -- Declare cursors and local variables
325   --
326   l_proc varchar2(72) := g_package||'update_cmbn_age_los_fctr';
327   l_object_version_number ben_cmbn_age_los_fctr.object_version_number%TYPE;
328   l_in_object_version_number  number  := p_object_version_number ;
329   --
330 begin
331   --
332   hr_utility.set_location('Entering:'|| l_proc, 10);
333   --
334   -- Issue a savepoint if operating in validation only mode
335   --
336   savepoint update_cmbn_age_los_fctr;
337   --
338   hr_utility.set_location(l_proc, 20);
339   --
340   -- Process Logic
341   --
342   l_object_version_number := p_object_version_number;
343   --
344   begin
345     --
346     -- Start of API User Hook for the before hook of update_cmbn_age_los_fctr
347     --
348     ben_cmbn_age_los_fctr_bk2.update_cmbn_age_los_fctr_b
349       (
350        p_cmbn_age_los_fctr_id           =>  p_cmbn_age_los_fctr_id
351       ,p_name                           =>  p_name
352       ,p_los_fctr_id                    =>  p_los_fctr_id
353       ,p_age_fctr_id                    =>  p_age_fctr_id
354       ,p_cmbnd_min_val                  =>  p_cmbnd_min_val
355       ,p_cmbnd_max_val                  =>  p_cmbnd_max_val
356       ,p_ordr_num                       =>  p_ordr_num
357       ,p_business_group_id              =>  p_business_group_id
358       ,p_cla_attribute_category         =>  p_cla_attribute_category
359       ,p_cla_attribute1                 =>  p_cla_attribute1
360       ,p_cla_attribute2                 =>  p_cla_attribute2
361       ,p_cla_attribute3                 =>  p_cla_attribute3
362       ,p_cla_attribute4                 =>  p_cla_attribute4
363       ,p_cla_attribute5                 =>  p_cla_attribute5
364       ,p_cla_attribute6                 =>  p_cla_attribute6
365       ,p_cla_attribute7                 =>  p_cla_attribute7
366       ,p_cla_attribute8                 =>  p_cla_attribute8
367       ,p_cla_attribute9                 =>  p_cla_attribute9
368       ,p_cla_attribute10                =>  p_cla_attribute10
369       ,p_cla_attribute11                =>  p_cla_attribute11
370       ,p_cla_attribute12                =>  p_cla_attribute12
371       ,p_cla_attribute13                =>  p_cla_attribute13
372       ,p_cla_attribute14                =>  p_cla_attribute14
373       ,p_cla_attribute15                =>  p_cla_attribute15
374       ,p_cla_attribute16                =>  p_cla_attribute16
375       ,p_cla_attribute17                =>  p_cla_attribute17
376       ,p_cla_attribute18                =>  p_cla_attribute18
377       ,p_cla_attribute19                =>  p_cla_attribute19
378       ,p_cla_attribute20                =>  p_cla_attribute20
379       ,p_cla_attribute21                =>  p_cla_attribute21
380       ,p_cla_attribute22                =>  p_cla_attribute22
381       ,p_cla_attribute23                =>  p_cla_attribute23
382       ,p_cla_attribute24                =>  p_cla_attribute24
383       ,p_cla_attribute25                =>  p_cla_attribute25
384       ,p_cla_attribute26                =>  p_cla_attribute26
385       ,p_cla_attribute27                =>  p_cla_attribute27
386       ,p_cla_attribute28                =>  p_cla_attribute28
387       ,p_cla_attribute29                =>  p_cla_attribute29
388       ,p_cla_attribute30                =>  p_cla_attribute30
389       ,p_object_version_number          =>  p_object_version_number
390       );
391   exception
392     when hr_api.cannot_find_prog_unit then
393       hr_api.cannot_find_prog_unit_error
394         (p_module_name => 'UPDATE_cmbn_age_los_fctr'
395         ,p_hook_type   => 'BP'
396         );
397     --
398     -- End of API User Hook for the before hook of update_cmbn_age_los_fctr
399     --
400   end;
401   --
402   ben_cla_upd.upd
403     (
404      p_cmbn_age_los_fctr_id          => p_cmbn_age_los_fctr_id
405     ,p_name                          => p_name
406     ,p_los_fctr_id                   => p_los_fctr_id
407     ,p_age_fctr_id                   => p_age_fctr_id
408     ,p_cmbnd_min_val                 => p_cmbnd_min_val
409     ,p_cmbnd_max_val                 => p_cmbnd_max_val
410     ,p_ordr_num                      => p_ordr_num
411     ,p_business_group_id             => p_business_group_id
412     ,p_cla_attribute_category        => p_cla_attribute_category
413     ,p_cla_attribute1                => p_cla_attribute1
414     ,p_cla_attribute2                => p_cla_attribute2
415     ,p_cla_attribute3                => p_cla_attribute3
416     ,p_cla_attribute4                => p_cla_attribute4
417     ,p_cla_attribute5                => p_cla_attribute5
418     ,p_cla_attribute6                => p_cla_attribute6
419     ,p_cla_attribute7                => p_cla_attribute7
420     ,p_cla_attribute8                => p_cla_attribute8
421     ,p_cla_attribute9                => p_cla_attribute9
422     ,p_cla_attribute10               => p_cla_attribute10
423     ,p_cla_attribute11               => p_cla_attribute11
424     ,p_cla_attribute12               => p_cla_attribute12
425     ,p_cla_attribute13               => p_cla_attribute13
426     ,p_cla_attribute14               => p_cla_attribute14
427     ,p_cla_attribute15               => p_cla_attribute15
428     ,p_cla_attribute16               => p_cla_attribute16
429     ,p_cla_attribute17               => p_cla_attribute17
430     ,p_cla_attribute18               => p_cla_attribute18
431     ,p_cla_attribute19               => p_cla_attribute19
432     ,p_cla_attribute20               => p_cla_attribute20
433     ,p_cla_attribute21               => p_cla_attribute21
434     ,p_cla_attribute22               => p_cla_attribute22
435     ,p_cla_attribute23               => p_cla_attribute23
436     ,p_cla_attribute24               => p_cla_attribute24
437     ,p_cla_attribute25               => p_cla_attribute25
438     ,p_cla_attribute26               => p_cla_attribute26
439     ,p_cla_attribute27               => p_cla_attribute27
440     ,p_cla_attribute28               => p_cla_attribute28
441     ,p_cla_attribute29               => p_cla_attribute29
442     ,p_cla_attribute30               => p_cla_attribute30
443     ,p_object_version_number         => l_object_version_number
444     );
445   --
446   begin
447     --
448     -- Start of API User Hook for the after hook of update_cmbn_age_los_fctr
449     --
450     ben_cmbn_age_los_fctr_bk2.update_cmbn_age_los_fctr_a
451       (
452        p_cmbn_age_los_fctr_id           =>  p_cmbn_age_los_fctr_id
453       ,p_name                           =>  p_name
454       ,p_los_fctr_id                    =>  p_los_fctr_id
455       ,p_age_fctr_id                    =>  p_age_fctr_id
456       ,p_cmbnd_min_val                  =>  p_cmbnd_min_val
457       ,p_cmbnd_max_val                  =>  p_cmbnd_max_val
458       ,p_ordr_num                       =>  p_ordr_num
459       ,p_business_group_id              =>  p_business_group_id
460       ,p_cla_attribute_category         =>  p_cla_attribute_category
461       ,p_cla_attribute1                 =>  p_cla_attribute1
462       ,p_cla_attribute2                 =>  p_cla_attribute2
463       ,p_cla_attribute3                 =>  p_cla_attribute3
464       ,p_cla_attribute4                 =>  p_cla_attribute4
465       ,p_cla_attribute5                 =>  p_cla_attribute5
466       ,p_cla_attribute6                 =>  p_cla_attribute6
467       ,p_cla_attribute7                 =>  p_cla_attribute7
468       ,p_cla_attribute8                 =>  p_cla_attribute8
469       ,p_cla_attribute9                 =>  p_cla_attribute9
470       ,p_cla_attribute10                =>  p_cla_attribute10
471       ,p_cla_attribute11                =>  p_cla_attribute11
472       ,p_cla_attribute12                =>  p_cla_attribute12
473       ,p_cla_attribute13                =>  p_cla_attribute13
474       ,p_cla_attribute14                =>  p_cla_attribute14
475       ,p_cla_attribute15                =>  p_cla_attribute15
476       ,p_cla_attribute16                =>  p_cla_attribute16
477       ,p_cla_attribute17                =>  p_cla_attribute17
478       ,p_cla_attribute18                =>  p_cla_attribute18
479       ,p_cla_attribute19                =>  p_cla_attribute19
480       ,p_cla_attribute20                =>  p_cla_attribute20
481       ,p_cla_attribute21                =>  p_cla_attribute21
482       ,p_cla_attribute22                =>  p_cla_attribute22
483       ,p_cla_attribute23                =>  p_cla_attribute23
484       ,p_cla_attribute24                =>  p_cla_attribute24
485       ,p_cla_attribute25                =>  p_cla_attribute25
486       ,p_cla_attribute26                =>  p_cla_attribute26
487       ,p_cla_attribute27                =>  p_cla_attribute27
488       ,p_cla_attribute28                =>  p_cla_attribute28
489       ,p_cla_attribute29                =>  p_cla_attribute29
490       ,p_cla_attribute30                =>  p_cla_attribute30
491       ,p_object_version_number          =>  l_object_version_number
492       );
493   exception
494     when hr_api.cannot_find_prog_unit then
495       hr_api.cannot_find_prog_unit_error
496         (p_module_name => 'UPDATE_cmbn_age_los_fctr'
497         ,p_hook_type   => 'AP'
498         );
499     --
500     -- End of API User Hook for the after hook of update_cmbn_age_los_fctr
501     --
502   end;
503   --
504   hr_utility.set_location(l_proc, 60);
505   --
506   -- When in validation only mode raise the Validate_Enabled exception
507   --
508   if p_validate then
509     raise hr_api.validate_enabled;
510   end if;
511   --
512   -- Set all output arguments
513   --
514   p_object_version_number := l_object_version_number;
515   --
516   hr_utility.set_location(' Leaving:'||l_proc, 70);
517   --
518 exception
519   --
520   when hr_api.validate_enabled then
521     --
522     -- As the Validate_Enabled exception has been raised
523     -- we must rollback to the savepoint
524     --
525     ROLLBACK TO update_cmbn_age_los_fctr;
526     --
527     -- Only set output warning arguments
528     -- (Any key or derived arguments must be set to null
529     -- when validation only mode is being used.)
530     --
531     hr_utility.set_location(' Leaving:'||l_proc, 80);
532     --
533   when others then
534     --
535     -- A validation or unexpected error has occured
536     p_object_version_number := l_in_object_version_number ;
537     --
538     ROLLBACK TO update_cmbn_age_los_fctr;
539     raise;
540     --
541 end update_cmbn_age_los_fctr;
542 -- ----------------------------------------------------------------------------
543 -- |------------------------< delete_cmbn_age_los_fctr >----------------------|
544 -- ----------------------------------------------------------------------------
545 --
546 procedure delete_cmbn_age_los_fctr
547   (p_validate                       in  boolean  default false
548   ,p_cmbn_age_los_fctr_id           in  number
549   ,p_object_version_number          in out nocopy number
550   ) is
551   --
552   -- Declare cursors and local variables
553   --
554   l_proc varchar2(72) := g_package||'update_cmbn_age_los_fctr';
555   l_object_version_number ben_cmbn_age_los_fctr.object_version_number%TYPE;
556   l_in_object_version_number  number  := p_object_version_number ;
557   --
558 begin
559   --
560   hr_utility.set_location('Entering:'|| l_proc, 10);
561   --
562   -- Issue a savepoint if operating in validation only mode
563   --
564   savepoint delete_cmbn_age_los_fctr;
565   --
566   hr_utility.set_location(l_proc, 20);
567   --
568   -- Process Logic
569   --
570   l_object_version_number := p_object_version_number;
571   --
572   --
573   begin
574     --
575     -- Start of API User Hook for the before hook of delete_cmbn_age_los_fctr
576     --
577     ben_cmbn_age_los_fctr_bk3.delete_cmbn_age_los_fctr_b
578       (
579        p_cmbn_age_los_fctr_id           =>  p_cmbn_age_los_fctr_id
580       ,p_object_version_number          =>  p_object_version_number
581       );
582   exception
583     when hr_api.cannot_find_prog_unit then
584       hr_api.cannot_find_prog_unit_error
585         (p_module_name => 'DELETE_cmbn_age_los_fctr'
586         ,p_hook_type   => 'BP'
587         );
588     --
589     -- End of API User Hook for the before hook of delete_cmbn_age_los_fctr
590     --
591   end;
592   --
593   ben_cla_del.del
594     (
595      p_cmbn_age_los_fctr_id          => p_cmbn_age_los_fctr_id
596     ,p_object_version_number         => l_object_version_number
597     );
598   --
599   begin
600     --
601     -- Start of API User Hook for the after hook of delete_cmbn_age_los_fctr
602     --
603     ben_cmbn_age_los_fctr_bk3.delete_cmbn_age_los_fctr_a
604       (
605        p_cmbn_age_los_fctr_id           =>  p_cmbn_age_los_fctr_id
606       ,p_object_version_number          =>  l_object_version_number
607       );
608   exception
609     when hr_api.cannot_find_prog_unit then
610       hr_api.cannot_find_prog_unit_error
611         (p_module_name => 'DELETE_cmbn_age_los_fctr'
612         ,p_hook_type   => 'AP'
613         );
614     --
615     -- End of API User Hook for the after hook of delete_cmbn_age_los_fctr
616     --
617   end;
618   --
619   hr_utility.set_location(l_proc, 60);
620   --
621   -- When in validation only mode raise the Validate_Enabled exception
622   --
623   if p_validate then
624     raise hr_api.validate_enabled;
625   end if;
626   --
627   hr_utility.set_location(' Leaving:'||l_proc, 70);
628   --
629 exception
630   --
631   when hr_api.validate_enabled then
632     --
633     -- As the Validate_Enabled exception has been raised
634     -- we must rollback to the savepoint
635     --
636     ROLLBACK TO delete_cmbn_age_los_fctr;
637     --
638     -- Only set output warning arguments
639     -- (Any key or derived arguments must be set to null
640     -- when validation only mode is being used.)
641     --
642     --
643   when others then
644     --
645     -- A validation or unexpected error has occured
646     p_object_version_number := l_in_object_version_number ;
647     --
648     ROLLBACK TO delete_cmbn_age_los_fctr;
649     raise;
650     --
651 end delete_cmbn_age_los_fctr;
652 --
653 -- ----------------------------------------------------------------------------
654 -- |-------------------------------< lck >------------------------------------|
655 -- ----------------------------------------------------------------------------
656 --
657 procedure lck
658   (
659    p_cmbn_age_los_fctr_id                   in     number
660   ,p_object_version_number          in     number
661   ) is
662   --
663   --
664   -- Declare cursors and local variables
665   --
666   l_proc varchar2(72) := g_package||'lck';
667   --
668 begin
669   --
670   hr_utility.set_location('Entering:'|| l_proc, 10);
671   --
672   ben_cla_shd.lck
673     (
674       p_cmbn_age_los_fctr_id                 => p_cmbn_age_los_fctr_id
675      ,p_object_version_number      => p_object_version_number
676     );
677   --
678   hr_utility.set_location(' Leaving:'||l_proc, 70);
679   --
680 end lck;
681 --
682 end ben_cmbn_age_los_fctr_api;