1: Package Body pqh_vlp_ins as
2: /* $Header: pqvlprhi.pkb 115.6 2004/03/31 00:31:40 kgowripe noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pqh_vlp_ins.'; -- Global package name
9: --
10: -- The following global variables are only to be used by
11: -- the set_base_key_value and pre_insert procedures.
12: --
22: --
23: Begin
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: pqh_vlp_ins.g_validation_period_id_i := p_validation_period_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
29: End set_base_key_value;
30: --
189: Cursor C_Sel2 is
190: Select null
191: from pqh_fr_validation_periods
192: where validation_period_id =
193: pqh_vlp_ins.g_validation_period_id_i;
194: --
195: l_proc varchar2(72) := g_package||'pre_insert';
196: l_exists varchar2(1);
197: --
197: --
198: Begin
199: hr_utility.set_location('Entering:'||l_proc, 5);
200: --
201: If (pqh_vlp_ins.g_validation_period_id_i is not null) Then
202: --
203: -- Verify registered primary key values not already in use
204: --
205: Open C_Sel2;
217: --
218: -- Use registered key values and clear globals
219: --
220: p_rec.validation_period_id :=
221: pqh_vlp_ins.g_validation_period_id_i;
222: pqh_vlp_ins.g_validation_period_id_i := null;
223: Else
224: --
225: -- No registerd key values, so select the next sequence number
218: -- Use registered key values and clear globals
219: --
220: p_rec.validation_period_id :=
221: pqh_vlp_ins.g_validation_period_id_i;
222: pqh_vlp_ins.g_validation_period_id_i := null;
223: Else
224: --
225: -- No registerd key values, so select the next sequence number
226: --
347: hr_multi_message.end_validation_set;
348: --
349: -- Call the supporting pre-insert operation
350: --
351: pqh_vlp_ins.pre_insert(p_rec);
352: --
353: -- Insert the row
354: --
355: pqh_vlp_ins.insert_dml(p_rec);
351: pqh_vlp_ins.pre_insert(p_rec);
352: --
353: -- Insert the row
354: --
355: pqh_vlp_ins.insert_dml(p_rec);
356: --
357: -- Call the supporting post-insert operation
358: --
359: pqh_vlp_ins.post_insert
355: pqh_vlp_ins.insert_dml(p_rec);
356: --
357: -- Call the supporting post-insert operation
358: --
359: pqh_vlp_ins.post_insert
360: (p_effective_date
361: ,p_rec
362: );
363: --
417: --
418: -- Having converted the arguments into the pqh_vlp_rec
419: -- plsql record structure we call the corresponding record business process.
420: --
421: pqh_vlp_ins.ins
422: (p_effective_date
423: ,l_rec
424: );
425: --
431: --
432: hr_utility.set_location(' Leaving:'||l_proc, 10);
433: End ins;
434: --
435: end pqh_vlp_ins;