[Home] [Help]
PACKAGE BODY: APPS.OKL_INTEREST_MAINT_PVT_W
Source
1 package body okl_interest_maint_pvt_w as
2 /* $Header: OKLEINMB.pls 120.1 2005/07/11 12:50:42 dkagrawa noship $ */
3 rosetta_g_mistake_date date := to_date('01/01/+4713', 'MM/DD/SYYYY');
4 rosetta_g_miss_date date := to_date('01/01/-4712', 'MM/DD/SYYYY');
5
6 -- this is to workaround the JDBC bug regarding IN DATE of value GMiss
7 function rosetta_g_miss_date_in_map(d date) return date as
8 begin
9 if d = rosetta_g_mistake_date then return fnd_api.g_miss_date; end if;
10 return d;
11 end;
12
13 function rosetta_g_miss_num_map(n number) return number as
14 a number := fnd_api.g_miss_num;
15 b number := 0-1962.0724;
16 begin
17 if n=a then return b; end if;
18 if n=b then return a; end if;
19 return n;
20 end;
21
22 function overlap_exists(p_idx_type VARCHAR2
23 , p_idx_name VARCHAR2
24 , p_datetime_valid date
25 , p_datetime_invalid date
26 ) return varchar2
27
28 as
29 ddp_datetime_valid date;
30 ddp_datetime_invalid date;
31 ddindx binary_integer; indx binary_integer;
32 ddrosetta_retval varchar2(4000);
33 begin
34
35 -- copy data to the local IN or IN-OUT args, if any
36
37
38 ddp_datetime_valid := rosetta_g_miss_date_in_map(p_datetime_valid);
39
40 ddp_datetime_invalid := rosetta_g_miss_date_in_map(p_datetime_invalid);
41
42 -- here's the delegated call to the old PL/SQL routine
43 ddrosetta_retval := okl_interest_maint_pvt.overlap_exists(p_idx_type,
44 p_idx_name,
45 ddp_datetime_valid,
46 ddp_datetime_invalid);
47
48 -- copy data back from the local variables to OUT or IN-OUT args, if any
49
50
51
52
53 return ddrosetta_retval;
54 end;
55
56 function overlap_exists(p_idx_id NUMBER
57 , p_datetime_valid date
58 , p_datetime_invalid date
59 ) return varchar2
60
61 as
62 ddp_datetime_valid date;
63 ddp_datetime_invalid date;
64 ddindx binary_integer; indx binary_integer;
65 ddrosetta_retval varchar2(4000);
66 begin
67
68 -- copy data to the local IN or IN-OUT args, if any
69
70 ddp_datetime_valid := rosetta_g_miss_date_in_map(p_datetime_valid);
71
72 ddp_datetime_invalid := rosetta_g_miss_date_in_map(p_datetime_invalid);
73
74 -- here's the delegated call to the old PL/SQL routine
75 ddrosetta_retval := okl_interest_maint_pvt.overlap_exists(p_idx_id,
76 ddp_datetime_valid,
77 ddp_datetime_invalid);
78
79 -- copy data back from the local variables to OUT or IN-OUT args, if any
80
81
82
83 return ddrosetta_retval;
84 end;
85
86 procedure int_hdr_ins_updt(p_api_version NUMBER
87 , p_init_msg_list VARCHAR2
88 , x_return_status out nocopy VARCHAR2
89 , x_msg_count out nocopy NUMBER
90 , x_msg_data out nocopy VARCHAR2
91 , p5_a0 NUMBER := 0-1962.0724
92 , p5_a1 NUMBER := 0-1962.0724
93 , p5_a2 VARCHAR2 := fnd_api.g_miss_char
94 , p5_a3 VARCHAR2 := fnd_api.g_miss_char
95 , p5_a4 VARCHAR2 := fnd_api.g_miss_char
96 , p5_a5 VARCHAR2 := fnd_api.g_miss_char
97 , p5_a6 VARCHAR2 := fnd_api.g_miss_char
98 , p5_a7 VARCHAR2 := fnd_api.g_miss_char
99 , p5_a8 VARCHAR2 := fnd_api.g_miss_char
100 , p5_a9 VARCHAR2 := fnd_api.g_miss_char
101 , p5_a10 VARCHAR2 := fnd_api.g_miss_char
102 , p5_a11 VARCHAR2 := fnd_api.g_miss_char
103 , p5_a12 VARCHAR2 := fnd_api.g_miss_char
104 , p5_a13 VARCHAR2 := fnd_api.g_miss_char
105 , p5_a14 VARCHAR2 := fnd_api.g_miss_char
106 , p5_a15 VARCHAR2 := fnd_api.g_miss_char
107 , p5_a16 VARCHAR2 := fnd_api.g_miss_char
108 , p5_a17 VARCHAR2 := fnd_api.g_miss_char
109 , p5_a18 VARCHAR2 := fnd_api.g_miss_char
110 , p5_a19 VARCHAR2 := fnd_api.g_miss_char
111 , p5_a20 VARCHAR2 := fnd_api.g_miss_char
112 , p5_a21 VARCHAR2 := fnd_api.g_miss_char
113 , p5_a22 NUMBER := 0-1962.0724
114 , p5_a23 NUMBER := 0-1962.0724
115 , p5_a24 NUMBER := 0-1962.0724
116 , p5_a25 DATE := fnd_api.g_miss_date
117 , p5_a26 NUMBER := 0-1962.0724
118 , p5_a27 DATE := fnd_api.g_miss_date
119 , p5_a28 NUMBER := 0-1962.0724
120 , p5_a29 DATE := fnd_api.g_miss_date
121 , p5_a30 NUMBER := 0-1962.0724
122 )
123
124 as
125 ddp_idxv_rec okl_interest_maint_pvt.idxv_rec_type;
126 ddindx binary_integer; indx binary_integer;
127 begin
128
129 -- copy data to the local IN or IN-OUT args, if any
130
131
132
133
134
135 ddp_idxv_rec.id := rosetta_g_miss_num_map(p5_a0);
136 ddp_idxv_rec.object_version_number := rosetta_g_miss_num_map(p5_a1);
137 ddp_idxv_rec.name := p5_a2;
138 ddp_idxv_rec.description := p5_a3;
139 ddp_idxv_rec.attribute_category := p5_a4;
140 ddp_idxv_rec.attribute1 := p5_a5;
141 ddp_idxv_rec.attribute2 := p5_a6;
142 ddp_idxv_rec.attribute3 := p5_a7;
143 ddp_idxv_rec.attribute4 := p5_a8;
144 ddp_idxv_rec.attribute5 := p5_a9;
145 ddp_idxv_rec.attribute6 := p5_a10;
146 ddp_idxv_rec.attribute7 := p5_a11;
147 ddp_idxv_rec.attribute8 := p5_a12;
148 ddp_idxv_rec.attribute9 := p5_a13;
149 ddp_idxv_rec.attribute10 := p5_a14;
150 ddp_idxv_rec.attribute11 := p5_a15;
151 ddp_idxv_rec.attribute12 := p5_a16;
152 ddp_idxv_rec.attribute13 := p5_a17;
153 ddp_idxv_rec.attribute14 := p5_a18;
154 ddp_idxv_rec.attribute15 := p5_a19;
155 ddp_idxv_rec.idx_type := p5_a20;
156 ddp_idxv_rec.idx_frequency := p5_a21;
157 ddp_idxv_rec.program_id := rosetta_g_miss_num_map(p5_a22);
158 ddp_idxv_rec.request_id := rosetta_g_miss_num_map(p5_a23);
159 ddp_idxv_rec.program_application_id := rosetta_g_miss_num_map(p5_a24);
160 ddp_idxv_rec.program_update_date := rosetta_g_miss_date_in_map(p5_a25);
161 ddp_idxv_rec.created_by := rosetta_g_miss_num_map(p5_a26);
162 ddp_idxv_rec.creation_date := rosetta_g_miss_date_in_map(p5_a27);
163 ddp_idxv_rec.last_updated_by := rosetta_g_miss_num_map(p5_a28);
164 ddp_idxv_rec.last_update_date := rosetta_g_miss_date_in_map(p5_a29);
165 ddp_idxv_rec.last_update_login := rosetta_g_miss_num_map(p5_a30);
166
167 -- here's the delegated call to the old PL/SQL routine
168 okl_interest_maint_pvt.int_hdr_ins_updt(p_api_version,
169 p_init_msg_list,
170 x_return_status,
171 x_msg_count,
172 x_msg_data,
173 ddp_idxv_rec);
174
175 -- copy data back from the local variables to OUT or IN-OUT args, if any
176
177
178
179
180
181 end;
182
183 procedure int_hdr_ins_updt(p_api_version NUMBER
184 , p_init_msg_list VARCHAR2
185 , x_return_status out nocopy VARCHAR2
186 , x_msg_count out nocopy NUMBER
187 , x_msg_data out nocopy VARCHAR2
188 , p5_a0 JTF_NUMBER_TABLE
189 , p5_a1 JTF_NUMBER_TABLE
190 , p5_a2 JTF_VARCHAR2_TABLE_200
191 , p5_a3 JTF_VARCHAR2_TABLE_2000
192 , p5_a4 JTF_VARCHAR2_TABLE_100
193 , p5_a5 JTF_VARCHAR2_TABLE_500
194 , p5_a6 JTF_VARCHAR2_TABLE_500
195 , p5_a7 JTF_VARCHAR2_TABLE_500
196 , p5_a8 JTF_VARCHAR2_TABLE_500
197 , p5_a9 JTF_VARCHAR2_TABLE_500
198 , p5_a10 JTF_VARCHAR2_TABLE_500
199 , p5_a11 JTF_VARCHAR2_TABLE_500
200 , p5_a12 JTF_VARCHAR2_TABLE_500
201 , p5_a13 JTF_VARCHAR2_TABLE_500
202 , p5_a14 JTF_VARCHAR2_TABLE_500
203 , p5_a15 JTF_VARCHAR2_TABLE_500
204 , p5_a16 JTF_VARCHAR2_TABLE_500
205 , p5_a17 JTF_VARCHAR2_TABLE_500
206 , p5_a18 JTF_VARCHAR2_TABLE_500
207 , p5_a19 JTF_VARCHAR2_TABLE_500
208 , p5_a20 JTF_VARCHAR2_TABLE_100
209 , p5_a21 JTF_VARCHAR2_TABLE_100
210 , p5_a22 JTF_NUMBER_TABLE
211 , p5_a23 JTF_NUMBER_TABLE
212 , p5_a24 JTF_NUMBER_TABLE
213 , p5_a25 JTF_DATE_TABLE
214 , p5_a26 JTF_NUMBER_TABLE
215 , p5_a27 JTF_DATE_TABLE
216 , p5_a28 JTF_NUMBER_TABLE
217 , p5_a29 JTF_DATE_TABLE
218 , p5_a30 JTF_NUMBER_TABLE
219 )
220
221 as
222 ddp_idxv_tbl okl_interest_maint_pvt.idxv_tbl_type;
223 ddindx binary_integer; indx binary_integer;
224 begin
225
226 -- copy data to the local IN or IN-OUT args, if any
227
228
229
230
231
232 okl_idx_pvt_w.rosetta_table_copy_in_p5(ddp_idxv_tbl, p5_a0
233 , p5_a1
234 , p5_a2
235 , p5_a3
236 , p5_a4
237 , p5_a5
238 , p5_a6
239 , p5_a7
240 , p5_a8
241 , p5_a9
242 , p5_a10
243 , p5_a11
244 , p5_a12
245 , p5_a13
246 , p5_a14
247 , p5_a15
248 , p5_a16
249 , p5_a17
250 , p5_a18
251 , p5_a19
252 , p5_a20
253 , p5_a21
254 , p5_a22
255 , p5_a23
256 , p5_a24
257 , p5_a25
258 , p5_a26
259 , p5_a27
260 , p5_a28
261 , p5_a29
262 , p5_a30
263 );
264
265 -- here's the delegated call to the old PL/SQL routine
266 okl_interest_maint_pvt.int_hdr_ins_updt(p_api_version,
267 p_init_msg_list,
268 x_return_status,
269 x_msg_count,
270 x_msg_data,
271 ddp_idxv_tbl);
272
273 -- copy data back from the local variables to OUT or IN-OUT args, if any
274
275
276
277
278
279 end;
280
281 procedure int_dtl_ins_updt(p_api_version NUMBER
282 , p_init_msg_list VARCHAR2
283 , x_return_status out nocopy VARCHAR2
284 , x_msg_count out nocopy NUMBER
285 , x_msg_data out nocopy VARCHAR2
286 , p5_a0 NUMBER := 0-1962.0724
287 , p5_a1 NUMBER := 0-1962.0724
288 , p5_a2 NUMBER := 0-1962.0724
289 , p5_a3 NUMBER := 0-1962.0724
290 , p5_a4 DATE := fnd_api.g_miss_date
291 , p5_a5 DATE := fnd_api.g_miss_date
292 , p5_a6 NUMBER := 0-1962.0724
293 , p5_a7 NUMBER := 0-1962.0724
294 , p5_a8 NUMBER := 0-1962.0724
295 , p5_a9 DATE := fnd_api.g_miss_date
296 , p5_a10 NUMBER := 0-1962.0724
297 , p5_a11 DATE := fnd_api.g_miss_date
298 , p5_a12 NUMBER := 0-1962.0724
299 , p5_a13 DATE := fnd_api.g_miss_date
300 , p5_a14 NUMBER := 0-1962.0724
301 )
302
303 as
304 ddp_ivev_rec okl_interest_maint_pvt.ivev_rec_type;
305 ddindx binary_integer; indx binary_integer;
306 begin
307
308 -- copy data to the local IN or IN-OUT args, if any
309
310
311
312
313
314 ddp_ivev_rec.id := rosetta_g_miss_num_map(p5_a0);
315 ddp_ivev_rec.object_version_number := rosetta_g_miss_num_map(p5_a1);
316 ddp_ivev_rec.idx_id := rosetta_g_miss_num_map(p5_a2);
317 ddp_ivev_rec.value := rosetta_g_miss_num_map(p5_a3);
318 ddp_ivev_rec.datetime_valid := rosetta_g_miss_date_in_map(p5_a4);
319 ddp_ivev_rec.datetime_invalid := rosetta_g_miss_date_in_map(p5_a5);
320 ddp_ivev_rec.program_id := rosetta_g_miss_num_map(p5_a6);
321 ddp_ivev_rec.program_application_id := rosetta_g_miss_num_map(p5_a7);
322 ddp_ivev_rec.request_id := rosetta_g_miss_num_map(p5_a8);
323 ddp_ivev_rec.program_update_date := rosetta_g_miss_date_in_map(p5_a9);
324 ddp_ivev_rec.created_by := rosetta_g_miss_num_map(p5_a10);
325 ddp_ivev_rec.creation_date := rosetta_g_miss_date_in_map(p5_a11);
326 ddp_ivev_rec.last_updated_by := rosetta_g_miss_num_map(p5_a12);
327 ddp_ivev_rec.last_update_date := rosetta_g_miss_date_in_map(p5_a13);
328 ddp_ivev_rec.last_update_login := rosetta_g_miss_num_map(p5_a14);
329
330 -- here's the delegated call to the old PL/SQL routine
331 okl_interest_maint_pvt.int_dtl_ins_updt(p_api_version,
332 p_init_msg_list,
333 x_return_status,
334 x_msg_count,
335 x_msg_data,
336 ddp_ivev_rec);
337
338 -- copy data back from the local variables to OUT or IN-OUT args, if any
339
340
341
342
343
344 end;
345
346 procedure int_dtl_ins_updt(p_api_version NUMBER
347 , p_init_msg_list VARCHAR2
348 , x_return_status out nocopy VARCHAR2
349 , x_msg_count out nocopy NUMBER
350 , x_msg_data out nocopy VARCHAR2
351 , p5_a0 JTF_NUMBER_TABLE
352 , p5_a1 JTF_NUMBER_TABLE
353 , p5_a2 JTF_NUMBER_TABLE
354 , p5_a3 JTF_NUMBER_TABLE
355 , p5_a4 JTF_DATE_TABLE
356 , p5_a5 JTF_DATE_TABLE
357 , p5_a6 JTF_NUMBER_TABLE
358 , p5_a7 JTF_NUMBER_TABLE
359 , p5_a8 JTF_NUMBER_TABLE
360 , p5_a9 JTF_DATE_TABLE
361 , p5_a10 JTF_NUMBER_TABLE
362 , p5_a11 JTF_DATE_TABLE
363 , p5_a12 JTF_NUMBER_TABLE
364 , p5_a13 JTF_DATE_TABLE
365 , p5_a14 JTF_NUMBER_TABLE
366 )
367
368 as
369 ddp_ivev_tbl okl_interest_maint_pvt.ivev_tbl_type;
370 ddindx binary_integer; indx binary_integer;
371 begin
372
373 -- copy data to the local IN or IN-OUT args, if any
374
375
376
377
378
379 okl_ive_pvt_w.rosetta_table_copy_in_p5(ddp_ivev_tbl, p5_a0
380 , p5_a1
381 , p5_a2
382 , p5_a3
383 , p5_a4
384 , p5_a5
385 , p5_a6
386 , p5_a7
387 , p5_a8
388 , p5_a9
389 , p5_a10
390 , p5_a11
391 , p5_a12
392 , p5_a13
393 , p5_a14
394 );
395
396 -- here's the delegated call to the old PL/SQL routine
397 okl_interest_maint_pvt.int_dtl_ins_updt(p_api_version,
398 p_init_msg_list,
399 x_return_status,
400 x_msg_count,
401 x_msg_data,
402 ddp_ivev_tbl);
403
404 -- copy data back from the local variables to OUT or IN-OUT args, if any
405
406
407
408
409
410 end;
411
412 end okl_interest_maint_pvt_w;