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