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