1: Package Body irc_rse_ins as
2: /* $Header: irrserhi.pkb 120.0 2005/07/26 15:17:04 mbocutt noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' irc_rse_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: irc_rse_ins.g_recruiting_site_id_i := p_recruiting_site_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
29: End set_base_key_value;
30: --
255: Cursor C_Sel2 is
256: Select null
257: from irc_all_recruiting_sites
258: where recruiting_site_id =
259: irc_rse_ins.g_recruiting_site_id_i;
260: --
261: l_proc varchar2(72) := g_package||'pre_insert';
262: l_exists varchar2(1);
263: --
263: --
264: Begin
265: hr_utility.set_location('Entering:'||l_proc, 5);
266: --
267: If (irc_rse_ins.g_recruiting_site_id_i is not null) Then
268: --
269: -- Verify registered primary key values not already in use
270: --
271: Open C_Sel2;
283: --
284: -- Use registered key values and clear globals
285: --
286: p_rec.recruiting_site_id :=
287: irc_rse_ins.g_recruiting_site_id_i;
288: irc_rse_ins.g_recruiting_site_id_i := null;
289: Else
290: --
291: -- No registerd key values, so select the next sequence number
284: -- Use registered key values and clear globals
285: --
286: p_rec.recruiting_site_id :=
287: irc_rse_ins.g_recruiting_site_id_i;
288: irc_rse_ins.g_recruiting_site_id_i := null;
289: Else
290: --
291: -- No registerd key values, so select the next sequence number
292: --
475: hr_multi_message.end_validation_set;
476: --
477: -- Call the supporting pre-insert operation
478: --
479: irc_rse_ins.pre_insert(p_rec);
480: --
481: -- Insert the row
482: --
483: irc_rse_ins.insert_dml(p_rec);
479: irc_rse_ins.pre_insert(p_rec);
480: --
481: -- Insert the row
482: --
483: irc_rse_ins.insert_dml(p_rec);
484: --
485: -- Call the supporting post-insert operation
486: --
487: irc_rse_ins.post_insert
483: irc_rse_ins.insert_dml(p_rec);
484: --
485: -- Call the supporting post-insert operation
486: --
487: irc_rse_ins.post_insert
488: (p_effective_date
489: ,p_rec
490: );
491: --
607: --
608: -- Having converted the arguments into the irc_rse_rec
609: -- plsql record structure we call the corresponding record business process.
610: --
611: irc_rse_ins.ins
612: (p_effective_date
613: ,l_rec
614: );
615: --
621: --
622: hr_utility.set_location(' Leaving:'||l_proc, 10);
623: End ins;
624: --
625: end irc_rse_ins;