DBA Data[Home] [Help]

PACKAGE BODY: APPS.BEN_ELIGY_JOB_PRTE_API

Source


1 Package Body ben_ELIGY_JOB_PRTE_api as
2 /* $Header: beejpapi.pkb 120.0 2005/05/28 02:16:59 appldev noship $ */
3 --
4 -- Package Variables
5 --
6 g_package  varchar2(33) := '  ben_ELIGY_JOB_PRTE_api.';
7 --
8 -- ----------------------------------------------------------------------------
9 -- |------------------------< create_ELIGY_JOB_PRTE >----------------------|
10 -- ----------------------------------------------------------------------------
11 --
12 procedure create_ELIGY_JOB_PRTE
13   (p_validate                       in  boolean   default false
14   ,p_elig_job_prte_id               out nocopy number
15   ,p_effective_start_date           out nocopy date
16   ,p_effective_end_date             out nocopy date
17   ,p_ordr_num                       in  number    default null
18   ,p_excld_flag                     in  varchar2  default null
19   ,p_job_id                         in  number    default null
20   ,p_eligy_prfl_id                  in  number    default null
21   ,p_business_group_id              in  number    default null
22   ,p_ejp_attribute_category         in  varchar2  default null
23   ,p_ejp_attribute1                 in  varchar2  default null
24   ,p_ejp_attribute2                 in  varchar2  default null
25   ,p_ejp_attribute3                 in  varchar2  default null
26   ,p_ejp_attribute4                 in  varchar2  default null
27   ,p_ejp_attribute5                 in  varchar2  default null
28   ,p_ejp_attribute6                 in  varchar2  default null
29   ,p_ejp_attribute7                 in  varchar2  default null
30   ,p_ejp_attribute8                 in  varchar2  default null
31   ,p_ejp_attribute9                 in  varchar2  default null
32   ,p_ejp_attribute10                in  varchar2  default null
33   ,p_ejp_attribute11                in  varchar2  default null
34   ,p_ejp_attribute12                in  varchar2  default null
35   ,p_ejp_attribute13                in  varchar2  default null
36   ,p_ejp_attribute14                in  varchar2  default null
37   ,p_ejp_attribute15                in  varchar2  default null
38   ,p_ejp_attribute16                in  varchar2  default null
39   ,p_ejp_attribute17                in  varchar2  default null
40   ,p_ejp_attribute18                in  varchar2  default null
41   ,p_ejp_attribute19                in  varchar2  default null
42   ,p_ejp_attribute20                in  varchar2  default null
43   ,p_ejp_attribute21                in  varchar2  default null
44   ,p_ejp_attribute22                in  varchar2  default null
45   ,p_ejp_attribute23                in  varchar2  default null
46   ,p_ejp_attribute24                in  varchar2  default null
47   ,p_ejp_attribute25                in  varchar2  default null
48   ,p_ejp_attribute26                in  varchar2  default null
49   ,p_ejp_attribute27                in  varchar2  default null
50   ,p_ejp_attribute28                in  varchar2  default null
51   ,p_ejp_attribute29                in  varchar2  default null
52   ,p_ejp_attribute30                in  varchar2  default null
53   ,p_object_version_number          out nocopy number
54   ,p_effective_date                 in  date
55   ,p_criteria_score                 in number     default null
56   ,p_criteria_weight                in  number    default null
57   ) is
58   --
59   -- Declare cursors and local variables
60   --
61   l_elig_job_prte_id ben_elig_job_prte_f.elig_job_prte_id%TYPE;
62   l_effective_start_date ben_elig_job_prte_f.effective_start_date%TYPE;
63   l_effective_end_date ben_elig_job_prte_f.effective_end_date%TYPE;
64   l_proc varchar2(72) := g_package||'create_ELIGY_JOB_PRTE';
65   l_object_version_number ben_elig_job_prte_f.object_version_number%TYPE;
66   --
67 begin
68   --
69   hr_utility.set_location('Entering:'|| l_proc, 10);
70   --
71   -- Issue a savepoint if operating in validation only mode
72   --
73   savepoint create_ELIGY_JOB_PRTE;
74   --
75   hr_utility.set_location(l_proc, 20);
76   --
77   -- Process Logic
78   --
79   begin
80     --
81     -- Start of API User Hook for the before hook of create_ELIGY_JOB_PRTE
82     --
83     ben_ELIGY_JOB_PRTE_bk1.create_ELIGY_JOB_PRTE_b
84       (
85        p_ordr_num                       =>  p_ordr_num
86       ,p_excld_flag                     =>  p_excld_flag
87       ,p_job_id                         =>  p_job_id
88       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
89       ,p_business_group_id              =>  p_business_group_id
90       ,p_ejp_attribute_category         =>  p_ejp_attribute_category
91       ,p_ejp_attribute1                 =>  p_ejp_attribute1
92       ,p_ejp_attribute2                 =>  p_ejp_attribute2
93       ,p_ejp_attribute3                 =>  p_ejp_attribute3
94       ,p_ejp_attribute4                 =>  p_ejp_attribute4
95       ,p_ejp_attribute5                 =>  p_ejp_attribute5
96       ,p_ejp_attribute6                 =>  p_ejp_attribute6
97       ,p_ejp_attribute7                 =>  p_ejp_attribute7
98       ,p_ejp_attribute8                 =>  p_ejp_attribute8
99       ,p_ejp_attribute9                 =>  p_ejp_attribute9
100       ,p_ejp_attribute10                =>  p_ejp_attribute10
101       ,p_ejp_attribute11                =>  p_ejp_attribute11
102       ,p_ejp_attribute12                =>  p_ejp_attribute12
103       ,p_ejp_attribute13                =>  p_ejp_attribute13
104       ,p_ejp_attribute14                =>  p_ejp_attribute14
105       ,p_ejp_attribute15                =>  p_ejp_attribute15
106       ,p_ejp_attribute16                =>  p_ejp_attribute16
107       ,p_ejp_attribute17                =>  p_ejp_attribute17
108       ,p_ejp_attribute18                =>  p_ejp_attribute18
109       ,p_ejp_attribute19                =>  p_ejp_attribute19
110       ,p_ejp_attribute20                =>  p_ejp_attribute20
111       ,p_ejp_attribute21                =>  p_ejp_attribute21
112       ,p_ejp_attribute22                =>  p_ejp_attribute22
113       ,p_ejp_attribute23                =>  p_ejp_attribute23
114       ,p_ejp_attribute24                =>  p_ejp_attribute24
115       ,p_ejp_attribute25                =>  p_ejp_attribute25
116       ,p_ejp_attribute26                =>  p_ejp_attribute26
117       ,p_ejp_attribute27                =>  p_ejp_attribute27
118       ,p_ejp_attribute28                =>  p_ejp_attribute28
119       ,p_ejp_attribute29                =>  p_ejp_attribute29
120       ,p_ejp_attribute30                =>  p_ejp_attribute30
121       ,p_effective_date                 => trunc(p_effective_date)
122       ,p_criteria_score                 =>  p_criteria_score
123       ,p_criteria_weight                =>  p_criteria_weight
124       );
125   exception
126     when hr_api.cannot_find_prog_unit then
127       hr_api.cannot_find_prog_unit_error
128         (
129          p_module_name => 'CREATE_ELIGY_JOB_PRTE'
130         ,p_hook_type   => 'BP'
131         );
132     --
133     -- End of API User Hook for the before hook of create_ELIGY_JOB_PRTE
134     --
135   end;
136   --
137   ben_ejp_ins.ins
138     (
139      p_elig_job_prte_id              => l_elig_job_prte_id
140     ,p_effective_start_date          => l_effective_start_date
141     ,p_effective_end_date            => l_effective_end_date
142     ,p_ordr_num                      => p_ordr_num
143     ,p_excld_flag                    => p_excld_flag
144     ,p_job_id                        => p_job_id
145     ,p_eligy_prfl_id                 => p_eligy_prfl_id
146     ,p_business_group_id             => p_business_group_id
147     ,p_ejp_attribute_category        => p_ejp_attribute_category
148     ,p_ejp_attribute1                => p_ejp_attribute1
149     ,p_ejp_attribute2                => p_ejp_attribute2
150     ,p_ejp_attribute3                => p_ejp_attribute3
151     ,p_ejp_attribute4                => p_ejp_attribute4
152     ,p_ejp_attribute5                => p_ejp_attribute5
153     ,p_ejp_attribute6                => p_ejp_attribute6
154     ,p_ejp_attribute7                => p_ejp_attribute7
155     ,p_ejp_attribute8                => p_ejp_attribute8
156     ,p_ejp_attribute9                => p_ejp_attribute9
157     ,p_ejp_attribute10               => p_ejp_attribute10
158     ,p_ejp_attribute11               => p_ejp_attribute11
159     ,p_ejp_attribute12               => p_ejp_attribute12
160     ,p_ejp_attribute13               => p_ejp_attribute13
161     ,p_ejp_attribute14               => p_ejp_attribute14
162     ,p_ejp_attribute15               => p_ejp_attribute15
163     ,p_ejp_attribute16               => p_ejp_attribute16
164     ,p_ejp_attribute17               => p_ejp_attribute17
165     ,p_ejp_attribute18               => p_ejp_attribute18
166     ,p_ejp_attribute19               => p_ejp_attribute19
167     ,p_ejp_attribute20               => p_ejp_attribute20
168     ,p_ejp_attribute21               => p_ejp_attribute21
169     ,p_ejp_attribute22               => p_ejp_attribute22
170     ,p_ejp_attribute23               => p_ejp_attribute23
171     ,p_ejp_attribute24               => p_ejp_attribute24
172     ,p_ejp_attribute25               => p_ejp_attribute25
173     ,p_ejp_attribute26               => p_ejp_attribute26
174     ,p_ejp_attribute27               => p_ejp_attribute27
175     ,p_ejp_attribute28               => p_ejp_attribute28
176     ,p_ejp_attribute29               => p_ejp_attribute29
177     ,p_ejp_attribute30               => p_ejp_attribute30
178     ,p_object_version_number         => l_object_version_number
179     ,p_effective_date                => trunc(p_effective_date)
180     ,p_criteria_score                =>  p_criteria_score
181     ,p_criteria_weight               =>  p_criteria_weight
182     );
183   --
184   begin
185     --
186     -- Start of API User Hook for the after hook of create_ELIGY_JOB_PRTE
187     --
188     ben_ELIGY_JOB_PRTE_bk1.create_ELIGY_JOB_PRTE_a
189       (
190        p_elig_job_prte_id               =>  l_elig_job_prte_id
191       ,p_effective_start_date           =>  l_effective_start_date
192       ,p_effective_end_date             =>  l_effective_end_date
193       ,p_ordr_num                       =>  p_ordr_num
194       ,p_excld_flag                     =>  p_excld_flag
195       ,p_job_id                         =>  p_job_id
196       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
197       ,p_business_group_id              =>  p_business_group_id
198       ,p_ejp_attribute_category         =>  p_ejp_attribute_category
199       ,p_ejp_attribute1                 =>  p_ejp_attribute1
200       ,p_ejp_attribute2                 =>  p_ejp_attribute2
201       ,p_ejp_attribute3                 =>  p_ejp_attribute3
202       ,p_ejp_attribute4                 =>  p_ejp_attribute4
203       ,p_ejp_attribute5                 =>  p_ejp_attribute5
204       ,p_ejp_attribute6                 =>  p_ejp_attribute6
205       ,p_ejp_attribute7                 =>  p_ejp_attribute7
206       ,p_ejp_attribute8                 =>  p_ejp_attribute8
207       ,p_ejp_attribute9                 =>  p_ejp_attribute9
208       ,p_ejp_attribute10                =>  p_ejp_attribute10
209       ,p_ejp_attribute11                =>  p_ejp_attribute11
210       ,p_ejp_attribute12                =>  p_ejp_attribute12
211       ,p_ejp_attribute13                =>  p_ejp_attribute13
212       ,p_ejp_attribute14                =>  p_ejp_attribute14
213       ,p_ejp_attribute15                =>  p_ejp_attribute15
214       ,p_ejp_attribute16                =>  p_ejp_attribute16
215       ,p_ejp_attribute17                =>  p_ejp_attribute17
216       ,p_ejp_attribute18                =>  p_ejp_attribute18
217       ,p_ejp_attribute19                =>  p_ejp_attribute19
218       ,p_ejp_attribute20                =>  p_ejp_attribute20
219       ,p_ejp_attribute21                =>  p_ejp_attribute21
220       ,p_ejp_attribute22                =>  p_ejp_attribute22
221       ,p_ejp_attribute23                =>  p_ejp_attribute23
222       ,p_ejp_attribute24                =>  p_ejp_attribute24
223       ,p_ejp_attribute25                =>  p_ejp_attribute25
224       ,p_ejp_attribute26                =>  p_ejp_attribute26
225       ,p_ejp_attribute27                =>  p_ejp_attribute27
226       ,p_ejp_attribute28                =>  p_ejp_attribute28
227       ,p_ejp_attribute29                =>  p_ejp_attribute29
228       ,p_ejp_attribute30                =>  p_ejp_attribute30
229       ,p_object_version_number          =>  l_object_version_number
230       ,p_effective_date                      => trunc(p_effective_date)
231       ,p_criteria_score                 =>  p_criteria_score
232       ,p_criteria_weight                =>  p_criteria_weight
233       );
234   exception
235     when hr_api.cannot_find_prog_unit then
236       hr_api.cannot_find_prog_unit_error
237         (p_module_name => 'CREATE_ELIGY_JOB_PRTE'
238         ,p_hook_type   => 'AP'
239         );
240     --
241     -- End of API User Hook for the after hook of create_ELIGY_JOB_PRTE
242     --
243   end;
244   --
245   ben_profile_handler.event_handler
246     (p_event                       => 'CREATE',
247      p_base_table                  => 'BEN_ELIGY_PRFL_F',
248      p_base_table_column           => 'ELIGY_PRFL_ID',
249      p_base_table_column_value     => p_eligy_prfl_id,
250      p_base_table_reference_column => 'ELIG_JOB_FLAG',
251      p_reference_table             => 'BEN_ELIG_JOB_PRTE_F',
252      p_reference_table_column      => 'ELIGY_PRFL_ID');
253   --
254   hr_utility.set_location(l_proc, 60);
255   --
256   -- When in validation only mode raise the Validate_Enabled exception
257   --
258   if p_validate then
259     raise hr_api.validate_enabled;
260   end if;
261   --
262   -- Set all output arguments
263   --
264   p_elig_job_prte_id := l_elig_job_prte_id;
265   p_effective_start_date := l_effective_start_date;
266   p_effective_end_date := l_effective_end_date;
267   p_object_version_number := l_object_version_number;
268   --
269   hr_utility.set_location(' Leaving:'||l_proc, 70);
270   --
271 exception
272   --
273   when hr_api.validate_enabled then
274     --
275     -- As the Validate_Enabled exception has been raised
276     -- we must rollback to the savepoint
277     --
278     ROLLBACK TO create_ELIGY_JOB_PRTE;
279     --
280     -- Only set output warning arguments
281     -- (Any key or derived arguments must be set to null
282     -- when validation only mode is being used.)
283     --
284     p_elig_job_prte_id := null;
285     p_effective_start_date := null;
286     p_effective_end_date := null;
287     p_object_version_number  := null;
288     hr_utility.set_location(' Leaving:'||l_proc, 80);
289     --
290   when others then
291     --
292     p_elig_job_prte_id := null;
293     p_effective_start_date := null;
294     p_effective_end_date := null;
295     p_object_version_number  := null;
296     --
297     -- A validation or unexpected error has occured
298     --
299     ROLLBACK TO create_ELIGY_JOB_PRTE;
300     raise;
301     --
302 end create_ELIGY_JOB_PRTE;
303 -- ----------------------------------------------------------------------------
304 -- |------------------------< update_ELIGY_JOB_PRTE >--- ------------------|
305 -- ----------------------------------------------------------------------------
306 --
307 procedure update_ELIGY_JOB_PRTE
308   (p_validate                       in  boolean   default false
309   ,p_elig_job_prte_id               in  number
310   ,p_effective_start_date           out nocopy date
311   ,p_effective_end_date             out nocopy date
312   ,p_ordr_num                       in  number    default hr_api.g_number
313   ,p_excld_flag                     in  varchar2  default hr_api.g_varchar2
314   ,p_job_id                         in  number    default hr_api.g_number
315   ,p_eligy_prfl_id                  in  number    default hr_api.g_number
316   ,p_business_group_id              in  number    default hr_api.g_number
317   ,p_ejp_attribute_category         in  varchar2  default hr_api.g_varchar2
318   ,p_ejp_attribute1                 in  varchar2  default hr_api.g_varchar2
319   ,p_ejp_attribute2                 in  varchar2  default hr_api.g_varchar2
320   ,p_ejp_attribute3                 in  varchar2  default hr_api.g_varchar2
321   ,p_ejp_attribute4                 in  varchar2  default hr_api.g_varchar2
322   ,p_ejp_attribute5                 in  varchar2  default hr_api.g_varchar2
323   ,p_ejp_attribute6                 in  varchar2  default hr_api.g_varchar2
324   ,p_ejp_attribute7                 in  varchar2  default hr_api.g_varchar2
325   ,p_ejp_attribute8                 in  varchar2  default hr_api.g_varchar2
326   ,p_ejp_attribute9                 in  varchar2  default hr_api.g_varchar2
327   ,p_ejp_attribute10                in  varchar2  default hr_api.g_varchar2
328   ,p_ejp_attribute11                in  varchar2  default hr_api.g_varchar2
329   ,p_ejp_attribute12                in  varchar2  default hr_api.g_varchar2
330   ,p_ejp_attribute13                in  varchar2  default hr_api.g_varchar2
331   ,p_ejp_attribute14                in  varchar2  default hr_api.g_varchar2
332   ,p_ejp_attribute15                in  varchar2  default hr_api.g_varchar2
333   ,p_ejp_attribute16                in  varchar2  default hr_api.g_varchar2
334   ,p_ejp_attribute17                in  varchar2  default hr_api.g_varchar2
335   ,p_ejp_attribute18                in  varchar2  default hr_api.g_varchar2
336   ,p_ejp_attribute19                in  varchar2  default hr_api.g_varchar2
337   ,p_ejp_attribute20                in  varchar2  default hr_api.g_varchar2
338   ,p_ejp_attribute21                in  varchar2  default hr_api.g_varchar2
339   ,p_ejp_attribute22                in  varchar2  default hr_api.g_varchar2
340   ,p_ejp_attribute23                in  varchar2  default hr_api.g_varchar2
341   ,p_ejp_attribute24                in  varchar2  default hr_api.g_varchar2
342   ,p_ejp_attribute25                in  varchar2  default hr_api.g_varchar2
343   ,p_ejp_attribute26                in  varchar2  default hr_api.g_varchar2
344   ,p_ejp_attribute27                in  varchar2  default hr_api.g_varchar2
345   ,p_ejp_attribute28                in  varchar2  default hr_api.g_varchar2
346   ,p_ejp_attribute29                in  varchar2  default hr_api.g_varchar2
347   ,p_ejp_attribute30                in  varchar2  default hr_api.g_varchar2
348   ,p_object_version_number          in out nocopy number
349   ,p_effective_date                 in  date
350   ,p_datetrack_mode                 in  varchar2
351   ,p_criteria_score                 in number     default hr_api.g_number
352   ,p_criteria_weight                in  number    default hr_api.g_number
353   ) is
354   --
355   -- Declare cursors and local variables
356   --
357   l_proc varchar2(72) := g_package||'update_ELIGY_JOB_PRTE';
358   l_object_version_number ben_elig_job_prte_f.object_version_number%TYPE;
359   l_effective_start_date ben_elig_job_prte_f.effective_start_date%TYPE;
360   l_effective_end_date ben_elig_job_prte_f.effective_end_date%TYPE;
361   --
362 begin
363   --
364   hr_utility.set_location('Entering:'|| l_proc, 10);
365   --
366   -- Issue a savepoint if operating in validation only mode
367   --
368   savepoint update_ELIGY_JOB_PRTE;
369   --
370   hr_utility.set_location(l_proc, 20);
371   --
372   -- Process Logic
373   --
374   l_object_version_number := p_object_version_number;
375   --
376   begin
377     --
378     -- Start of API User Hook for the before hook of update_ELIGY_JOB_PRTE
379     --
380     ben_ELIGY_JOB_PRTE_bk2.update_ELIGY_JOB_PRTE_b
381       (
382        p_elig_job_prte_id               =>  p_elig_job_prte_id
383       ,p_ordr_num                       =>  p_ordr_num
384       ,p_excld_flag                     =>  p_excld_flag
385       ,p_job_id                         =>  p_job_id
386       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
387       ,p_business_group_id              =>  p_business_group_id
388       ,p_ejp_attribute_category         =>  p_ejp_attribute_category
389       ,p_ejp_attribute1                 =>  p_ejp_attribute1
390       ,p_ejp_attribute2                 =>  p_ejp_attribute2
391       ,p_ejp_attribute3                 =>  p_ejp_attribute3
392       ,p_ejp_attribute4                 =>  p_ejp_attribute4
393       ,p_ejp_attribute5                 =>  p_ejp_attribute5
394       ,p_ejp_attribute6                 =>  p_ejp_attribute6
395       ,p_ejp_attribute7                 =>  p_ejp_attribute7
396       ,p_ejp_attribute8                 =>  p_ejp_attribute8
397       ,p_ejp_attribute9                 =>  p_ejp_attribute9
398       ,p_ejp_attribute10                =>  p_ejp_attribute10
399       ,p_ejp_attribute11                =>  p_ejp_attribute11
400       ,p_ejp_attribute12                =>  p_ejp_attribute12
401       ,p_ejp_attribute13                =>  p_ejp_attribute13
402       ,p_ejp_attribute14                =>  p_ejp_attribute14
403       ,p_ejp_attribute15                =>  p_ejp_attribute15
404       ,p_ejp_attribute16                =>  p_ejp_attribute16
405       ,p_ejp_attribute17                =>  p_ejp_attribute17
406       ,p_ejp_attribute18                =>  p_ejp_attribute18
407       ,p_ejp_attribute19                =>  p_ejp_attribute19
408       ,p_ejp_attribute20                =>  p_ejp_attribute20
409       ,p_ejp_attribute21                =>  p_ejp_attribute21
410       ,p_ejp_attribute22                =>  p_ejp_attribute22
411       ,p_ejp_attribute23                =>  p_ejp_attribute23
412       ,p_ejp_attribute24                =>  p_ejp_attribute24
413       ,p_ejp_attribute25                =>  p_ejp_attribute25
414       ,p_ejp_attribute26                =>  p_ejp_attribute26
415       ,p_ejp_attribute27                =>  p_ejp_attribute27
416       ,p_ejp_attribute28                =>  p_ejp_attribute28
417       ,p_ejp_attribute29                =>  p_ejp_attribute29
418       ,p_ejp_attribute30                =>  p_ejp_attribute30
419       ,p_object_version_number          =>  p_object_version_number
420     ,p_effective_date                      => trunc(p_effective_date)
421     ,p_datetrack_mode                      => p_datetrack_mode
422       ,p_criteria_score                 =>  p_criteria_score
423       ,p_criteria_weight                =>  p_criteria_weight
424       );
425   exception
426     when hr_api.cannot_find_prog_unit then
427       hr_api.cannot_find_prog_unit_error
428         (p_module_name => 'UPDATE_ELIGY_JOB_PRTE'
429         ,p_hook_type   => 'BP'
430         );
431     --
432     -- End of API User Hook for the before hook of update_ELIGY_JOB_PRTE
433     --
434   end;
435   --
436   ben_ejp_upd.upd
437     (
438      p_elig_job_prte_id              => p_elig_job_prte_id
439     ,p_effective_start_date          => l_effective_start_date
440     ,p_effective_end_date            => l_effective_end_date
441     ,p_ordr_num                      => p_ordr_num
442     ,p_excld_flag                    => p_excld_flag
443     ,p_job_id                        => p_job_id
444     ,p_eligy_prfl_id                 => p_eligy_prfl_id
445     ,p_business_group_id             => p_business_group_id
446     ,p_ejp_attribute_category        => p_ejp_attribute_category
447     ,p_ejp_attribute1                => p_ejp_attribute1
448     ,p_ejp_attribute2                => p_ejp_attribute2
449     ,p_ejp_attribute3                => p_ejp_attribute3
450     ,p_ejp_attribute4                => p_ejp_attribute4
451     ,p_ejp_attribute5                => p_ejp_attribute5
452     ,p_ejp_attribute6                => p_ejp_attribute6
453     ,p_ejp_attribute7                => p_ejp_attribute7
454     ,p_ejp_attribute8                => p_ejp_attribute8
455     ,p_ejp_attribute9                => p_ejp_attribute9
456     ,p_ejp_attribute10               => p_ejp_attribute10
457     ,p_ejp_attribute11               => p_ejp_attribute11
458     ,p_ejp_attribute12               => p_ejp_attribute12
459     ,p_ejp_attribute13               => p_ejp_attribute13
460     ,p_ejp_attribute14               => p_ejp_attribute14
461     ,p_ejp_attribute15               => p_ejp_attribute15
462     ,p_ejp_attribute16               => p_ejp_attribute16
463     ,p_ejp_attribute17               => p_ejp_attribute17
464     ,p_ejp_attribute18               => p_ejp_attribute18
465     ,p_ejp_attribute19               => p_ejp_attribute19
466     ,p_ejp_attribute20               => p_ejp_attribute20
467     ,p_ejp_attribute21               => p_ejp_attribute21
468     ,p_ejp_attribute22               => p_ejp_attribute22
469     ,p_ejp_attribute23               => p_ejp_attribute23
470     ,p_ejp_attribute24               => p_ejp_attribute24
471     ,p_ejp_attribute25               => p_ejp_attribute25
472     ,p_ejp_attribute26               => p_ejp_attribute26
473     ,p_ejp_attribute27               => p_ejp_attribute27
474     ,p_ejp_attribute28               => p_ejp_attribute28
475     ,p_ejp_attribute29               => p_ejp_attribute29
476     ,p_ejp_attribute30               => p_ejp_attribute30
477     ,p_object_version_number         => l_object_version_number
478     ,p_effective_date                => trunc(p_effective_date)
479     ,p_datetrack_mode                => p_datetrack_mode
480     ,p_criteria_score                =>  p_criteria_score
481     ,p_criteria_weight               =>  p_criteria_weight
482     );
483   --
484   begin
485     --
486     -- Start of API User Hook for the after hook of update_ELIGY_JOB_PRTE
487     --
488     ben_ELIGY_JOB_PRTE_bk2.update_ELIGY_JOB_PRTE_a
489       (
490        p_elig_job_prte_id               =>  p_elig_job_prte_id
491       ,p_effective_start_date           =>  l_effective_start_date
492       ,p_effective_end_date             =>  l_effective_end_date
493       ,p_ordr_num                       =>  p_ordr_num
494       ,p_excld_flag                     =>  p_excld_flag
495       ,p_job_id                         =>  p_job_id
496       ,p_eligy_prfl_id                  =>  p_eligy_prfl_id
497       ,p_business_group_id              =>  p_business_group_id
498       ,p_ejp_attribute_category         =>  p_ejp_attribute_category
499       ,p_ejp_attribute1                 =>  p_ejp_attribute1
500       ,p_ejp_attribute2                 =>  p_ejp_attribute2
501       ,p_ejp_attribute3                 =>  p_ejp_attribute3
502       ,p_ejp_attribute4                 =>  p_ejp_attribute4
503       ,p_ejp_attribute5                 =>  p_ejp_attribute5
504       ,p_ejp_attribute6                 =>  p_ejp_attribute6
505       ,p_ejp_attribute7                 =>  p_ejp_attribute7
506       ,p_ejp_attribute8                 =>  p_ejp_attribute8
507       ,p_ejp_attribute9                 =>  p_ejp_attribute9
508       ,p_ejp_attribute10                =>  p_ejp_attribute10
509       ,p_ejp_attribute11                =>  p_ejp_attribute11
510       ,p_ejp_attribute12                =>  p_ejp_attribute12
511       ,p_ejp_attribute13                =>  p_ejp_attribute13
512       ,p_ejp_attribute14                =>  p_ejp_attribute14
513       ,p_ejp_attribute15                =>  p_ejp_attribute15
514       ,p_ejp_attribute16                =>  p_ejp_attribute16
515       ,p_ejp_attribute17                =>  p_ejp_attribute17
516       ,p_ejp_attribute18                =>  p_ejp_attribute18
517       ,p_ejp_attribute19                =>  p_ejp_attribute19
518       ,p_ejp_attribute20                =>  p_ejp_attribute20
519       ,p_ejp_attribute21                =>  p_ejp_attribute21
520       ,p_ejp_attribute22                =>  p_ejp_attribute22
521       ,p_ejp_attribute23                =>  p_ejp_attribute23
522       ,p_ejp_attribute24                =>  p_ejp_attribute24
523       ,p_ejp_attribute25                =>  p_ejp_attribute25
524       ,p_ejp_attribute26                =>  p_ejp_attribute26
525       ,p_ejp_attribute27                =>  p_ejp_attribute27
526       ,p_ejp_attribute28                =>  p_ejp_attribute28
527       ,p_ejp_attribute29                =>  p_ejp_attribute29
528       ,p_ejp_attribute30                =>  p_ejp_attribute30
529       ,p_object_version_number          =>  l_object_version_number
530       ,p_effective_date                     => trunc(p_effective_date)
531       ,p_datetrack_mode                     => p_datetrack_mode
532       ,p_criteria_score                 =>  p_criteria_score
533       ,p_criteria_weight                =>  p_criteria_weight
534       );
535   exception
536     when hr_api.cannot_find_prog_unit then
537       hr_api.cannot_find_prog_unit_error
538         (p_module_name => 'UPDATE_ELIGY_JOB_PRTE'
539         ,p_hook_type   => 'AP'
540         );
541     --
542     -- End of API User Hook for the after hook of update_ELIGY_JOB_PRTE
543     --
544   end;
545   --
546   hr_utility.set_location(l_proc, 60);
547   --
548   -- When in validation only mode raise the Validate_Enabled exception
549   --
550   if p_validate then
551     raise hr_api.validate_enabled;
552   end if;
553   --
554   -- Set all output arguments
555   --
556   p_object_version_number := l_object_version_number;
557   p_effective_start_date := l_effective_start_date;
558   p_effective_end_date := l_effective_end_date;
559   --
560   hr_utility.set_location(' Leaving:'||l_proc, 70);
561   --
562 exception
563   --
564   when hr_api.validate_enabled then
565     --
566     -- As the Validate_Enabled exception has been raised
567     -- we must rollback to the savepoint
568     --
569     ROLLBACK TO update_ELIGY_JOB_PRTE;
570     --
571     -- Only set output warning arguments
572     -- (Any key or derived arguments must be set to null
573     -- when validation only mode is being used.)
574     --
575     hr_utility.set_location(' Leaving:'||l_proc, 80);
576     --
577   when others then
578     --
579     -- Init to null for NOCOPY OUT variable
580     --
581     p_effective_start_date := null;
582     p_effective_end_date := null;
583     p_object_version_number  := l_object_version_number;
584     --
585     -- A validation or unexpected error has occured
586     --
587     ROLLBACK TO update_ELIGY_JOB_PRTE;
588     raise;
589     --
590 end update_ELIGY_JOB_PRTE;
591 -- ----------------------------------------------------------------------------
592 -- |------------------------< delete_ELIGY_JOB_PRTE >----------------------|
593 -- ----------------------------------------------------------------------------
594 --
595 procedure delete_ELIGY_JOB_PRTE
596   (p_validate                       in  boolean  default false
597   ,p_elig_job_prte_id               in  number
598   ,p_effective_start_date           out nocopy date
599   ,p_effective_end_date             out nocopy date
600   ,p_object_version_number          in out nocopy number
601   ,p_effective_date                 in  date
602   ,p_datetrack_mode                 in  varchar2
603   ) is
604   --
605   -- Declare cursors and local variables
606   --
607   l_proc varchar2(72) := g_package||'update_ELIGY_JOB_PRTE';
608   l_object_version_number ben_elig_job_prte_f.object_version_number%TYPE;
609   l_effective_start_date ben_elig_job_prte_f.effective_start_date%TYPE;
610   l_effective_end_date ben_elig_job_prte_f.effective_end_date%TYPE;
611   --
612 begin
613   --
614   hr_utility.set_location('Entering:'|| l_proc, 10);
615   --
616   -- Issue a savepoint if operating in validation only mode
617   --
618   savepoint delete_ELIGY_JOB_PRTE;
619   --
620   hr_utility.set_location(l_proc, 20);
621   --
622   -- Process Logic
623   --
624   l_object_version_number := p_object_version_number;
625   --
626   --
627   begin
628     --
629     -- Start of API User Hook for the before hook of delete_ELIGY_JOB_PRTE
630     --
631     ben_ELIGY_JOB_PRTE_bk3.delete_ELIGY_JOB_PRTE_b
632       (
633        p_elig_job_prte_id               =>  p_elig_job_prte_id
634       ,p_object_version_number          =>  p_object_version_number
635     ,p_effective_date                      => trunc(p_effective_date)
636     ,p_datetrack_mode                      => p_datetrack_mode
637       );
638   exception
639     when hr_api.cannot_find_prog_unit then
640       hr_api.cannot_find_prog_unit_error
641         (p_module_name => 'DELETE_ELIGY_JOB_PRTE'
642         ,p_hook_type   => 'BP'
643         );
644     --
645     -- End of API User Hook for the before hook of delete_ELIGY_JOB_PRTE
646     --
647   end;
648   --
649   ben_ejp_del.del
650     (
651      p_elig_job_prte_id              => p_elig_job_prte_id
652     ,p_effective_start_date          => l_effective_start_date
653     ,p_effective_end_date            => l_effective_end_date
654     ,p_object_version_number         => l_object_version_number
655     ,p_effective_date                => p_effective_date
656     ,p_datetrack_mode                => p_datetrack_mode
657     );
658   --
659   begin
660     --
661     -- Start of API User Hook for the after hook of delete_ELIGY_JOB_PRTE
662     --
663     ben_ELIGY_JOB_PRTE_bk3.delete_ELIGY_JOB_PRTE_a
664       (
665        p_elig_job_prte_id               =>  p_elig_job_prte_id
666       ,p_effective_start_date           =>  l_effective_start_date
667       ,p_effective_end_date             =>  l_effective_end_date
668       ,p_object_version_number          =>  l_object_version_number
669     ,p_effective_date                      => trunc(p_effective_date)
670     ,p_datetrack_mode                      => p_datetrack_mode
671       );
672   exception
673     when hr_api.cannot_find_prog_unit then
674       hr_api.cannot_find_prog_unit_error
675         (p_module_name => 'DELETE_ELIGY_JOB_PRTE'
676         ,p_hook_type   => 'AP'
677         );
678     --
679     -- End of API User Hook for the after hook of delete_ELIGY_JOB_PRTE
680     --
681   end;
682   --
683   ben_profile_handler.event_handler
684     (p_event                       => 'DELETE',
685      p_base_table                  => 'BEN_ELIGY_PRFL_F',
686      p_base_table_column           => 'ELIGY_PRFL_ID',
687      p_base_table_column_value     => ben_ejp_shd.g_old_rec.eligy_prfl_id,
688      p_base_table_reference_column => 'ELIG_JOB_FLAG',
689      p_reference_table             => 'BEN_ELIG_JOB_PRTE_F',
690      p_reference_table_column      => 'ELIGY_PRFL_ID');
691   --
692   hr_utility.set_location(l_proc, 60);
693   --
694   -- When in validation only mode raise the Validate_Enabled exception
695   --
696   if p_validate then
697     raise hr_api.validate_enabled;
698   end if;
699   --
700   hr_utility.set_location(' Leaving:'||l_proc, 70);
701   --
702 exception
703   --
704   when hr_api.validate_enabled then
705     --
706     -- As the Validate_Enabled exception has been raised
707     -- we must rollback to the savepoint
708     --
709     ROLLBACK TO delete_ELIGY_JOB_PRTE;
710     --
711     -- Only set output warning arguments
712     -- (Any key or derived arguments must be set to null
713     -- when validation only mode is being used.)
714     --
715     p_effective_start_date := null;
716     p_effective_end_date := null;
717     --
718   when others then
719     --
720     -- Init to null for NOCOPY OUT variable
721 
722     p_effective_start_date  :=null ;
723     p_effective_end_date    :=null ;
724 
725     --
726     -- Init to local var for NOCOPY IN OUT variable
727     p_object_version_number := l_object_version_number ;
728 
729     --
730     -- A validation or unexpected error has occured
731     --
732     ROLLBACK TO delete_ELIGY_JOB_PRTE;
733     raise;
734     --
735 end delete_ELIGY_JOB_PRTE;
736 --
737 -- ----------------------------------------------------------------------------
738 -- |-------------------------------< lck >------------------------------------|
739 -- ----------------------------------------------------------------------------
740 --
741 procedure lck
742   (
743    p_elig_job_prte_id                   in     number
744   ,p_object_version_number          in     number
745   ,p_effective_date                 in     date
746   ,p_datetrack_mode                 in     varchar2
747   ,p_validation_start_date          out nocopy    date
748   ,p_validation_end_date            out nocopy    date
749   ) is
750   --
751   --
752   -- Declare cursors and local variables
753   --
754   l_proc varchar2(72) := g_package||'lck';
755   l_validation_start_date date;
756   l_validation_end_date date;
757   --
758 begin
759   --
760   hr_utility.set_location('Entering:'|| l_proc, 10);
761   --
762   ben_ejp_shd.lck
763     (
764       p_elig_job_prte_id                 => p_elig_job_prte_id
765      ,p_validation_start_date      => l_validation_start_date
766      ,p_validation_end_date        => l_validation_end_date
767      ,p_object_version_number      => p_object_version_number
768      ,p_effective_date             => p_effective_date
769      ,p_datetrack_mode             => p_datetrack_mode
770     );
771   --
772   hr_utility.set_location(' Leaving:'||l_proc, 70);
773   --
774 end lck;
775 --
776 end ben_ELIGY_JOB_PRTE_api;