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